jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi goel <Ruchi.G...@Sun.COM>
Subject Re: storing PersistenceManager in httpSession ( jcr mapping layer)
Date Fri, 18 May 2007 05:24:35 GMT
Please find it attatched.

-Ruchi

Alexandru Popescu ? wrote:
> 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