jackrabbit-users mailing list archives

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

Thanks a lot for your reply, but there's something I don't understand! 
I don't use transactions, what is the relation between transactions and 
getting a connection to jackrabbit??
Everywhere when I googled it, it's always talking about transactions!! And 
now you're saying the same!

Would you please explain this to me, I am quite new to using jackrabbit at 


Sergey Podatelev <brightnesslevels@gmail.com> 
03/10/2010 03:22 PM
Please respond to


Re: jackrabbit-jca with spring

Here's a solution for distributed transactions across JackRabbit and
MySQL using Spring.

It might be a bit outdated, but I haven't seen a better solution so far.
Hope it helps.

On Wed, Mar 10, 2010 at 5:05 PM,  <AElshereay@idc.com> wrote:
> Hi All,
> I configured jackrabbit-jca in JBoss, and currently I get a Session 
> 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
> applicationContext.xml?
> Thank you in advance.


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