The configuration of the transaction manager looks correct for usage with
annotation driven transaction management. As in: it looks exactly as what I
have used, and have had working.
One thing I have never used though is Jetty, does Jetty really use
annotation driven transaction management? if it doesn't you probably need to
tell jetty to use the transaction manager you have configured.

/Tobias

On Wed, Jul 23, 2008 at 11:20 PM, Anders Nawroth <[EMAIL PROTECTED]>
wrote:

> Hi!
>
> I'm currently looking into the IMDB web app that is located in the neo4j
> laboratory (found in the svn repos). It uses Spring Framework and Jetty.
>
> The app uses the @Transactional annotation to add transaction management to
> methods. But in fact, this does not invoke any transaction management! The
> code works as there are transactions invoked one step higher in the call
> hierarchy (using programmatic transaction management the common neo4j-way).
>
> This is how the transactions are configured:
>
>   <!-- Transactions -->
>   <tx:annotation-driven />
>   <bean id="transactionManager"
>       class="org.springframework.transaction.jta.JtaTransactionManager">
>       <property name="transactionManager"
> ref="neoTransactionManagerService" />
>       <property name="userTransaction" ref="neoUserTransactionService" />
>   </bean>
>   <bean id="neoTransactionManagerService"
> class="org.neo4j.impl.transaction.SpringTransactionManager" />
>   <bean id="neoUserTransactionService"
> class="org.neo4j.impl.transaction.UserTransactionImpl" />
>
> The neo4j classes mentioned seem to be on the classpath.
>
> And this is what Jetty says about transactions:
>
> [INFO] Starting jetty 6.1.11 ...
> :INFO:  No Transaction manager found - if your webapp requires one, please
> configure one.
>
>
> Does somebody have an idea of how to solve this issue?
>
> /anders
>
> _______________________________________________
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Tobias Ivarsson <[EMAIL PROTECTED]>
Hacker, Neo Technology
www.neotechnology.com
Cellphone: +46 706 534857
_______________________________________________
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to