quality@glassfish.java.net

EJB 3.1 and CMT

From: Adam Bien <abien_at_adam-bien.com>
Date: Thu, 04 Sep 2008 12:02:16 +0200

 ...seem to work correctly - I deployed an EJB 3.1 with
@TransactionAttribute(Mandatory) - the error was correctly recognized:

2008-09-04T11:43:12.040+0200 SEVERE:
StandardWrapperValve[HelloInterceptor]: PWC1406: Servlet.service() for
servlet HelloInterceptor threw exception
javax.ejb.EJBTransactionRequiredException
        at
com.sun.ejb.containers.BaseContainer.mapBusinessInterfaceException(BaseContainer.java:1642)
        at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1553)
        at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1473)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82)
        at $Proxy90.sayHello(Unknown Source)
        at
com.abien.samples.interceptor.__EJB31_Generated__HelloBean__Intf____Bean__.sayHello(Unknown
Source)


amazing & great!,

regards,

adam

-- 
 Consultant, Author, Java Champion
 
 Homepage: www.adam-bien.com
 Weblog: blog.adam-bien.com
 eMail:  abien_at_adam-bien.com
 Mobile: 0049(0)170 280 3144
 Books: Enterprise Architekturen (ISBN: 393504299X),
        Java EE 5 Architekturen  (ISBN: 3939084247),
        J2EE Patterns, J2EE Hotspots, Enterprise Frameworks and Struts