jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AElsher...@idc.com
Subject jackrabbit-jca with spring
Date Wed, 10 Mar 2010 14:05:12 GMT
Hi All,

I configured jackrabbit-jca in JBoss, and currently I get a Session object 
with the following code:

InitialContext ctx = new InitialContext();
            JCARepositoryHandle repository = (JCARepositoryHandle) 
ctx.lookup(jndiName) ;
            Credentials credentials = new SimpleCredentials(userName, 
password) ;
            Session session = repository.login(credentials);

I'd like to use spring to do this, and use the JcrTemplate and 
JcrCallback, but don't know how!
Can anyone please tell me how to configure it in the 

Thank you in advance.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message