aspose file tools*
The moose likes Servlets and the fly likes Running Applications through Server JVM with Client's JVM turned off Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Running Applications through Server JVM with Client Watch "Running Applications through Server JVM with Client New topic
Author

Running Applications through Server JVM with Client's JVM turned off

Sujai Kaarthik
Ranch Hand

Joined: Dec 29, 2008
Posts: 162
Hi friends,

Below goes my requirement:
There is a web application which should use only Server JVM to run. The constraint is the Client JVM should be turned off. And also, for starting in this process, I should use my own system to implement this thing. i.e., Both the Server JVM and Client JVM should reside in the same system with Client's JVM turned off

My doubts are as follows:

1. How to turn off Client JVM?
2. How to install a Server JVM?
3. What is the use if we do this?

Any guidance on this will be highly appreciated.

PS:
1. I use Tomcat 6
2. I need a cook book like guidance since I am new in JVM concepts. I don't have a clue about these things


The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

Unless you are using applets in your web application, there is never a need for a JVM on the client. All the user needs is a browser.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sujai Kaarthik
Ranch Hand

Joined: Dec 29, 2008
Posts: 162
thanks Bear for your reply.. yes, there is no applets in this application

but my boss insists that I should turn off client JVM. How to do this?

and also how to install server JVM?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

The only concept of a "client JVM" is the browser JVM. So I guess he wants you to disable Java in the browser.

If you have a JVM on the machine where you are running Tomcat, that's your "server JVM".

I think your boss is either unclear on the concepts, or communicating them poorly.
Sujai Kaarthik
Ranch Hand

Joined: Dec 29, 2008
Posts: 162
so will the application run when Java is disabled in the browser (given that there are no applets)?

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

Yes. In a Java web application, all the Java runs on the server. The client needs only a browser, and that browser does not need Java unless it is to run applets.
Sujai Kaarthik
Ranch Hand

Joined: Dec 29, 2008
Posts: 162
Thanks Bear. I am more clear now. I thought it as a geeky work
Sujai Kaarthik
Ranch Hand

Joined: Dec 29, 2008
Posts: 162
Now the issue is:

The organization has a desktop version (created using swing) of a web application. They want me to run this desktop application without client JVM. Is it possible?

PS:
it is run from command line
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

Of course not. To run Java on a system, you need a JVM.
Sujai Kaarthik
Ranch Hand

Joined: Dec 29, 2008
Posts: 162
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running Applications through Server JVM with Client's JVM turned off