Hi Matt, I'm currently working on a RESTful application with Spring and Neo4j. Since even reading a Node requires a tx I've annotated my REST resources with @Transactional (using the Neo4j SpringTransactionManager). I don't know what I think of the big tx-scope, but I haven't run into any trouble due to it. Anyone else that has any comments on that?
On a different note. The template pattern which Spring uses for different types of persistence (JDBCTemplate, LDAPTemplate etc.), how would you want to see that with Neo? Personally I'm not sure that there's a fit, but since LDAPTemplate works fine (LDAP is after all a type of graph), there might be some value thinking of it... PS. Peter, I don't think I've contributed to the NeoWeaver component... I'm pro NodeDelegate instead of NodeWrapper, if that's what you're thinking of ;) Best regards, Mattias Ask ------------------------------------------- Jayway AB, +46 701 469284 www.jayway.com Jayway is the founder of Öredev and Qi4J www.oredev.org www.qi4j.org 20 nov 2009 kl. 20.10 skrev Peter Neubauer: > Hi Matt, > I am not too deep into the Spring components that exist, but there is > - a blog at Jayway by Mattias Ask, > http://blog.jayway.com/2009/05/26/spring-and-load-time-weaving-of-neo4j-based-domain-objects/ > - Grails integration for Spring by Stefan Armbruster, > http://blog.armbruster-it.de/2009/10/neo4j-grails-plugin/ , > http://grails.org/plugin/neo4j > - The NeoWeaver component by Mattias Askand Magnus Robertsson, > https://svn.neo4j.org/components/neo-weaver/trunk/ > > I am not sure what the state of things is, but there might be some > more information that you can find useful in there. Anyone else having > experience with Spring and transactions? > > Let us know your findings, would be great to get some more eyes and > hands on the Spring integration possibilities! > > HTH > > > /peter neubauer > > COO and Sales, Neo Technology > > GTalk: neubauer.peter > Skype peter.neubauer > Phone +46 704 106975 > LinkedIn http://www.linkedin.com/in/neubauer > Twitter http://twitter.com/peterneubauer > > http://www.neo4j.org - Relationships count. > http://www.linkedprocess.org - Distributed computing on LinkedData scale > > > > On Fri, Nov 20, 2009 at 4:26 PM, Matt Johnston <m...@lattaoutdoors.com> wrote: >> I am making a spring based web app and I was wondering if there was >> something similar to hibernate's OpenSessionInView for Neo? Since most >> interactions with the neo db require a transaction, I thought it would be >> better to wrap a web request in one transaction. Every time I need to grab a >> relationship or property from a node, I need a transaction. So I either have >> to start a new transaction for each bit of code (get this relationship, get >> this property), or I can try to wrap my whole web request in one >> transaction. >> >> >> Matt >> _______________________________________________ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > _______________________________________________ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user