Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: HttpSession from a JavaBean

Guy Katz

2004-05-02


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:gkatz@(protected)]
Sent: Sunday, May 02, 2004 10:12 AM
To: JSP-INTEREST@(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:rburdick@(protected)]
Sent: Saturday, May 01, 2004 11:59 PM
To: JSP-INTEREST@(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
>>
>>rburdick@(protected)
>>www.wAppearances.com
>>(650)-917-8446 (office)
>>(650)-906-3707 (cell)
>>
>>==========================================================================
=
>>To unsubscribe: mailto listserv@(protected)
>>JSP-INTEREST".
>>For digest: mailto listserv@(protected)
>>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 listserv@(protected)
>JSP-INTEREST".
>For digest: mailto listserv@(protected)
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

rburdick@(protected)
www.wAppearances.com
(650)-917-8446 (office)
(650)-906-3707 (cell)

===========================================================================
To unsubscribe: mailto listserv@(protected)
JSP-INTEREST".
For digest: mailto listserv@(protected)
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 listserv@(protected)
JSP-INTEREST".
For digest: mailto listserv@(protected)
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 listserv@(protected)".
For digest: mailto listserv@(protected)".

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
©2008 junlu.com - Jax Systems, LLC, U.S.A.