RE: Again session...

"Christian Cryder" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Couple of comments...

Diez's comments on the origination of these methods are correct -
SessionService came first; ObjectRepository came second. That said, we never
use SessionService any more.

Advantage of getting the session through ObjectRepository:
a) you can get it from anywhere - you don't have to have access to the
Req/Resp, or to the EventContext
b) the object repository session also works in a non-http environment,
like...Test Cases! What this means is you can write your code to access stuf
from session, and it works whether you are running it in a webapp
context, -or- in a standalone environment (like a test case).

IMO, this is one of the biggest overall advantages of the whole OR
approach - we put all our database connections and configuration logic in
there, as well as session specific stuff, meaning that our app can be coded
in one way - and it will run whether its being invoked throught the webapp
or through the test case.

Christian
----------------------------------------------
Christian Cryder
Internet Architect, ATMReports.com
Project Chair, BarracudaMVC - http://barracudamvc.org
----------------------------------------------
"Coffee? I could quit anytime, just not today"


> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Thelmo Loisio
> Sent: Sunday, November 16, 2003 11:36 AM
> To: [email protected]
> Subject: [Barracuda] Again session...
>
>
> Well, i'm learning barracuda day after day and it really seems a good
> piece of software (TM) but some aspect of it aren't clear to me yet.
>
> Which are the diffs between using ObjectRepository.getSessionRepository
> and SessionService.getSession ?!
>
> They both seems to do the same thing... to me.
>
> Thanks
> --
> Thelmo
>
>
>
> --
> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>
> Sponsor:
> Samsung ML-4500  OFFERTISSIMA!!! La stampante laser per  tutti. A
> soli 132 Euro
>
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2019&d=16-11
> _______________________________________________
> Barracuda mailing list
> [email protected]
> http://barracudamvc.org/lists/listinfo/barracuda
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.