Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Servlet to Servlet Communication?

843841Jul 14 2006 — edited Jul 14 2006
Hello,

I have a problem w/communicating data from one servlet to another.

In resin.conf:
<web-app id='C:\apps\mytestapp'/>
My two servlets reside in the declared web-app.

I have servlet1 that Posts data to an outside thirdpart (ie different domain) servlet. The third party servlet responds, posting data to my other servlet, servlet2.
Servlet2 receives data that I want to communicate back to Servlet1.

I have tried doing:
req.getSession().getServletContext().setAttribute(
				"servlet2Data", myData);
That does not work. I see that the session IDs are different.
The data is sensitive so, I need to be careful in how I pass it around.

Suggestions?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2006
Added on Jul 14 2006
1 comment
125 views