You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2008/10/15 04:52:55 UTC
T5: Hibernate and services
Hi,
I have some tapestry-hibernate related questions:
1) if I have two concurrent services(A and B), each has Session injected. do
A and B have their own transaction?
2) I have a table config that has a field 'nextID':
2.1 IDService has a method 'NextID()' which get the value from
'nextID' and increment it
2.2 AppendSerivce which uses IDService's NextID to get a number and
assign to a new object, persist it
if I have two instances of UserService(A and B) running, A will be
successful in getting a new ID while B fails because it gets the same ID as
A, any idea how to solve this problem?
Thanks,
Angelo
--
View this message in context: http://www.nabble.com/T5%3A-Hibernate-and-services-tp19985886p19985886.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org