1 2 Previous Next 19 Replies Latest reply on Feb 1, 2009 10:14 AM by brian.stansberry Go to original post
      • 15. Re: round robin on Jboss 5
        yairogen

        You are correct. I will standby to see if you can reproduce.

        Thanks.

        • 16. Re: round robin on Jboss 5
          brian.stansberry

          I'm still looking into this. Any information you can give me on how you are using this bean in your test would be helpful. How many threads access the bean, how do you track what node is handling the calls, etc. Ideal would be a simple test app to show it. I've been experimenting and don't see the issue yet.

          • 17. Re: round robin on Jboss 5
            brian.stansberry

            OK, I'm going to need some sort of example application (even better a test case) to show this problem. I've beefed up testing trying to demonstrate a problem and I'm not seeing it.

            • 18. Re: round robin on Jboss 5
              yairogen

              Hi Bryan,

              thanks you very much for your effort. seems to be a problem with spring in older versions.

              Last Thursday I tried to re create the problem in a stand alone application. I used spring 2.5.5 and a different way to inject the proxy.

              IT WORKED. after restarting node 1 if started handling requests as should be.

              For the sake of others here is the xml that worked for me:

              <?xml version="1.0" encoding="UTF-8"?>
              
              <beans xmlns="http://www.springframework.org/schema/beans"
               xmlns:jee="http://www.springframework.org/schema/jee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd">
              
               <jee:jndi-lookup id="servicesEjb"
               jndi-name="jndiName" cache="true"
               resource-ref="false" lookup-on-startup="true"
               expected-type="com.bla.bla.bla.ServicesEJB">
              
               <jee:environment>
               java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
               java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
               java.naming.provider.url=host1,host2
               </jee:environment>
              
               </jee:jndi-lookup>
              
              </beans>
              




              Thanks you again for all your help.



              • 19. Re: round robin on Jboss 5
                brian.stansberry

                Great to hear; thanks yairogen for posting this for the benefit of others.

                Trying to reproduce this led me to add some useful improvements to our test suite, so good for JBoss software too.

                Cheers,

                1 2 Previous Next