On 5/17/07, ruchi goel <[EMAIL PROTECTED]> 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


Reply via email to