0 Replies Latest reply on Jan 16, 2015 9:13 AM by usuarioapel701

    IllegalStateException when remote calling stateful bean's method

    usuarioapel701

      Hi all.

      I'm experiencing an issue on JB EAP 6.3.

      I have an EAR with beans migrated from ejb2 to ejb3 deployed in a jboss server.

      In same hardware, I run another jboss (port-offset=100) deploying a WAR based on the EAR, and I'm trying to remotely call methods in those migrated ejb3 beans.

       

      I already tried two links posted in this forum (https://docs.jboss.org/author/display/AS72/EJB+invocations+from+a+remote+client+using+JNDI and https://docs.jboss.org/author/display/AS72/Remote+EJB+invocations+via+JNDI+-+EJB+client+API+or+remote-naming+project), and even the example in the first link doesn't work for the stateful bean, i.e., I added the Calculator and Counter beans in the EAR application and verified that those beans were published in java:jboss/exported context. Calling methods in those beans from remote war application works correctly for CalculatorBean (stateless) but the stateful CounterBean throw IllegalStateException in org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy (line 195, in jboss-ejb-client-1.0.25.Final-redhat-1.jar).

       

      Any thoughts around this will be helpfull.

      Thank you in advance.