jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandru Popescu ☀" <the.mindstorm.mailingl...@gmail.com>
Subject Re: storing PersistenceManager in httpSession ( jcr mapping layer)
Date Thu, 17 May 2007 13:15:13 GMT
On 5/17/07, ruchi goel <Ruchi.Goel@sun.com> wrote:
> Hi,
>    As per Jukka's proposal, it is a good idea to
>

Can you provide a pointer to this?

>     * have repository as ServletContextAttribute within
>       ServletContextListener
>     * jcr session can be stored in httpSession
>
>
> If I am using jcr mapping layer (OCM) , I access jackrabbit via OCM's
> PersistenceManager  which is something like
>
> new PersistenceManagerImpl(mapper, objectConverter, queryManager,
> jcrSession);
>
>
> Is it a good idea to have
>
>     * mapper, objectConverter, queryManager set in ServletContext
>       (after reading mapping files as context parameters)  within
>       ServletContextListener.
>     * store persistenceManager   in httpSession whenever jcrSession is
>       added/modified , within HttpSessionAttributeListener  .
>
> In the mapped  java objects , persistencemanager can be  retrieved from
> httpSession.

Well, probably I should read firstly Jukka's proposal, but based on my
usual parallel with Hibernate Session/JPA EntityManager I don't think
this will really work mainly due to concurrent access, serialization
issues.

./alex
--
.w( the_mindstorm )p.

> Thanks,
> Ruchi
>
>

Mime
View raw message