You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Boris Granveaud <bo...@granveaud.com> on 2007/12/17 19:04:50 UTC

spring + declarative transactions

Hi,

I've browsed through several web sites, articles, documentations etc but I
can't find any clear example of how to configure Spring to enable JCR
declarative transaction support.

Has anyone a pointer?

Thanks,
Boris.

-- 
View this message in context: http://www.nabble.com/spring-%2B-declarative-transactions-tp14373962p14373962.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: spring + declarative transactions

Posted by Brian Thompson <el...@gmail.com>.
I'd search and post in the spring forums - I've had pretty good luck getting
help on Spring configuration over there.

-Brian



On Dec 17, 2007 2:15 PM, Christophe Lombart <ch...@gmail.com>
wrote:

> See in the Spring module project but I'm not sure if it is still
> maintained
>
> On Dec 17, 2007 7:04 PM, Boris Granveaud <bo...@granveaud.com> wrote:
>
> >
> > Hi,
> >
> > I've browsed through several web sites, articles, documentations etc but
> I
> > can't find any clear example of how to configure Spring to enable JCR
> > declarative transaction support.
> >
> > Has anyone a pointer?
> >
> > Thanks,
> > Boris.
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/spring-%2B-declarative-transactions-tp14373962p14373962.html
> > Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
> >
> >
>

Re: spring + declarative transactions

Posted by Brian Thompson <el...@gmail.com>.
While I've used Spring configuration in my Jackrabbit projects, I haven't
used annotations yet, so I can't say much on that topic.  You might have
better luck posting on [1]; using annotations seems like more of a Spring
topic than a Jackrabbit one :)

[1] - http://forum.springframework.org/

-Brian




On Dec 18, 2007 3:11 AM, Boris Granveaud <bo...@granveaud.com> wrote:

>
> Sorry, my question was not clear. I've read the spring module
> documentation
> and I've got a working configuration.
>
> But I would like to declare transaction with annotations like I do with
> Hibernate:
>
>    @Transactional(readOnly = true)
>    public Client findClient(Long id) {
>      ...
>    }
>
> Is it possible to do this with Spring JCR module?
>
> Another question: I've got an hybrid model Hibernate / JCR. Is it possible
>
> to have a global transaction?
>
> Thanks!
> Boris.
>
>
> Christophe Lombart wrote:
> >
> > See in the Spring module project but I'm not sure if it is still
> > maintained
> >
> > On Dec 17, 2007 7:04 PM, Boris Granveaud <bo...@granveaud.com> wrote:
> >
> >>
> >> Hi,
> >>
> >> I've browsed through several web sites, articles, documentations etc
> but
> >> I
> >> can't find any clear example of how to configure Spring to enable JCR
> >> declarative transaction support.
> >>
> >> Has anyone a pointer?
> >>
> >> Thanks,
> >> Boris.
>

Re: spring + declarative transactions

Posted by Boris Granveaud <bo...@granveaud.com>.
Sorry, my question was not clear. I've read the spring module documentation
and I've got a working configuration.

But I would like to declare transaction with annotations like I do with
Hibernate:

    @Transactional(readOnly = true)
    public Client findClient(Long id) {
      ...
    }

Is it possible to do this with Spring JCR module?

Another question: I've got an hybrid model Hibernate / JCR. Is it possible
to have a global transaction?

Thanks!
Boris.


Christophe Lombart wrote:
> 
> See in the Spring module project but I'm not sure if it is still
> maintained
> 
> On Dec 17, 2007 7:04 PM, Boris Granveaud <bo...@granveaud.com> wrote:
> 
>>
>> Hi,
>>
>> I've browsed through several web sites, articles, documentations etc but
>> I
>> can't find any clear example of how to configure Spring to enable JCR
>> declarative transaction support.
>>
>> Has anyone a pointer?
>>
>> Thanks,
>> Boris.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/spring-%2B-declarative-transactions-tp14373962p14373962.html
>> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/spring-%2B-declarative-transactions-tp14373962p14386484.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: spring + declarative transactions

Posted by Christophe Lombart <ch...@gmail.com>.
See in the Spring module project but I'm not sure if it is still maintained

On Dec 17, 2007 7:04 PM, Boris Granveaud <bo...@granveaud.com> wrote:

>
> Hi,
>
> I've browsed through several web sites, articles, documentations etc but I
> can't find any clear example of how to configure Spring to enable JCR
> declarative transaction support.
>
> Has anyone a pointer?
>
> Thanks,
> Boris.
>
> --
> View this message in context:
> http://www.nabble.com/spring-%2B-declarative-transactions-tp14373962p14373962.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>