10 Replies Latest reply on Nov 2, 2012 12:12 AM by jaikiran Branched from an earlier discussion. Branched to a new discussion.

    EJBCLIENT-34 in AS7 nightly builds?

    fchaves

      Hi, EJBCLIENT-34 is included in 25-Oct-2012 Nightly build? If it is not included. How can I to begin using EJBCLIENT-34 patch on my JBoss AS 7.1.1 Final release?

      Thanks for your help.

        • 1. Re: EJBCLIENT-34 in AS7 nightly builds?
          jaikiran

          There's a pull request for it here https://github.com/jbossas/jboss-as/pull/3338. Once it gets merged, it will be available in the nightly builds which can be obtained from here https://community.jboss.org/thread/167590

          • 2. Re: EJBCLIENT-34 in AS7 nightly builds?
            fchaves

            Thanks Jaikiran,

             

            I've downloaded EJBCLIENT-34 (1.1.0 Beta1) where EJBCLIENT-34 has been resolved. I compiled and generated jboss-ejb-client.jar from sources using maven. But I have two questions?

             

            1- Can I use the new compiled jboss-ejb-client.jar with my JBoss AS 7.1.1. Final or I have to use JBoss AS 7.1.2 nigthly build instead?

             

            2- Can you provide me an example about how I should configure context properties dinamically (from my source code of invoker method) to invoke a remote EJB from another EJB without static configuration like "outbound connections, outbound-socket-bindings, etc"?

             

            Thanks a lot Jaikiran,

             

            I've been waiting for EJBCLIENT-34 to solve my big problem!

             

             

            Francisco.

            • 3. Re: EJBCLIENT-34 in AS7 nightly builds?
              jaikiran

              Francisco Chaves wrote:

               

              Thanks Jaikiran,

               

              I've downloaded EJBCLIENT-34 (1.1.0 Beta1) where EJBCLIENT-34 has been resolved. I compiled and generated jboss-ejb-client.jar from sources using maven. But I have two questions?

               

              1- Can I use the new compiled jboss-ejb-client.jar with my JBoss AS 7.1.1. Final or I have to use JBoss AS 7.1.2 nigthly build instead?

              You can use the released 1.0.13.Final version which too contains this support.

               

               

              Francisco Chaves wrote:

               

              2- Can you provide me an example about how I should configure context properties dinamically (from my source code of invoker method) to invoke a remote EJB from another EJB without static configuration like "outbound connections, outbound-socket-bindings, etc"?

               

              Here's an example from the testcase which will be merged upstream https://github.com/jaikiran/jboss-as/blob/87485ad582e317dd66149efb4fa19f9dafad7cb1/testsuite/integration/multinode/src/test/java/org/jboss/as/test/multinode/remotecall/scoped/context/StatefulBeanA.java#L130 once that pull request is processed

              • 4. Re: EJBCLIENT-34 in AS7 nightly builds?
                jaikiran

                Note that if your client itself is a AS7 server then for this feature to function properly you'll have to use the nightly build since that contains the necessary server side changes. However, if your client is something like a remote standalone application then you can just start using the 1.0.13.Final version of jboss-ejb-client on the client side.

                • 5. Re: EJBCLIENT-34 in AS7 nightly builds?
                  fchaves

                  Hi Jaikiran, first at all, thanks for your response..

                   

                  I'm trying to use jboss-ejb-client following your test example, but i'm getting the following error:

                   

                  [Server:server-one] 19:05:07,279 INFO  [org.jboss.as.server] (host-controller-connection-threads - 2) JBAS018559: Deployed "remoteEJBClient.war"

                  [Server:server-one] 19:05:40,395 INFO  [org.jboss.ejb.client.naming] (http-/192.168.1.239:8080-1) Cannot create a scoped EJB client context for JNDI naming context org.jboss.ejb.client.naming.ejb.EjbNamingContext@3e07bd since the current EJB client context selector can't handle scoped contexts

                  [Server:server-one] 19:05:40,401 INFO  [org.jboss.ejb.client] (http-/192.168.1.239:8080-1) JBoss EJB Client version 1.1.0.Beta1-SNAPSHOT

                   

                  I'm using jboss-as-7.2.0.Alpha1-SNAPSHOT.

                   

                  Any help is welcome..

                   

                  Thanks.

                  • 6. Re: EJBCLIENT-34 in AS7 nightly builds?
                    jaikiran

                    Like I said, the pull request hasn't yet been merged. Once that's done, the support will be available.

                    • 7. Re: EJBCLIENT-34 in AS7 nightly builds?
                      fchaves

                      Thanks for the response,

                      How can I figure out about the merge you say, incluiding EBJCLIENT-34?

                      When do you think this will happen, a few days, months? I´m really wanted for that feature to continue.

                       

                      Thanks Jaikiran,

                      • 8. Re: EJBCLIENT-34 in AS7 nightly builds?
                        jaikiran

                        This is now merged into upstream and should be available in next nightly build.

                        • 9. Re: EJBCLIENT-34 in AS7 nightly builds?
                          fchaves

                          Hi  Jaikiran, good news! Do you know when could you or the team, generate the next nightly build? Really I´m playing against the time.

                          Thanks a lot.

                          • 10. Re: EJBCLIENT-34 in AS7 nightly builds?
                            jaikiran

                            Francisco Chaves wrote:

                             

                            Hi  Jaikiran, good news! Do you know when could you or the team, generate the next nightly build?

                            It's automated and is "always" available. Here's where you can get it https://community.jboss.org/thread/167590