Quantcast

Neo4J plugin not registering transactionManager

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Neo4J plugin not registering transactionManager

barnesjd
I've started a new project that I intend to use Neo4J only.  I uninstalled Hibernate and installed the latest Neo4J plugin (version 1.0.0.M1) into my grails application (running Grails 2.0.3).  Any time I attempt any persistence operations, I get a message that no bean named 'transactionManager' has been registered.  

Does anyone know how I can get Neo4J to register itself as the transactionManager bean?

Thanks!
Joe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Neo4J plugin not registering transactionManager

Stefan Armbruster
Are you using Neo4j embedded or rest? Please check if the problem
disappears with 1.0.0.M2.
Regards,
Stefan
Am 17.08.2012 18:09, schrieb barnesjd:

> I've started a new project that I intend to use Neo4J only.  I uninstalled
> Hibernate and installed the latest Neo4J plugin (version 1.0.0.M1) into my
> grails application (running Grails 2.0.3).  Any time I attempt any
> persistence operations, I get a message that no bean named
> 'transactionManager' has been registered.  
>
> Does anyone know how I can get Neo4J to register itself as the
> transactionManager bean?
>
> Thanks!
> Joe
>
>
>
>
> --
> View this message in context: http://grails.1312388.n4.nabble.com/Neo4J-plugin-not-registering-transactionManager-tp4633381.html
> Sent from the Grails - user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Neo4J plugin not registering transactionManager

barnesjd
Thanks for the reply, Stefan. I'm using it in embedded mode. I had not realized that a newer version of the plugin had been released. I'll try that out and let you know how it goes.

Thanks!
Joe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Neo4J plugin not registering transactionManager

barnesjd
I upgraded to M2, but still cannot find the transactionManager. Do you suppose the plugin intentionally leaves this out to avoid conflicts with Hibernate? If so, maybe I just need to alias it or something like that.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Neo4J plugin not registering transactionManager

barnesjd
After taking a look again at the plugin, I now see that you're the author. So my question sounds a bit silly now. Thanks again for your time.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Neo4J plugin not registering transactionManager

barnesjd
Quick update... I've upgraded grails to 2.1.0, but the issue persists.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Neo4J plugin not registering transactionManager

barnesjd
If it helps, the Neo4JController works.  I see where all of my domain classes are mapped.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Neo4J plugin not registering transactionManager

barnesjd
I added an alias for transactionManager per this blog from Burt Beckwith.  That works, but I'm curious if I'll be aliasing more as I go.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Neo4J plugin not registering transactionManager

barnesjd
I found a bit better way to alias.  The last one I mentioned wouldn't allow me to use transactions in the BootStrap because the bean needed to be aliased BEFORE BootStrap got kicked off.  I've now made the alias in spring/resources.groovy and I'm able to use the GORM methods in the BootStrap:

beans = {
    springConfig.addAlias 'transactionManager', 'neo4jTransactionManager'
}

Thanks again to Burt Beckwith for fixing the bug.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Neo4J plugin not registering transactionManager

Stefan Armbruster
When using Neo4j in embedded mode a transactionManager been should be
automatically configured, see source code snippet http://goo.gl/wPHqd
Maybe you can share your project's code then I'll take a look at it.
Cheers,
Stefan

Am 18.08.2012 20:42, schrieb barnesjd:

> I found a bit better way to alias.  The last one I mentioned wouldn't allow
> me to use transactions in the BootStrap because the bean needed to be
> aliased BEFORE BootStrap got kicked off.  I've now made the alias in
> spring/resources.groovy and I'm able to use the GORM methods in the
> BootStrap:
>
>
>
> Thanks again to Burt Beckwith for fixing
> http://jira.grails.org/browse/GRAILS-8764 the bug .
>
>
>
> --
> View this message in context: http://grails.1312388.n4.nabble.com/Neo4J-plugin-not-registering-transactionManager-tp4633381p4633410.html
> Sent from the Grails - user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Neo4J plugin not registering transactionManager

barnesjd
Thank you for the generous offer, Stefan!  I have my project at bitbucket.org.  I know that you're a github guy, but do you have an account at bitbucket?  I can share the project with you.

Joe
Loading...