1 Reply Latest reply on Aug 14, 2012 3:46 PM by Nicklas Karlsson

    EJB Distinct Name

    Heinz Wilming Newbie

      Hi,

       

      can anyone explain to me the distinct name? The JBoss AS7 allows each deployment to have an (optional) distinct name.

      Why and when should I use a distinct name and what would be possible use cases? I could not find any documentation for this.

       

      Thanks a lot.

      Heinz

       

        • 1. Re: EJB Distinct Name
          Nicklas Karlsson Master

          The closest I could find was

          A EJB client context is a context which contains contextual information for carrying out remote invocations on EJBs. This is a JBoss specific API. The EJB client context can be associated with multiple EJB receivers. Each EJB receiver is capable of handling invocations on different EJBs. For example, an EJB receiver "Foo" might be able to handle invocation on a bean identified by app-A/module-A/distinctinctName-A/Bar!RemoteBar, whereas a EJB receiver named "Blah" might be able to handle invocation on a bean identified by app-B/module-B/distinctName-B/BeanB!RemoteBean. Each such EJB receiver knows about what set of EJBs it can handle and each of the EJB receiver knows which server target to use for handling the invocations on the bean. For example, if you have a AS7 server at 10.20.30.40 IP address which has its remoting port opened at 4447 and if that's the server on which you deployed that CalculatorBean, then you can setup a EJB receiver which knows its target address is 10.20.30.40:4447. Such an EJB receiver will be capable enough to communicate to the server via the JBoss specific EJB remote client protocol (details of which will be explained in-depth in a separate chapter).