On Thu, 13 Feb 2003 01:58, Alex Loubyansky wrote:

> DW> Now that I think of it, wasn't some version of JBoss (3.2 or 4) going
> to DW> support Optimistic Locking?  Can someone tell me which version?
>
> Both already support it. Though, commit option A doesn't make much sense in
> this case as entity instances are cached per tx, not a global cache.

I had a go at this and with use of some xdoclet merge files seem to have it 
working. 

What I really need to do though is, using a version number of time stamp, to 
expose the value through the value object so I can extend the optimistic lock 
into the web layer.

ie: I read an object and present it's fields in some form to the user. The 
user can now update some of these fields and submit a change back to the 
system. If the object has been updated by someone or something else in the 
time the user has been considering their changes then I need the transaction 
to fail and let the user decide if their changes are still valid and to try 
again.

This doesn't sound like it would be hard to add but I don't quite understand 
yet how the CMP layer works. Need to get the debugger onto it and follow it 
through :-)

thanks, brian wallis.




-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to