AnsweredAssumed Answered

How to treat JSR-170 Repository and Session

Question asked by alexeyg on Feb 9, 2006
Latest reply on May 31, 2006 by nico

Quick question regarding JSR-170 Repository and Session objects… 

It takes a long time to instantiate a Repository object programmatically, and in the end it says "repository started." 

I need to get (and keep) JSR-170 level 1 access to Alfresco from my web app.  Login with Admin account and go from there.  What is the preferred way to handle this situation?  I tried loggin in once and keeping Session as a static variable but that throws security exceptions on refresh.

All examples seem to use the:
ApplicationContext context = new ClassPathXmlApplicationContext("classpath:org/alfresco/jcr-context.xml");
doesn't that start up the repository (which takes a while)?