This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes application deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "application deployment" Watch "application deployment" New topic
Author

application deployment

Giuseppa Cefalu
Ranch Hand

Joined: Jul 15, 2011
Posts: 121
Hi

Several weeks ago you wrote the paragraph below:

"No, neither of those. If you want to deploy an application to many users, even if they are all in the same office, you should consider using JNLP (Java Web Start) to do that.

In any case, whether they run the application via JNLP or from a mapped drive (was that what you meant?), the application will be running in a separate JVM on each separate user's computer. "

In other words; the application is stored once; and the virtual machine creates as many processes as users use the application; and the application will run in each computer's Java virtual machine? I gues I am trying to find out whether I have to include some code so that the application can by run many users at the same time or whether the virtual machine will take care of that. Is the process forked by the virtual machine?

Thank you
Giuseppa Cefalu
Ranch Hand

Joined: Jul 15, 2011
Posts: 121
I found this at http://blog.shinetech.com/2011/06/10/nodejs-from-the-enterprise-java-perspective/

"Support for multiple users in Enterprise Java applications is provided by the application server in the form of multi-threading. Each user-request is mapped to a thread, which takes care of responding to the user-request. The application developer writes his application as if only one user was using it (with a sprinkle of thread safety). The server takes care of the rest by running your code in multiple threads and mapping user-requests to threads. What works for one user suddenly also works for thousands of users. This is a great advantage: Not much to do for the developer to accommodate a large number of users."

If this is the way it works. Could you please point to any readings that deak with the code to add a sprinkle of thread safety as stated above?

Thank you

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: application deployment
 
Similar Threads
How do I let my IIS and Tomcat using the same port?
Testing Server Programs w/ only one VM
Application In the VM
Advantages of User Defined ClassLoader?
How can we allow multiple values of max-heap-size