2 Replies Latest reply on Jul 31, 2012 11:52 AM by kazaag

    Difference between JBoss 7.0.2.Final and 7.1.1.Final

    fumandito

      Hi all, how are you

       

      So, I'm a little question on the JBoss versions, between 7.0.2.Final and 7.1.1.Final,

       

      this question because I can't lookup a remote EJB deployed on JBoss 7.0.2.Final

      Stacktrace:

      WARN: Could not register a EJB receiver for connection to remote://localhost:4447

      java.lang.RuntimeException: Operation failed with status WAITING

                at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:93)

                at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:121)

                at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.<init>(ConfigBasedEJBClientContextSelector.java:78)

                at org.jboss.ejb.client.EJBClientContext.<clinit>(EJBClientContext.java:77)

                at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:120)

                at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)

                at $Proxy0.add(Unknown Source)

                at it.fernando.ejb.remote.client.RemoteEJBClient.invokeStatelessBean(RemoteEJBClient.java:50)

                at it.fernando.ejb.remote.client.RemoteEJBClient.main(RemoteEJBClient.java:31)

      Exception in thread "main" java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:jboss-as-ejb-remote-app,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@175093f1

                at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:584)

                at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:119)

                at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)

                at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)

                at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)

                at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)

                at $Proxy0.add(Unknown Source)

                at it.fernando.ejb.remote.client.RemoteEJBClient.invokeStatelessBean(RemoteEJBClient.java:50)

                at it.fernando.ejb.remote.client.RemoteEJBClient.main(RemoteEJBClient.java:31)

       

      Instead if I lookup this remote bean deployed on JBoss 7.1.1.Final, it's work correctly

       

      The example is: https://github.com/jboss-jdf/jboss-as-quickstart/tree/master/ejb-remote

       

      I repeat, if deployed on JBoss 7.1.1.Final, works correctly

      if deployed on JBoss 7.0.2.Final, explodes!!!

       

      Thanks a lot, best regards

        • 1. Re: Difference between JBoss 7.0.2.Final and 7.1.1.Final
          wdfink

          Hello Fernando,

          welcome to the forum.

           

          AS7.0 is only the web-profile, remote access to ejb's (and different other things for the fullEE profile) are available since 7.1.

          The quickstarts are supposed to work with AS7.1.1.Final.

          • 2. Re: Difference between JBoss 7.0.2.Final and 7.1.1.Final
            kazaag

            7.0.2 only fully implement the JEE 6 Web profile and  7.1.1 JEE full profile, remote EJB aren't in the Web profile.

             

            7.0.2 had some preview extra feature but remote EJB call was part of it.

             

            For now there is no reason to use previous version as you can deactivate submodule, you can have very light weight application server (even if every thing is activated it is still very light weight...)

             

            Edit: I took too much time to write...