Re: [Neo4j] Neo4j with Tomcat...need a transaction manager

2011-07-18 Thread Chris Gioran
Hey Jaf,

On Sat, Jul 16, 2011 at 4:23 AM, etc3 e...@nextideapartners.com wrote:
 Michael,

 If I use the default trx manager in neo4j, what connection pool driver
 should be used in Tomcat?

The internal implementation of Neo4j's transaction manager is not
currently exposed for use by 3rd party resources. This means that,
while capable of coordinating a 2PC you cannot use it to do so as a
standalone TM like JOTM. The work we have done is actually the reverse
of that - it substitutes Neo4's TM for an externally provided one,
since both our transactional resources (neo store and lucene indexes)
are XA compatible.

For you this means that you have to use an external TM (like Atomikos
and JBossTM that you mentioned - we have also tested SpringSource's
implementation and JOTM and found all four of them to work) to
coordinate your XA datasources. Doing so for Tomcat however is
something we have not tried yet - the blog posts Michael mentioned
should cover a lot of ground nevertheless, the only thing not covered
is integration with the container, the rest should work.

I will try and replicate your scenario locally and see what trouble
may rise but I am really interested to see how it went for you.

Hope that helped a bit,

CG

 -Original Message-
 From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
 Behalf Of Michael Hunger
 Sent: Friday, July 15, 2011 9:05 PM
 To: Neo4j user discussions
 Subject: Re: [Neo4j] Neo4j with Tomcat...need a transaction manager

 Yes they were added.

 The XA-TX-Manager is configurable in Neo4j (defaults to our own but if you
 have an external one like JOTM or Atomikos) then you can configure those to
 be used.

 Example implementation for JOTM:
 https://github.com/digitalstain/JOTMServiceProvider

 Implementation in neo4j is here:
 https://github.com/neo4j/community/tree/master/kernel/src/main/java/org/neo4
 j/kernel/impl/transaction

 Cheers

 Michael

 Am 16.07.2011 um 02:43 schrieb etc3:

 Thanks, Micheal.

 The blog post from Chris was from last year; were those changes for
 JOTM ever added to neo4j?

 -Original Message-
 From: user-boun...@lists.neo4j.org
 [mailto:user-boun...@lists.neo4j.org] On Behalf Of Michael Hunger
 Sent: Friday, July 15, 2011 8:00 PM
 To: Neo4j user discussions
 Subject: Re: [Neo4j] Neo4j with Tomcat...need a transaction manager

 Springsource also provides/is working on their own tomcat based XA TM.
 Perhaps you'd like to check that out.
 (http://forum.springsource.org/showthread.php?76843-JTA-for-Tc-Server;
 p=2583
 83#post258383)

 Otherwise there is only JOTM left.

 Neo4j can integrate with those TM.
 See also these blog posts by our team member Chris Gioran:
 http://digitalstain.blogspot.com/2010/11/using-jotm-as-transactionmana
 ger-in
 .html
 http://digitalstain.blogspot.com/2011/02/springy-ouside-graphy-inside.
 html
 http://digitalstain.blogspot.com/2010/11/neo4j-internals-transactions-
 part-3
 -as.html

 Internally it uses also 2PC with the nioneo store and lucene.

 Cheers

 Michael

 Am 16.07.2011 um 01:37 schrieb etc3:

 We plan on using neo4j as the database for our website, which will
 run on Tomcat. Also, we'll be using ActiveMQ for sending messages
 within neo4j transactions, so that leaves the question of what to use
 for the transaction manager. Atomikos, JBossTM comes to mind, are we
 missing
 anything obvious?
 Does neo4j provide anything out-of-box for transactions management?



 Thanks

 Jaf

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

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

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

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

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

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


[Neo4j] Neo4j with Tomcat...need a transaction manager

2011-07-15 Thread etc3
We plan on using neo4j as the database for our website, which will run on
Tomcat. Also, we'll be using ActiveMQ for sending messages within neo4j
transactions, so that leaves the question of what to use for the transaction
manager. Atomikos, JBossTM comes to mind, are we missing anything obvious?
Does neo4j provide anything out-of-box for transactions management?

 

Thanks

Jaf

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


Re: [Neo4j] Neo4j with Tomcat...need a transaction manager

2011-07-15 Thread Michael Hunger
Springsource also provides/is working on their own tomcat based XA TM. Perhaps 
you'd like to check that out.
(http://forum.springsource.org/showthread.php?76843-JTA-for-Tc-Serverp=258383#post258383)

Otherwise there is only JOTM left.

Neo4j can integrate with those TM. 
See also these blog posts by our team member Chris Gioran:
http://digitalstain.blogspot.com/2010/11/using-jotm-as-transactionmanager-in.html
http://digitalstain.blogspot.com/2011/02/springy-ouside-graphy-inside.html
http://digitalstain.blogspot.com/2010/11/neo4j-internals-transactions-part-3-as.html

Internally it uses also 2PC with the nioneo store and lucene.

Cheers

Michael

Am 16.07.2011 um 01:37 schrieb etc3:

 We plan on using neo4j as the database for our website, which will run on
 Tomcat. Also, we'll be using ActiveMQ for sending messages within neo4j
 transactions, so that leaves the question of what to use for the transaction
 manager. Atomikos, JBossTM comes to mind, are we missing anything obvious?
 Does neo4j provide anything out-of-box for transactions management?
 
 
 
 Thanks
 
 Jaf
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Neo4j with Tomcat...need a transaction manager

2011-07-15 Thread Rick Bullotta
It's built in for neo4j.  Full jta support!



- Reply message -
From: etc3 e...@nextideapartners.com
Date: Fri, Jul 15, 2011 7:38 pm
Subject: [Neo4j] Neo4j with Tomcat...need a transaction manager
To: user@lists.neo4j.org user@lists.neo4j.org

We plan on using neo4j as the database for our website, which will run on
Tomcat. Also, we'll be using ActiveMQ for sending messages within neo4j
transactions, so that leaves the question of what to use for the transaction
manager. Atomikos, JBossTM comes to mind, are we missing anything obvious?
Does neo4j provide anything out-of-box for transactions management?



Thanks

Jaf

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


Re: [Neo4j] Neo4j with Tomcat...need a transaction manager

2011-07-15 Thread etc3
Thanks, Micheal.

The blog post from Chris was from last year; were those changes for JOTM
ever added to neo4j?

-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
Behalf Of Michael Hunger
Sent: Friday, July 15, 2011 8:00 PM
To: Neo4j user discussions
Subject: Re: [Neo4j] Neo4j with Tomcat...need a transaction manager

Springsource also provides/is working on their own tomcat based XA TM.
Perhaps you'd like to check that out.
(http://forum.springsource.org/showthread.php?76843-JTA-for-Tc-Serverp=2583
83#post258383)

Otherwise there is only JOTM left.

Neo4j can integrate with those TM. 
See also these blog posts by our team member Chris Gioran:
http://digitalstain.blogspot.com/2010/11/using-jotm-as-transactionmanager-in
.html
http://digitalstain.blogspot.com/2011/02/springy-ouside-graphy-inside.html
http://digitalstain.blogspot.com/2010/11/neo4j-internals-transactions-part-3
-as.html

Internally it uses also 2PC with the nioneo store and lucene.

Cheers

Michael

Am 16.07.2011 um 01:37 schrieb etc3:

 We plan on using neo4j as the database for our website, which will run 
 on Tomcat. Also, we'll be using ActiveMQ for sending messages within 
 neo4j transactions, so that leaves the question of what to use for the 
 transaction manager. Atomikos, JBossTM comes to mind, are we missing
anything obvious?
 Does neo4j provide anything out-of-box for transactions management?
 
 
 
 Thanks
 
 Jaf
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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

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


Re: [Neo4j] Neo4j with Tomcat...need a transaction manager

2011-07-15 Thread Michael Hunger
Yes they were added.

The XA-TX-Manager is configurable in Neo4j (defaults to our own but if you have 
an external one like JOTM or Atomikos) then you can configure those to be used.

Example implementation for JOTM: 
https://github.com/digitalstain/JOTMServiceProvider

Implementation in neo4j is here: 
https://github.com/neo4j/community/tree/master/kernel/src/main/java/org/neo4j/kernel/impl/transaction

Cheers

Michael

Am 16.07.2011 um 02:43 schrieb etc3:

 Thanks, Micheal.
 
 The blog post from Chris was from last year; were those changes for JOTM
 ever added to neo4j?
 
 -Original Message-
 From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
 Behalf Of Michael Hunger
 Sent: Friday, July 15, 2011 8:00 PM
 To: Neo4j user discussions
 Subject: Re: [Neo4j] Neo4j with Tomcat...need a transaction manager
 
 Springsource also provides/is working on their own tomcat based XA TM.
 Perhaps you'd like to check that out.
 (http://forum.springsource.org/showthread.php?76843-JTA-for-Tc-Serverp=2583
 83#post258383)
 
 Otherwise there is only JOTM left.
 
 Neo4j can integrate with those TM. 
 See also these blog posts by our team member Chris Gioran:
 http://digitalstain.blogspot.com/2010/11/using-jotm-as-transactionmanager-in
 .html
 http://digitalstain.blogspot.com/2011/02/springy-ouside-graphy-inside.html
 http://digitalstain.blogspot.com/2010/11/neo4j-internals-transactions-part-3
 -as.html
 
 Internally it uses also 2PC with the nioneo store and lucene.
 
 Cheers
 
 Michael
 
 Am 16.07.2011 um 01:37 schrieb etc3:
 
 We plan on using neo4j as the database for our website, which will run 
 on Tomcat. Also, we'll be using ActiveMQ for sending messages within 
 neo4j transactions, so that leaves the question of what to use for the 
 transaction manager. Atomikos, JBossTM comes to mind, are we missing
 anything obvious?
 Does neo4j provide anything out-of-box for transactions management?
 
 
 
 Thanks
 
 Jaf
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Neo4j with Tomcat...need a transaction manager

2011-07-15 Thread etc3
Michael,

If I use the default trx manager in neo4j, what connection pool driver
should be used in Tomcat?

-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
Behalf Of Michael Hunger
Sent: Friday, July 15, 2011 9:05 PM
To: Neo4j user discussions
Subject: Re: [Neo4j] Neo4j with Tomcat...need a transaction manager

Yes they were added.

The XA-TX-Manager is configurable in Neo4j (defaults to our own but if you
have an external one like JOTM or Atomikos) then you can configure those to
be used.

Example implementation for JOTM:
https://github.com/digitalstain/JOTMServiceProvider

Implementation in neo4j is here:
https://github.com/neo4j/community/tree/master/kernel/src/main/java/org/neo4
j/kernel/impl/transaction

Cheers

Michael

Am 16.07.2011 um 02:43 schrieb etc3:

 Thanks, Micheal.
 
 The blog post from Chris was from last year; were those changes for 
 JOTM ever added to neo4j?
 
 -Original Message-
 From: user-boun...@lists.neo4j.org 
 [mailto:user-boun...@lists.neo4j.org] On Behalf Of Michael Hunger
 Sent: Friday, July 15, 2011 8:00 PM
 To: Neo4j user discussions
 Subject: Re: [Neo4j] Neo4j with Tomcat...need a transaction manager
 
 Springsource also provides/is working on their own tomcat based XA TM.
 Perhaps you'd like to check that out.
 (http://forum.springsource.org/showthread.php?76843-JTA-for-Tc-Server;
 p=2583
 83#post258383)
 
 Otherwise there is only JOTM left.
 
 Neo4j can integrate with those TM. 
 See also these blog posts by our team member Chris Gioran:
 http://digitalstain.blogspot.com/2010/11/using-jotm-as-transactionmana
 ger-in
 .html
 http://digitalstain.blogspot.com/2011/02/springy-ouside-graphy-inside.
 html
 http://digitalstain.blogspot.com/2010/11/neo4j-internals-transactions-
 part-3
 -as.html
 
 Internally it uses also 2PC with the nioneo store and lucene.
 
 Cheers
 
 Michael
 
 Am 16.07.2011 um 01:37 schrieb etc3:
 
 We plan on using neo4j as the database for our website, which will 
 run on Tomcat. Also, we'll be using ActiveMQ for sending messages 
 within neo4j transactions, so that leaves the question of what to use 
 for the transaction manager. Atomikos, JBossTM comes to mind, are we 
 missing
 anything obvious?
 Does neo4j provide anything out-of-box for transactions management?
 
 
 
 Thanks
 
 Jaf
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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

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