[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

evdelst do-not-reply at jboss.com
Sun Jun 17 06:54:23 EDT 2007


When you call a method from within a session bean on the same bean, you have to call it using the interface (if you want transaction attributes to work, and any other interceptors).
You are probably calling on 'this' at the moment, which means the container doesn't get a chance to do its magic.
You can use the SessionContext (ejb api) to get the interface, and make the call on that.
The sessioncontext can be injected (if i recall correctly, put @Resource at the field).
Then, getBusinessObject should do the trick.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055018



More information about the jboss-user mailing list