Hi Michael,

In your previous post you mentioned that With Neo4j 2.0 there is a new 
endpoint that can handle transactions over the wire. can i have sample 
example for these


Thanks,


On Tuesday, 17 September 2013 18:51:58 UTC+5:30, Michael Hunger wrote:
>
> This is not "the Java API" :)
>
> the java API is the embedded Neo4j API.
>
> This is just a convenience wrapper around the REST calls, there are no 
> real transactions. One transaction per HTTP call which is committed 
> automatically.
>
> With Neo4j 2.0 there is a new endpoint that can handle transactions over 
> the wire.
>
> But I still think for your use-case writing an server-extension with SDN 
> is more sensible.
>
>
> http://docs.spring.io/spring-data/data-graph/snapshot-site/reference/html/#d5e1991
>
> Michael
>
> Am 17.09.2013 um 14:55 schrieb Ramesh Yakkala <[email protected] 
> <javascript:>>:
>
>  GraphDatabaseService  graphDb = new RestGraphDatabase(url);
>
> Please let me know,this won't handle transaction.
>
>
> On Tuesday, September 17, 2013 5:50:32 PM UTC+5:30, Michael Hunger wrote:
>>
>> Oh, you cannot fail rest transactions, if they don't fail in themselves.
>>
>> In the REST API there are no transactions spanning requests, so you 
>> cannot fail them.
>>
>> If you have this kind of more advanced code, I recommend writing a server 
>> extension using SDN then you have the full power of the DB and can expose a 
>> domain level protocol over the wire.
>>
>> Michael
>>
>> Am 17.09.2013 um 14:11 schrieb Ramesh Yakkala <[email protected]>:
>>
>> I am using rest api to get the remote neo4j db connection.
>>
>> I placed the tx.failure() in the nested and as well as in root.
>>
>> But it is not happend.
>>
>>
>> On Tuesday, September 17, 2013 5:26:11 PM UTC+5:30, Michael Hunger wrote:
>>>
>>> If you use embedded, then all inner transactions that are started but 
>>> are not committed should roll back the outer transaction too.
>>>
>>> You should probably also put in innerTx.failure() in your Exception 
>>> catch block.
>>>
>>> Michael
>>>
>>> Am 17.09.2013 um 13:13 schrieb Ramesh Yakkala <[email protected]>:
>>>
>>> Hi,
>>>
>>> I am using java neo4j api for 1.9.2 version, using the root transaction 
>>> is holding the other nested transactions and if some exception appeared 
>>> while processing the nested transaction,it is not roll backing the 
>>> transactions which ever happen as part of that root transaction.
>>>
>>> Thanks,
>>> Ramesh Yakkala.
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Neo4j" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Neo4j" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to