aspose file tools*
The moose likes JNLP and Web Start and the fly likes How To make Enterprise Application use Java Web Start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "How To make Enterprise Application use Java Web Start" Watch "How To make Enterprise Application use Java Web Start" New topic
Author

How To make Enterprise Application use Java Web Start

aryan Sharma
Greenhorn

Joined: Oct 10, 2005
Posts: 27
I have an enterprise application.Now this is deployed as .ear file on our server. What i am not getting is that how can i use Java WebStart in this case as i have read that JWS needs JAR files to be specified in the JNLP file. But i dont have JAR files for everything and its actually EAR (which containes a .war file too).The entry point of my application is a servlet and not a main class (as required in the jnlp file). Given this scenrio can anyone pls guide me in making this application use JWS...how should i go about it???
Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243
Hi,

I sense a little confusion here as to what java webstart is good at doing, but I will try to help you a little:



But i dont have JAR files for everything and its actually EAR (which containes a .war file too).


In short, you will need to make .jar files. There's no other way. I don't know if this is a big task, or hard task for you but it will need to be done.



The entry point of my application is a servlet and not a main class (as required in the jnlp file). Given this scenrio can anyone pls guide me in making this application use JWS...how should i go about it???


Well, usually Java webstart is used to distribute GUI Swing programs to client machines. It sounds like you are thinking about converting your servlet program into some such application. If this is not the case, then you should probably stop thinking about Java webstart.

Webstart can of course be used to distribute command line programs that have a main method, but I've never seen or heard of it being done.

In any case, you need to convert your serlvet program into the more traditional program that has a public static void main method. I suspect that will turn out to be a huge task.

Cheers, Jared.


SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
aryan Sharma
Greenhorn

Joined: Oct 10, 2005
Posts: 27
thx..ur right...i have clarified...even i guess we are wrong in thinking to use JWS for enterprise applications...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How To make Enterprise Application use Java Web Start