• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Servlet HttpSession in webobjects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Servlet HttpSession in webobjects?


  • Subject: Re: Servlet HttpSession in webobjects?
  • From: Jeff Schmitz <email@hidden>
  • Date: Tue, 12 Feb 2008 23:04:06 -0600

Yes, you're correct in that what I'm doing is probably not a "normal" thing to do, but in my case I think it's required. My webobjects app is communicating with another J2EE app. I've configured the J2EE app to invoke one of my Direct actions. When it does, it passes me ITS session object as was shown, and it wants it back when my webobjects app sends a message back to it. That's why I need to access ITS session object (and why it sends it to me in the first place). Am I out of luck? Note, I don't have any control over the J2EE app other than being able to configure it to invoke my direct action.

Jeff



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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Servlet HttpSession in webobjects?
      • From: Chuck Hill <email@hidden>
References: 
 >Re: AJAX WebObjects Integration (From: Jeff Schmitz <email@hidden>)
 >Servlet HttpSession in webobjects? (From: Jeff Schmitz <email@hidden>)
 >Re: Servlet HttpSession in webobjects? (From: Lachlan Deck <email@hidden>)
 >Re: Servlet HttpSession in webobjects? (From: Jeff Schmitz <email@hidden>)
 >Re: Servlet HttpSession in webobjects? (From: Lachlan Deck <email@hidden>)
 >Re: Servlet HttpSession in webobjects? (From: Jeff Schmitz <email@hidden>)
 >Re: Servlet HttpSession in webobjects? (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Servlet HttpSession in webobjects?
  • Next by Date: Re: Servlet HttpSession in webobjects?
  • Previous by thread: Re: Servlet HttpSession in webobjects?
  • Next by thread: Re: Servlet HttpSession in webobjects?
  • Index(es):
    • Date
    • Thread