Hi All,

In the EJB 3.0 specs I can read (table 14):
anonymous wrote : Bean method runs in the context of a transaction that the 
container started immediately before dispatching the business method.
  | This case may happen with Required and RequiresNew attributes.
  | 
  | System Exception --> 
  | 1- Log the exception or error.
  | 2- Rollback the container-started transaction.
  | 3- Discard instance.
  | 4- Throw EJBException to client.

I made a simple test:
@Stateless
  | public class TestExceptionBean implements TestExceptionBeanRemote {
  | 
  |     public void test() {
  |             throw new RuntimeException("test");
  |     }
  |     
  | }

With the Administration console, I can see Jboss discarding the EJB instance.
The transaction is well rolled-back.
The EJBException is sent to the client.
....
But I can't see my System Exception in the log.
Any idea ?

Thanks a lot in advcance,

Benoit

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193097#4193097

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193097
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to