wood burning stoves 2.0*
The moose likes Servlets and the fly likes If the app is distributed, there's one ServletContext per JVM! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "If the app is distributed, there Watch "If the app is distributed, there New topic
Author

If the app is distributed, there's one ServletContext per JVM!

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
If an application is distributed ,i mean in a clustered environment where should be the data stored so that all parts of a web application can access that data??

"if the app is distributed, there's one ServletContext per JVM!"


If you want something you never had do something which you had never done
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

I think you'll have to persist it to a database or file to do that...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
Application servers have capability to replicated such data across all nodes in the cluster.


My Blog
Ankitt Gupta
Ranch Hand

Joined: Feb 19, 2009
Posts: 101
i think Ankit is right
RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Vinod K Singh wrote:Application servers have capability to replicated such data across all nodes in the cluster.


I also thought the same , but while on Google search i found that we can also use JMS (Topics) for siultaneous server updated which will be very Messy code.
 
 
subject: If the app is distributed, there's one ServletContext per JVM!
 
Similar Threads
Mock Question Doubt
Servlet Context in distributed environment
need help on question from j2eecertificate
where ?
Doubt regarding ServletContext