To be more clear, here is what I want to be able to do in Webobjects.
The following code works when run as a J2EE app under tomcat. Is
there any way I can communicate with the other J2EE App using
webobjects in this same way so that the other app doesn't know the
difference?
protected void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
HttpSession session = request.getSession();
String sessionKey = (String)
session.getAttribute("otherj2eeAppSession");
session.setAttribute("otherj2eeAppSession", sessionKey);
request.getRequestDispatcher("info.jsp").forward(request,
response);
}
On Feb 12, 2008, at 10:56 PM, Mike Schrag wrote:
I'm not deploying as a Servlet btw, I just want access to that
session id that's part of the request I receive from another webapp.
So wait ... Let's go back to square one here. You're running a
normal WO app, NOT inside of a servlet container like Tomcat or
JBoss, correct? If so, there IS no HttpSession. That's a J2EE
construct that does not exist in WO (in the same way). If you're
coming from another container and getting redirected into your WO
app, you aren't sharing sessions with that other application --
you're using WO sessions in your and they're using whatever they're
using in theirs. In yours, your application has a WOSession
subclass, which you can obtain by asking your component for
it's .session().
If I'm reading this wrong and you're deploying a WO app inside of
Tomcat or JBoss (or some other J2EE container), then your context
will be a WOServletContext and you CAN access the HttpSession.
Can you clarify exactly what your development/deployment scenario is
here?
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jeffandmonica%40mac.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]