ejb 2.0 stateless session bean not working after migrate from 5.0 to eap 6.1
guleryuz May 28, 2014 2:02 AMejb-jar.xml
...
<session id="UygulamaMgr">
<display-name>UygulamaMgr</display-name>
<ejb-name>UygulamaMgr</ejb-name>
<local-home>ejb.UygulamaMgrLocalHome</local-home>
<local>ejb.UygulamaMgrLocal</local>
<ejb-class>ejb.UygulamaMgrBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref id="EJBLocalRef_1138969075907">
<ejb-ref-name>ejb/session/SequencerBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>sequencer.SequencerLocalHome</local-home>
<local>sequencer.SequencerLocal</local>
<ejb-link>SystemEJB.jar#Sequencer</ejb-link>
</ejb-local-ref>
<resource-ref id="ResourceRef_1375250216534">
<description></description>
<res-ref-name>jdbc/ds1</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</session>
...
web.xml
...
<ejb-local-ref id="EJBLocalRef_1072684100492">
<ejb-ref-name>ejb/session/UygulamaMgr</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>ejb.UygulamaMgrLocalHome</local-home>
<local>ejb.UygulamaMgrLocal</local>
<ejb-link>UYGULAMAEJB.jar#UygulamaMgr</ejb-link>
</ejb-local-ref>
...
<code>
Class[] paramTypes = new Class[0];
Object obj = new InitialContext().lookup("java:comp/env/ejb/session/UygulamaMgr");
Method method = obj.getClass().getMethod("create", paramTypes);
UygulamaMgrLocal local = (UygulamaMgrLocal) method.invoke(obj, new Object[] {});
local.getLastOpenSession();
</code>
This code is in my servlet. When debugging I can see local variable is obtained. But next line of code is waiting for a long time and then produce following logs.
00:40:16,059 WARN [com.arjuna.ats.arjuna] (Transaction Reaper) ARJUNA012117: TransactionReaper::check timeout for TX 0:ffff0a5a0a39:-61be207a:5385756f:9 in state RUN
00:40:16,061 WARN [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012095: Abort of action id 0:ffff0a5a0a39:-61be207a:5385756f:9 invoked while multiple threads active within it.
00:40:16,062 WARN [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012108: CheckedAction::check - atomic action 0:ffff0a5a0a39:-61be207a:5385756f:9 aborting with 1 threads active!
00:40:16,063 WARN [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffff0a5a0a39:-61be207a:5385756f:9
This all was working well in Jboss 5.0 GA. But case is above in eap 6.1 and 6.2.
Thans for your help.