EJB / EE :: Convert Standalone Java Thread Application Into Web Application In Tomcat
Nov 17, 2014
convert or move standalone java thread application into Tomcat server container for accessing its JNDI services? Also is it possible to schedule this thread application in Tomcat server? is it possible to keep this app in tomcat as web application and schedule in window's scheduler.
View Replies
ADVERTISEMENT
Nov 20, 2014
I have a web app using spring MVC + hibernate on the server side and jquery, ajax, javascript on the client side.
What I wish to do is to convert it into an exe file to make it standalone app.
Is there a software out there that can accomplish it? I don't want to recreate it from the scratch and I only know how to do web apps.
View Replies
View Related
Oct 9, 2014
I want to embed an existing JAVA applet in to my swing application which is a standalone application. The applet is used in some other application which is not developed by me or my company. The application is open source application (So I have the source code). The entire existing application is basically one of the parts of my new application.
View Replies
View Related
Oct 29, 2014
I am working on a web-application where i have a functionality which generates reports based on the data from DB. for small amount of data its working nice if the data is huge its taking more time. to avoid this problem i developed a standalone batch where i generated the jar file for the sources in web-application and made a call to the appropriate methods.
But my problem is if web-application takes 10 secs to generate the report but in the case of standalone its taking nearly 3-5 mins to generate the same report. i didn't do much of the changes in code just using the same code as web-application
I am using tomcat 6 application server to run the web-application for standalone using batch commands.....
View Replies
View Related
May 23, 2014
I'm creating a java-web project inside tomcat. (Tomcas starts a servlet that starts a counter application pased on GPIO states). In there is a web-interface that is showing the counter and some other informaition. On the web interface there is also a configuration form where the client can set some names/backupintervall/counterDelay etc...
Only i run tomcat on a port 8045. Setting up by the tomcat xml. But what i want is a second port threat that listen to a port (given by properties file like: webport-second=4302). That threat must show the same information that i get from tomcat port 8045. Like a redirection to that port but without browser redirect.
Is that possible and how must i do that?
View Replies
View Related
Mar 11, 2014
I am new to work on JNLP program. I have created a SWING program, JNLP file when i deploy the ear file i am getting 404 error. Please find the steps in details.
1.Created a dynamic web project JWStartProject in eclipse
2.Create a HelloWorld.java class under default package.
import javax.swing.*;
public class HelloWorld extends JFrame {
private static final long serialVersionUID = 4968624166243565348L;
private JLabel label = new JLabel("Hello Java Web START!");
public HelloWorld() {
super("Jave Web Start Example");
this.setSize(350, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
this.setLayout(null);
[Code] ....
Now I exported this project as JWStartProject.war contains following code.
Created Server in Websphere Admin console
Deployed this war file under the server and started.
I have added MIME types also.
I am unable to launch the application. I am getting 404 errors. May I know where I went wrong?
View Replies
View Related
Sep 10, 2014
I am working with DLLs in java.
A while ago, I developed an application in VB.net, and I'm trying to "convert" this application to Java. But this VB.net application uses some specific DLLs and I need to use them in my Java application. However, my knowledge in this respect are quite limited in manupulate DLLs on Java.
Up to this point, I can already load the DLL. I've read some documentation on how to use functions that are in the DLL; but I have some doubts. For example, how can I translate this piece of code to Java?
Java Code:
API = New MyDLL.Base
With API
.para1= "1"
.para2= 2
.para3= True
.para4= False
[Code] ....
View Replies
View Related
May 13, 2015
I am currently faced with a task of creating a web application. This application is meant to be accessed by an admin and also a customer. On the customer side the app should prompt the user to fill in an application for of sort and also allow the user to upload a CV to a database. The information entered by the customer will also be saved on the database. The admin should have the ability to look through all the candidates and their information and CV`s. He should also be allowed to search for candidates with specific key words...I am not a professional programmer but know the core of Java programming. I have a tiny bit of knowledge of MySql.
View Replies
View Related
Dec 3, 2014
I am working on a Java Web Server application.In which server needs to send message to a Mobile no?
What are the way to send message to a mobile no by Java application.
by reading online threads i found like
[URL]
which one I should use and any other approach other than these to send a message using java application?
View Replies
View Related
Feb 27, 2015
So say I write up a program like a dice roll game, which I see on the forums here. It's all written and good to go and when I hit Run it does what I want it to do, no errors..What do I do with those .class and .java files? Do I compile it somehow into an app I can put on the google play store? What is the NEXT STEP after the program is all written?
View Replies
View Related
Jan 16, 2014
how can I send a sms through java application?
View Replies
View Related
Dec 29, 2014
I have a blog hosting service (like Wordpress) written in PHP and MySQL, I'm gonna make Java Application for it (Runs on Windows, Linux and ...).
My Questions:
1. Can I use Connector/J to connect to my website database (MySQL)?
2. Which one is better? 1.Connect to website database, 2.Use Socket programming.
View Replies
View Related
May 13, 2014
I am creating a free game in java FX and I would like to offer some advanced features for the supporters (a user of the application that donates to support the project).
But I dont know how to authenticate the user to some network service.i would like to have a hosted application (or light framework) accessible through the network so the user can do something like login with posting credentials (email, password and maybe his IP adress - so I can check if he has passed his credentials to someone else) and to be able to manage the service to add, remove, (un)block users.
I dont know if I should try to create an authentication app myself, as it seams it shouldnt be as hard as I have no roles, no authorization, just a simple authentication. I would like to host it somewhere for free, than maybe if it will be succesful a want to have my own paid light hosting.
I looked for some frameworks, like Apache Shiro, but i would like to know what are the approaches in this kind of donating user authentication, before dwelling into some framework for months just to realize that it is not what I want.
View Replies
View Related
Jan 18, 2015
Is there a way to make a exe file, with all dependencies included so it is possible to run the application on any computers without installing any other programs?
View Replies
View Related
Apr 6, 2014
I use JDK 1.7.
My java application is blocking from time to time. I have added some log lines and now I know exactly where is blocking, but I have no solution to fix it.
This code runs in a parallel thread, distinct from the main application thread and updates a big JTextArea swing:
try {
....
JTextArea element = (JTextArea)add_containers[objColIndex];
System.out.println("setEditValue start seting text ");
element.setText(VAL);
System.out.println("setEditValue text is set ");
[Code] ....
The code reaches "setEditValue start seting tex" but never reaches "setEditValue text is set". No exception is triggered. The whole application is blocked - main thread and this paralel thread. This section of code is called many times, but in rare cases is blocking without any apparent reason. Sometimes I run the exact same instructions and is blocking and sometimes is working.
View Replies
View Related
Sep 12, 2014
I have tried running the java application without adding the site to site list in java security tab. But I get a sand box message as APPLICATION BLOCKED BY SECURITY SETTINGS. How to run the java application without adding the site to site list in java security tab.
View Replies
View Related
Apr 28, 2014
How can I print to a USB printer from my Java application? I've always printed to network printers using IP addresses.
View Replies
View Related
Dec 17, 2014
I have written a java application that retrieves data from a database and display it on a graph. What i want is that the two systems are synchronized in such a way that when we update a value in the database, it is immediately shown on the graph.i have tried to use a refresh button but decided this would increase the overhead.
View Replies
View Related
Oct 26, 2014
I am following a tutorial to write a 2d game from scratch in java but when I compile and run my code the application (JFrame) doesn't come up on my screen, it just runs for a second and terminates itself for some reason.
package com.thecherno.rain;
import java.awt.Canvas;
import java.awt.Dimension;
import javax.swing.JFrame;
public class Game extends Canvas implements Runnable{
private static final long serialVersionUID = 1L;
[code]....
View Replies
View Related
Apr 16, 2014
I have created an application that I wish for people to be able to run from command line, like so:
java myApp [filename]
Problem is my application uses functions from 3 .Jar files.
Here is how my folder(Assume it is called MyApplication) currently looks:
Application(folder)(contains .class files + source code)
jar1.jar
jar2.jar
jar3.jar
Manifest.txt
I understand I need add some information to the Manifest.txt file but I am struggling in adding stuff to it in the correct format.
Assuming the above folder is called my MyApplication, what I need to put in the Manifest and how to build it all as a Jar File.
View Replies
View Related
Jul 16, 2014
How to resize Components (JButton , JTextField ...) with MouseListener or etc ?
View Replies
View Related
Apr 2, 2015
On Form Submit my url changes from
1.localhost:8080/Workflow/admin/GetReports?fname=Form1
to
2.localhost:8080/Workflow/admin/EditReport
Form action is EditReport(Servlet Name).
Now on EditReport i perform the databse operations and forward the request to the GetReports?fname=Formname Servlet using Request Dispatcher.So that i am on the same page which is the first one (1) i started from.
Now Everything works fine on the .jsp page But the url remains unchanged that is the second one (2).
Now if i hit the URL again i.e. localhost:8080/Workflow/admin/EditReport it will give an error.
So how to rewrite the url i.e. from admin/EditReport to /admin/GetReports?fname=Formname after performing all the operations.?
View Replies
View Related
Mar 9, 2015
Create a Java Application in NetBeans with the following two classes.
1. A Java class College
o Use the following data fields:
College Name
College City
Number of Tracks
Number of Students
Number of Faculty
Number of Staff
o Implement an empty constructor
o Implement a full constructor
o Implement Setters and Getters (Mutators and Accessors)
o Implement SetAll() method with all data members as parameters
2. Another Java class called CollegeDemo with the main() method:
o In the main():
o Read the values of the fields of 3 colleges from a text file and for
each create a College object.
Filename: colleges.txt
IT Dubai 7 200 50 20
ENG Abudhabi 4 400 60 20
SCIENCE Sharjah 3 300 40 20
First with empty constructor then uses setters.
Second with full constructor (no need to use setters).
Last one with empty constructor and SetAll() setter.
o Display the average number of students for all the 3 colleges.
o Change the value of ‘Number of Students’ in the SCIENCE College to
500, and display the average number of students again.
here my code :
public class Demo {
private String name ;
private String city;
private String cname ;
[code]....
View Replies
View Related
Feb 10, 2015
How to insert and play a video or a music background in a java application. Let me explain better... I need to develop a game where sometime I need to show picture, or play videos and also, if is possible, add a music in background... I work with eclipse and I know quite good the main concept of java's language...
View Replies
View Related
Nov 28, 2014
how to develop a CHAT APPLICATION using Java springs .this should be very simple client server project with rich front end IT contains login page and a chat page.
View Replies
View Related
Sep 7, 2014
I am developing an application using Java Swing on Netbeans using Java DB, In which i want to create a form using Jtextfields & JComboBox.
I already added data in the JcomboBox to select. I already create a database and table for this application. Now i want to insert the data in Jtextfield and selection of Jcombobox to insert into the table i designed for it. How to link the form with the table and insert the data of form in table...
View Replies
View Related