jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rakesh Vidyadharan <rak...@sptci.com>
Subject Re: 1.0 or 2.0
Date Wed, 11 Nov 2009 19:13:26 GMT

On 11 Nov 2009, at 12:50:33 PM, Phukan, Anit wrote:

> Do I have to initialize the repository in my code in a different way to
> include the initialContext/lookup? I am also trying to read the
> datasource details from a properties.xml file.
> 
> Till now I was using 
> 
> Repository repository = new TransientRepository();

You use the usual context lookup methods.  See the following for an example of using both.

http://kenai.com/projects/jcrmanager/sources/svn/content/trunk/src/app/com/sptci/jcr/SessionManager.java?rev=40
Mime
View raw message