Hi guys,
We are using JBoss for session beans. We have a dynamic proxy creator for
finding the required bean then invoking the method, somthing like
DynamicProxyCreator => InvocationHandler => ServiceLocator pattern. Which is
fine although the transaction in one bean is not rolling back. For example bean
one does a database call then calls bean two. Bean two calls JMS then returns
fine. Bean one then fails. One would expect that the database and the JMS are
rolled back, but the beans are not in the same transaction, so bean one is
rolled back but the JMS gets sent.
Why is this? Due to the proxy class generation?
I tried to get the object straight from JNDI with the usual
initialContext.lookup("jndi/name"), which should return the home interface, but
I get a $ProxyXX in return. The proxy does not implement the home interface so
I can't cast it, and the only way to get hold of the method required is via
reflection, very inefficient of course, and messy too.
Please help! At wits end here.
Thanks in advance.
Mike
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956134#3956134
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956134
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user