[hibernate-dev] recovering Neo4j transactions via their REST API...

Gunnar Morling gunnar at hibernate.org
Fri Dec 4 07:45:20 EST 2015


Gytis,

When you say

> get Neo4j transaction id in OGM?

what does that exactly mean? Would you like to access it from
application code? What is the use case for accessing it?

Thanks,

--Gunnar



2015-12-04 13:35 GMT+01:00 Davide D'Alto <daltodavide at gmail.com>:
> Hi Gytis,
>
> I've sent a pull request for Neo4j remote some time ago:
> https://github.com/hibernate/hibernate-ogm/pull/596
>
> This is an initial prototype and it still requires some work.
>
> That said, I think you will be able to obtain the transaction id via the
> TransactionCoordinator:
>
> TransactionDriver driver =
> transactionCoordinator.getTransactionDriverControl();
> Neo4jTransactionDriver neo4jDriver = (Neo4jTransactionDriver) driver;
> Long transactionId = driver.getTransactionId();
>
> As Emmanuel said, this might change in the future though, and it depends
> what you need.
>
> Cheers,
> Davide
>
> On Thu, Dec 3, 2015 at 7:40 PM, Emmanuel Bernard <emmanuel at hibernate.org>
> wrote:
>
>> Hey Gytis,
>>
>> Davide is the right person to talk to. We were discussing this very
>> subject during our face to face meeting and a few things will change. So
>> now is a good time to feed your needs.
>>
>> Emmanuel
>>
>> > On 30 nov. 2015, at 16:23, Scott Marlow <smarlow at redhat.com> wrote:
>> >
>> > Hi Gytis,
>> >
>> > Excellent to hear that you are looking at Neo4j.  I'm not sure, Emmanuel
>> would be the better person to ask.
>> >
>> > Scott
>> >
>> >> On 11/26/2015 12:23 PM, HipChat wrote:
>> >> Gytis Trikleris
>> >> <
>> https://www.hipchat.com/people/show/2470601?utm_medium=email&utm_source=oto_message_notification
>> >
>> >> just sent you a 1-1 message but you're offline:
>> >>
>> >> Gytis Trikleris
>> >> Hey Scott! I am playing around with Neo4j as a result of your email for
>> >> Tom last month. The one about recovering Neo4j transactions via their
>> >> REST API.
>> >> I'm checking whether it's doable, so would like to do a prototype for
>> >> it. Do you know, if there is already a way to get Neo4j transaction id
>> >> in OGM?
>> >> 12:23 PM
>> >> zdMpSzlniIzd770
>> >>
>> >>
>> >>
>>
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev


More information about the hibernate-dev mailing list