aspose file tools
The moose likes Servlets and the fly likes Context Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Context" Watch "Context" New topic
Author

Context

Vallabhaneni Suresh Kumar
Ranch Hand

Joined: Mar 01, 2004
Posts: 68
How to share a context object between two machines assuming that one has app server and another one just has JDK?

Thank you
Neeraj Dheer
Ranch Hand

Joined: Mar 30, 2005
Posts: 225
How to share a context object between two machines assuming that one has app server and another one just has JDK?


What do you mean by 'share a context object'?? Can you elaborate what you are exactly trying to do?

If you just want the attributes of the context to be passed to the machine that has only the jdk, you can either iterate through the context and pass all the variables, or directly pass the context object to the machine.

[Edited to add qutoe and word it better]
[ October 06, 2005: Message edited by: Neeraj Dheer ]
Eddy Lee Sin Ti
Ranch Hand

Joined: Oct 06, 2005
Posts: 135
Do you try to share the app server side state to the jdk client? If yes, then you might need to choose a mechanism to serialize the data over to the client. Web services, RMI, self defined mechanism might be helpful.


SCJP, SCWCD, SCJWS, IBM 700,IBM 701, IBM 704, IBM 705, CA Clarity Technical<br /> <br /><a href="http://eddyleesinti.blogspot.com" target="_blank" rel="nofollow">http://eddyleesinti.blogspot.com</a>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Context
 
Similar Threads
What is polymorphism?
EM and Persistence Contexts
JUnit error in WSAD 5.1
Servlet Context
Threads and local variables