1 2 Previous Next 23 Replies Latest reply on Jul 13, 2012 5:24 AM by jaikiran Go to original post
      • 15. Re: LookUp remote EJB from local EJB
        fargus

        Wolf-Dieter Fink wrote:

         

        The jboss-app.xml should contain a distinctName, not the expression.

        The expression can be used in the standalone.xml for the default-distinct-name

        Now I try to put default distinct name to standalone.xml.

        I add next string: <default-distinct-name>"${jboss.server.name}"</default-distinct-name> to ejb subsystem and don't get any results.

        EJB still available from ejb:es-ear/es-core//Environment!com.service.Environment but should from ejb:es-ear/es-core/${jboss.server.name}/Environment!com.service.Environment

         

        Tested on jboss.7.2.0Alpha1

        • 16. Re: LookUp remote EJB from local EJB
          wdfink

          Could you use a fix string first to ensure it works in general?

          • 17. Re: LookUp remote EJB from local EJB
            fargus

            Sorry Wolf-Dieter, I put this string to standalone.xml of jboss.7.1.1 but run 7.2.0. I have already tired.

             

            With 7.2.0 all work good.

            Thanks.

             

            If I will have another questions, I'll post to this thread.

            • 18. Re: LookUp remote EJB from local EJB
              fargus

              Wolf-Dieter Fink wrote:

               

              But from configuration I see no other posibility except to configure more than one remoting-ejb-receiver in the jboss-ejb-client.xml

              As I understand , now if I use standalone servers I can't dynamically configurate remote connections(because I cant add new receiver to jboss-ejb-client.xml at runtime).

              If yes, that please tell me this feature was added to jboss in the future?

              Else if anyone know how to dynamically configurate remote connections of standalone servers please provide this information.

              • 19. Re: LookUp remote EJB from local EJB
                apakhunov

                Is it possible to configure EJB receivers using JBoss EJB client api?

                • 20. Re: LookUp remote EJB from local EJB
                  jaikiran

                  Vadim Gusev wrote:

                  And one more question about jboss-ejb-client.xml

                   

                  Now my jboss-ejb-client.xml contains this code:

                  <jboss-ejb-client xmlns="urn:jboss:ejb-client:1.0">

                      <client-context>

                          <ejb-receivers>

                              <remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection"/>

                          </ejb-receivers>

                      </client-context>

                  </jboss-ejb-client>

                   

                  and for example I want to use this receiver with to connections: to myserver1:4447 ant to myserver2:4447

                   

                  Each EJB receiver corresponds to a distinct destination server. It's equivalent to each receiver using a connection to a destination server. So you can't have a single receiver for 2 different destinations. You'll need two receivers configured for that.

                   

                  If however, your EJBs are deployed in clustered server, then you can just list one of those nodes and rest of the nodes will be automatically connected/managed by the server. More details about clustering is here https://docs.jboss.org/author/display/AS71/Clustered+EJBs

                  • 21. Re: LookUp remote EJB from local EJB
                    apakhunov

                    Guys, what about my question above?

                     

                    Thanks,

                    Alex

                    • 22. Re: LookUp remote EJB from local EJB
                      wdfink

                      Alexander Pakhunov wrote:

                       

                      Is it possible to configure EJB receivers using JBoss EJB client api?

                      What you mean by that? What you want to achieve?

                      • 23. Re: LookUp remote EJB from local EJB
                        jaikiran

                        Please create a separate thread for that question.

                        1 2 Previous Next