If your MDB is transactional, then to inform the container of your error all you need to do is to use the bean context to call setRollbackOnly().
To inform the container of a problem for any MDB—transactional or non-transactional—you can throw an exception derived from the RuntimeException or Error thrown by the MDB. This causes the MDB instance to be destroyed and re-created, which incurs a performance penalty.
For more information, take a look at the Weblogic / Oracle website
Applies to Weblogic webserver.
To inform the container of a problem for any MDB—transactional or non-transactional—you can throw an exception derived from the RuntimeException or Error thrown by the MDB. This causes the MDB instance to be destroyed and re-created, which incurs a performance penalty.
For more information, take a look at the Weblogic / Oracle website
Applies to Weblogic webserver.
No comments:
Post a comment