RE: Accessing PO session data from business objects

"Jeremy Ferry" <[email protected]>
Newsgroups gmane.comp.java.enhydra.general
Message-ID <02c701c31b02$44df1120$3465a8c0@Greed>
Seems to me like you should be able to easily work around this by
looking more carefully at which layer is doing what. In my applications,
everything that I need to do with the request and session data is
handled in the PO. If my business classes need data from the
presentation layer, which they invariably do, I pass it in. Basically, I
don't allow my business classes to have direct access to the resources
in the presentation layer. So, maybe I'm missing something but I think
you should be able to do this without needing to give your business
classes direct access to the session.

Jeremy

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Oleg Lebedev
> Sent: Wednesday, May 14, 2003 3:26 PM
> To: [email protected]
> Cc: [email protected]
> Subject: Enhydra: Accessing PO session data from business objects
> 
> 
> 
> Question: Does anyone know if it is possible to access data 
> of the PO session that invoked a method in a business object 
> from inside the business object? 
> 
> Example: Suppose a user clicks Save button on a webpage, 
> which triggers invocation of save() method in the 
> corresponding business object. Can I access this user session 
> information from within the save() method of this business 
> object? Thanks.
> 
> Oleg
> 
> *************************************
> 
> This e-mail may contain privileged or confidential material 
> intended for the named recipient only. If you are not the 
> named recipient, delete this message and all attachments. 
> Unauthorized reviewing, copying, printing, disclosing, or 
> otherwise using information in this e-mail is prohibited. We 
> reserve the right to monitor e-mail sent through our network. 
> 
> *************************************
> 
> 
> _______________________________________________
> Enhydra mailing list
> [email protected] 
> http://www.enhydra.org/mailman/listinfo.cgi/en> hydra
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.