Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4016

EJB invocations from a remote server instance does not work properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • No Release
    • None
    • EJB

      It seems that the EJB invocations from a remote server instance does not work.

      In multinode part of testsuite does not work binding of local initial context on client server. It seems that it's returned remote context (of the second server) everytime. As well in case that lookup is made from injected InitialContext.

      @Resource InitialContext ctx;
      

      The mentioned test could be found here: https://github.com/ochaloup/jboss-as/commit/a5a5405894080dc01925a7d47640ae60d76972ea#L1R95

      The second problem occurs on deploying app on "standalone" server (out of the testsuite). It seems that server does not see any other server and it binds local context instead of remote one. E.g. When I ran only one server and deployed application with jboss-ejb-client.xml pointing to outbound-connection it does not throw an exception that the outbound-connection can't be caught but it throw exception:

      javax.ejb.EJBException: java.lang.RuntimeException: java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:myejb,distinctname:] combination
      

      which means that it found an context but didn't find a receiver. In fact it was found context of the running (local) server.

              jaikiran Jaikiran Pai (Inactive)
              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: