2 Replies Latest reply on Feb 10, 2012 4:20 AM by VITHUN VENGOPALAN Branched from an earlier discussion.

    EJB and JMS lookup from within a cluster

    VITHUN VENGOPALAN Newbie

      Does that mean that using "ejb:<app-name>/<module-name>/<distinct-name>/<bean-name>!<fully-qualified-classname-of-the-remote-interface>"  is the only way to do look up in other nodes in a cluster.

      I have a few doublts if that is the case,

      1. Can the destinations be dynamically set  in case of an app server environment. I tried to go through https://community.jboss.org/thread/177302 , just wanted to know weather its supported in app server environment.
      2. If the case is like, I have two destinations having the same bean deployed, will a call to that bean be load balanced.
      3. If we want to publish a JMS message in a clustered environment, how do we do that?

      I know you are wrting a document on this, please address these concerns too.

        • 1. Re: EJB and JMS lookup from within a cluster
          jaikiran pai Master

          Vithun, I have branched your post to a separate topic of its own since it wasn't really related to the other topic where this was posted.

           

           

          VITHUN VENGOPALAN wrote:

           

          Does that mean that using "ejb:<app-name>/<module-name>/<distinct-name>/<bean-name>!<fully-qualified-classname-of-the-remote-interface>"  is the only way to do look up in other nodes in a cluster.

          There's one other way which was implemented just a few days back as part of AS7-1338. Documentation for that is currently work-in-progress.

           

           

          VITHUN VENGOPALAN wrote:

           

          I have a few doublts if that is the case,

          1. Can the destinations be dynamically set  in case of an app server environment. I tried to go through https://community.jboss.org/thread/177302 , just wanted to know weather its supported in app server environment.

          The new approach allows you to do that by setting the PROVIDER_URL.

           

           

          VITHUN VENGOPALAN wrote:

           

          I have two destinations having the same bean deployed, will a call to that bean be load balanced.

          What kind of beans @Stateful, @Stateless? Are they @Clustered?

           

           

          If we want to publish a JMS message in a clustered environment, how do we do that?

          You mean a clustered queue?

          • 2. Re: EJB and JMS lookup from within a cluster
            VITHUN VENGOPALAN Newbie

            VITHUN VENGOPALAN wrote:

             

            I have a few doublts if that is the case,

            1. Can the destinations be dynamically set  in case of an app server environment. I tried to go through https://community.jboss.org/thread/177302 , just wanted to know weather its supported in app server environment.

            The new approach allows you to do that by setting the PROVIDER_URL

            Thanks really a great news.

             

            VITHUN VENGOPALAN wrote:

             

            I have two destinations having the same bean deployed, will a call to that bean be load balanced.

            What kind of beans @Stateful, @Stateless? Are they @Clustered?

            In my case its @Stateless and its not annotated as @Clustered (guess @Clustered doesn' make any difference in case of stateless beans).

             

            (it would be helpful to others if you can explain what happens with the other two case also, briefly)

            If we want to publish a JMS message in a clustered environment, how do we do that?

            You mean a clustered queue?

            Yes, a clustered queue/topic.