Hi,

        So I want my business entity objects to be consistent before they are
commited. I figured this couold be done on the ejbStore() call when a
transaction is about to be commited. At this time I could check, for
example, if a string property is too long. If this fails I can
setRollbackOnly() on the current transaction. The question is, how do I
communicate the validation error that occured to the user? I.e. the user
could have called a session bean that did a bunch of object modifications
and when the transaction commited each of those objects could generate
validation errors. Right now the client app(user) only gets a transaction
rollback exception.

        Is there some-way to tie an object to the currrent transaction and use that
object to store all the error messages so they can be accessed
programatically by the user if a transaction failes?


                                                        -Doron


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to