I tried calling SessionContext.getBusinessObject() and also
SessionContext.getInvokedBusinessInterface() from a SLSB method. However, I get
an IllegalStateException - "Not Implemented".
(aside: any reason to not to call getInvokedBusinessInterface() vs
getBusinessObject()? It seems simpler to not have to pass in the interface)
@Stateless
| public class FooBean implements FooLocal {
|
| @Resource SessionContext ctx;
| public static Logger log = Logger.getLogger( "FooBean" );
|
| public void doSomething() {
| log.info( "doSomething: enter");
|
| //Foo thisFoo = (Foo)ctx.getBusinessObject( FooLocal.class );
| Foo thisFoo = (Foo)ctx.getInvokedBusinessInterface();
|
| log.info( "got business interface: " + thisFoo );
| }
| }
I see the enter log message, but nothing after.
I guess there are two choices - either I'm not using this correctly or it's
really not implemented. Bill - should this work w/ RC7? If not, would we expect
this for a GA release of EJB3?
As to using the JBoss AOP @Tx mixed w/ EJB3 syntax, I don't think I can sell
that to our group. It seems messy to adopt EJB3 only to sprinkle in a
proprietary syntax to get the desired to our group.
Thanks,
-Dan
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949688#3949688
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949688
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user