hi;
just noticed that you need you need to pass it to a standard java bean.
everything i said is still valid. this is also a perfect example to think
about the right design if you intend to port you application to be EJB
centric (where you dont pass HTTPSession to the EJB - dont pass it to a
regualr object also).

-----Original Message-----
From: Guy Katz [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 02, 2004 10:12 AM
To: [EMAIL PROTECTED]
Subject: Re: HttpSession from a JavaBean


the worst thing you can do is pass the HTTP session to your EJB! where is
the encapsulation? wheres the tier seperation?
if you need to pass data between tiers put it in your own object and pass it
or pass it as single parameters.
if this is not sufficient to solve your problem than take a closure look at
your architecture again....

-----Original Message-----
From: Robert Burdick [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 01, 2004 11:59 PM
To: [EMAIL PROTECTED]
Subject: Re: HttpSession from a JavaBean


That's what I was thinking.  I was just wondering if there was an easier
way to grab the session object implicitly from within the Bean somehow...

Robert

At 02:20 PM 5/1/2004 -0700, you wrote:
>Robert,
>It's possible if you pass it in as a call to one of the bean's methods.
>
>Regards,
>
>Richard
>
>At 09:31 AM 5/1/2004, you wrote:
>>Hello All:
>>
>>I know this may be unorthodox, but I really need to be able to access the
>>HttpSession object for my current session from a standard (non EJB)
>>JavaBean.  Is this possible?
>>
>>Robert
>>
>>
>>--------------------------------------------------------------------------
-------------------------------------------
>>Robert Burdick
>>Author, "Essential Windows CE Application Programming", John Wiley and
Sons
>>Co-author, "Professional JSP, 2nd Edition", Wrox Press
>>Microsoft eMVP
>>
>>[EMAIL PROTECTED]
>>www.wAppearances.com
>>(650)-917-8446 (office)
>>(650)-906-3707 (cell)
>>
>>==========================================================================
=
>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>JSP-INTEREST".
>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>>DIGEST".
>>
>>Some relevant archives, FAQs and Forums on JSPs can be found at:
>>
>>http://java.sun.com/products/jsp
>>http://archives.java.sun.com/jsp-interest.html
>>http://forums.java.sun.com
>>http://www.jspinsider.com
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
>
>Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>http://java.sun.com/products/jsp
>http://archives.java.sun.com/jsp-interest.html
>http://forums.java.sun.com
>http://www.jspinsider.com

Robert Burdick

[EMAIL PROTECTED]
www.wAppearances.com
(650)-917-8446 (office)
(650)-906-3707 (cell)

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to