Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it possible to distribute a servlet based application?

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java web apps have no concept of being distributed unless they are identical. You will need to package 5 different web apps.
 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can make your applications REST based, which can exchange data from any other web application using JSON.

- Kamlesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic