Re: [Neo4j] Officially supported mechanism for J2EE
Sorry for the quantity of my questions, and I apologize in advance if any of them are trivial or stupid. ok - so I guess that in my Session Bean I would use the regular old @Resource annotation: @Resource GraphDatabaseService graphDb; Or do I need to declare Neo to jndi and then reference it? @Resource(name=neo/myGraphDb) GraphDatabaseService graphDb; Do I have to update the server.xml file so graphDb knows what to open? I am assuming that there is no connection pooling. I am assuming that my Session Bean does not need to be a Singleton. Is an alternative for me to actually open in ejbCreate? As you stated, it is important to release everything when I'm done ... would that be done thru ejbRemove? OK - so now I'll need XA transaction support. I have never done anything with XA. I am trying to look up articles on Google for Glassfish ... so far I have found very little. I'm not sure yet if Glassfish has built-in support for XA (I'm assuming it does) and I can just use the javax.transaction package, or if I have to do special app server configuration ... and not yet sure if/how to set it all up as a container managed transaction. Can you tell I am not yet comfortable with J2EE? :-) Frankly, I am evaluating the use cases to see if I ever need to share a transaction with the database or if they are always separate (or if I can design so they are always separate). I am essentially using Neo4j as a hierarchic index against a mysql table .. lots of queries but very very few inserts or updates. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Officially-supported-mechanism-for-J2EE-tp3176938p3192177.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
Re: [Neo4j] Officially supported mechanism for J2EE
I have two projects. One is full-on J2EE using Glassfish. The other is Servlet based, using Tomcat. At this point I am not using Spring or Guice - the only injection I get is the standard J2EE injection for my beans. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Officially-supported-mechanism-for-J2EE-tp3176938p3189874.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
Re: [Neo4j] Officially supported mechanism for J2EE
BTW - I am willing to document what I learn in a cookbook if there are enough people with enough patience to hold my hand as I get everything running. (I wouldn't want to clog up the mail list with the hand holding - especially if I summarize it in a cookbook). -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Officially-supported-mechanism-for-J2EE-tp3176938p3189880.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
Re: [Neo4j] Officially supported mechanism for J2EE
My understanding of the J2EE standard is that you should *not* do file I/O from inside a bean (my assumption is to avoid issues if you run in a clustered environment). If I access Neo4j directly from a bean, wouldn't I be violating that? I am not currently clustered, and my app is small enough I may not need to - so I am considering violating that standard (because neo4j rocks). However, if you provided JCA or other mechanisms so that we could access Neo4j just like any other J2EE data source, that would make my life simpler. Barring that, I either need to violate the standard, write my own JCA, or borrow the JCA developed by one of your other users. So lets assume I go ahead and access Neo4j from inside my session bean. Do you have any Neo4j sanctioned write-up on integrating with a session bean (or even with a servlet), covering where to connect to the db, where to close the connection, how to integrate with XA transaction, etc? I've seen a couple of threads on these things, but would be more comfortable if Neo4j had their own cookbook on the subject. Thanks -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Officially-supported-mechanism-for-J2EE-tp3176938p3186416.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
[Neo4j] How can you have transactions with Lucene?
I like Neo4j and am interested in using it in a number of projects (once I figure out a good way to make Neo play nice in Glassfish) ... but I am confused about something. I apologize if this is a stupid question. My understanding is that Lucene does *not* support transactions. Supposedly that lack of transaction support was a prime motivator for the Compass project, and is a selling point for the Lucene competitor, Sphinx. So, how can Neo4j provide real transaction support if it relies on Lucene? I am confused. Thanks -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/How-can-you-have-transactions-with-Lucene-tp3176918p3176918.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
[Neo4j] Officially supported mechanism for J2EE
I really like Neo, but am concerned that there is so little official company support for J2EE. I want to use Neo as a standard data source in J2EE, with container managed transactions, etc. I don't want to use the REST interface - I want a standard data source interface. There does not appear to be an officially provided mechanism to use Neo as a data source in J2EE. I've seen a couple of people post their code to help someone get started, but shouldn't Neo provide a real official sanctioned mechanism? P.S. I don't want this thread to turn into a religious war over REST. If you like REST and want to defend it then please start a thread for that purpose. Please just accept that I don't want to use the REST interface - I want a standard DB interface for my DB. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Officially-supported-mechanism-for-J2EE-tp3176938p3176938.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
Re: [Neo4j] How can you have transactions with Lucene?
Sorry, but how does this thin layer control how Lucene interacts with the disk (since Lucene isn't transactional). Does it somehow buffer the disk I/O? Does it coerce Lucene to write to a different file and then update the real file at the end of the transaction? I'm not trying to be difficult, but I am interested in Lucene for my project as well, and need it to behave properly regarding transactions. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/How-can-you-have-transactions-with-Lucene-tp3176918p3176951.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
Re: [Neo4j] How can you have transactions with Lucene?
Lucene itself says it doesn't properly support ACID or XA transaction support. (Bug 1149 - Major - New Feature - Reopened - Unresolved). -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/How-can-you-have-transactions-with-Lucene-tp3176918p3176981.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
Re: [Neo4j] How can you have transactions with Lucene?
Very Kewl. Thanks Mattias. Can you send your code over to Lucene so they can add effective transactions. I know a number of people use Lucene for full text search in conjunction with MySql, and the lack of transactions is a major issue. Thanks again -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/How-can-you-have-transactions-with-Lucene-tp3176918p3177747.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