|
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 |
|
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 |
|
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 |
|
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.
|
|
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.
|
|
Quick update... I've upgraded grails to 2.1.0, but the issue persists.
|
|
If it helps, the Neo4JController works. I see where all of my domain classes are mapped.
|
|
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.
|
|
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. |
|
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 |
|
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 |
| Powered by Nabble | Edit this page |
