GeeCON Prague 2014*
The moose likes Servlets and the fly likes is it possible to distribute a servlet based application? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "is it possible to distribute a servlet based application?" Watch "is it possible to distribute a servlet based application?" New topic
Author

is it possible to distribute a servlet based application?

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
I have web application which contains JSP and servlet only. Please suggest how distribute this application such as deploying in different server in different JVM
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

If its packaged are per the servlet specification you only need to add any container dependencies to some documentation and it should work accross different servers.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
For Example,

A web application contains five servlets, each should work together to finish tasks.
Each servlet should be deployed in different server ie different JVM.

How to make each servlet communicate with each other .I have no idea to implement this .Please guide me
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42030
    
  64
Java web apps have no concept of being distributed unless they are identical. You will need to package 5 different web apps.


Ping & DNS - my free Android networking tools app
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
Ulf Dittmer wrote:Java web apps have no concept of being distributed unless they are identical. You will need to package 5 different web apps.


thanks ,

give me some idea how to make different applications to access each others
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42030
    
  64
Web apps are accessed through HTTP (as I'm sure you're aware). So you can use a library like Apache Commons HttpClient for that.
Kumar Kamlesh
Greenhorn

Joined: May 10, 2009
Posts: 15
You can make your applications REST based, which can exchange data from any other web application using JSON.

- Kamlesh
 
GeeCON Prague 2014
 
subject: is it possible to distribute a servlet based application?