What we are looking for is if Neo can detect the issue and log it. 

In Spring's hibernate template classes this read-only flag is used to
optimize things (no flush to db). But for hibernate it also causes and
an exception if any write operations are performed (see
http://forum.springframework.org/showthread.php?t=20304 for an example).

I guess the issue can be ignored for now if Neo won't take advantage of
the flag.

Tobias and I reacted on this as it looked like the transaction was
rollbacked, but I can't reproduced that today. And from what I
understand the transaction shouldn't rollback either.

//Jonas

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of neo4j.org
Sent: den 6 november 2007 18:14
Cc: user@lists.neo4j.org
Subject: [Neo] Re: [ticket] #19: Read only transactions

#19: Read only transactions
---------------------------------+--------------------------------------
---------------------------------+----
 Reporter:  tobias               |        Owner:  johans
     Type:  enhancement request  |       Status:  new   
 Priority:  major                |    Milestone:        
Component:  other                |   Resolution:        
 Keywords:                       |  
---------------------------------+--------------------------------------
---------------------------------+----
Comment (by johans):

 Exactly how does these "warnings" work in Spring? Ex. Spring using some
other supported JTA implementation, what would happen when a write
operation takes place? Would an exception be thrown right away or upon
commit? Or is there some other way the user is notified?

 If the user is notified upon commit and this works with other JTA TMs I
think spring just registers a transaction synchronization that on before
completion checks if transaction is read only, if not (and user said
this  should be a read only transaction) the transaction is marked
rollback only  and the user notified.

--
Ticket URL: <https://trac.neo4j.org/ticket/19#comment:1>
neo4j.org <http://trac.neo4j.org/>
The Neo4J.org Issue Tracker
_______________________________________________
Neo mailing list
User@lists.neo4j.org
http://lists.neo4j.org/mailman/listinfo/user

Reply via email to