wood burning stoves*
The moose likes Servlets and the fly likes Servlets in different containers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets in different containers" Watch "Servlets in different containers" New topic
Author

Servlets in different containers

Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
suppose there are two servlets s1 and s2,both in different containers.Now, i want to take some value in s1 which i have set in s2.How can i do that?
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

You should look at the rest of JEE and possibly further. EJBs, JMS, JINI, web services and middle ware can all provide mechanisms to communicate between layers, depending on your needs.
Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
I am not talking about talking across layers..both servlets are in same layer only
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The servlet spec does not provide any methods for cross-container communication. The other technologies, mentioned by David, do.

Without knowing a lot more about your project, we can't tell you which technology is right for you.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlets in different containers
 
Similar Threads
String concatenation
meaningfully equivalent variables
String immutability
please help
Equals and ==