|
RE: Accessing PO session data from business objects: msg#00027java.enhydra.general
Business layer has not information about the current sessionKey. The only useful data it has access to is the currently running thread. Thanks. Oleg -----Original Message----- From: Terry Steichen [mailto:terry@xxxxxxxxxxxxx] Sent: Thursday, May 15, 2003 10:46 AM To: enhydra@xxxxxxxxxxx Subject: Re: Enhydra: Accessing PO session data from business objects Importance: Low I think you can do something like Enhydra.getSessionManager().getSession(sessionkey), or something similar. Regards, Terry ----- Original Message ----- From: "Oleg Lebedev" <oleg.lebedev@xxxxxxxxxxxxx> To: <enhydra@xxxxxxxxxxx> Cc: "Thorsten Hilker" <t_hilker@xxxxxxxxx> Sent: Thursday, May 15, 2003 11:03 AM Subject: RE: Enhydra: Accessing PO session data from business objects > > If I modify the signature of the save() method in a BO, then I would > have to change all the calls to this method in 10,000 places in the > presentation layer. Instead, I decided to map each thread created by > Enhydra with the session it is currently associated with. I update > this table every time the run(HttpPresentationComms) method in > HttpPresentation object is called. I keep this global hash table > around and access it from within the business layer. > Does anyone see a problem with this approach? > Thanks. > > Oleg > > -----Original Message----- > From: Thorsten Hilker [mailto:t_hilker@xxxxxxxxx] > Sent: Thursday, May 15, 2003 6:18 AM > To: enhydra@xxxxxxxxxxx > Subject: RE: Enhydra: Accessing PO session data from business objects > Importance: Low > > > I think it is not possible. > You have to pass the HttpPresentationComms objekt > which is only available in a PO > to the save - method. > (Or pass only the data you need in the save - method) > > So the save - method should look like this: save(HttpPresentationComms > comms) or save(ClassYouNeed xyz) > > HTH > Thorsten > > > > -----Original Message----- > > From: enhydra-admin@xxxxxxxxxxx [mailto:enhydra-admin@xxxxxxxxxxx] > > On Behalf Of Oleg Lebedev > > Sent: Wednesday, May 14, 2003 10:26 PM > > To: enhydra@xxxxxxxxxxx > > Cc: enhydra-zh@xxxxxxxxxxxxx > > 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 > > Enhydra@xxxxxxxxxxx http://www.enhydra.org/mailman/listinfo.cgi/en> > > hydra > > > > _______________________________________________ > Enhydra mailing list > Enhydra@xxxxxxxxxxx > http://www.enhydra.org/mailman/listinfo.cgi/enhydra > > > ************************************* > > 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 > Enhydra@xxxxxxxxxxx > http://www.enhydra.org/mailman/listinfo.cgi/enhydra _______________________________________________ Enhydra mailing list Enhydra@xxxxxxxxxxx http://www.enhydra.org/mailman/listinfo.cgi/enhydra ************************************* 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. *************************************
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Accessing PO session data from business objects, Jeremy Ferry |
|---|---|
| Next by Date: | RE: Accessing PO session data from business objects, Oleg Lebedev |
| Previous by Thread: | Re: Accessing PO session data from business objects, Terry Steichen |
| Next by Thread: | RE: Accessing PO session data from business objects, Oleg Lebedev |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |