Frank,

could you share more of your project? And also the exceptions that ocurr ?

The neo4j TM is named "neo4jTransactionManager" only having an Alias to 
"transactionManager", imho it should be possible to 
override that alias with another bean definition like yours.

It would be great if you could share the project (or at least the config + a 
minimal test-case) for us to reproduce.

Thanks a lot

MIchael

Am 01.12.2011 um 20:47 schrieb Frank:

> Hi,
> 
> I find that I'm unable to integrate SpringDataNeo4j into my existing Spring
> project unless I rename my transaction manager, which is currently declared
> this way:
> 
>    <bean id="transactionManager"
> class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
>        <property name="dataSource" ref="sbDataSource" />
>    </bean>
> 
>    <bean id="transactionTemplate"
> class="org.springframework.transaction.support.TransactionTemplate">
>        <property name="transactionManager" ref="transactionManager" />
>    </bean>
> 
>    <tx:annotation-driven transaction-manager="transactionManager" />
> 
> Unless I rename the first bean to something other than "transactionManager",
> my own Spring beans fail to load. I'm somewhat hesitant to do this because
> I'm working in a large project with multiple developers and I don't know the
> full impact of renaming this bean. Is there any other way around the
> problem? Can I be certain that neo4j will not interfere with my existing
> JDBC transactions?
> 
> I'm also a bit curious/confused as to where the neo4j transactionManager
> bean is coming from. I did not declare any such bean in my Spring
> configuration files. All I declared was this:
> 
>       <neo4j:config graphDatabaseService="graphDatabaseService"/>
>       
>       <bean id="graphDatabaseService"
> class="org.springframework.data.neo4j.rest.SpringRestGraphDatabase">
>       <constructor-arg value="http://localhost:7474/db/data/"/>
>       </bean>
> 
> Finally, I'm wondering why I shouldn't just instantiate a
> SpringRestGraphDatabase object programatically instead of as a Spring bean.
> Is there any particular disadvantage to doing it programatically beyond the
> benefits of having Spring manage the lifecycle?
> 
> Thanks for your help.
> 
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/SpringData-requires-rename-of-transactionManager-tp3552635p3552635.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to