1 2 Previous Next 26 Replies Latest reply on Mar 27, 2014 10:10 AM by thiru123 Go to original post
      • 15. Re: AS7.1 Provider URL for clustered remote JNDI servers
        rhusar

        Apart from UDP being somewhat "chatty" on the network, the network admins that I have worked with do not like UDP traffic because they claim it could enable the introduction of a "rogue" server into the cluster, which could then do malicious things.  At one client, someone actually (accidentally) joined the live production cluster by starting JBoss locally on their developer workstation.

         

        IMHO thats a terrible misconfiguration. Few things on top of my mind that just went wrong:

         

        • TTL for UDP packets to be 1 (1 hop, same network, noone else gets messages + performance)
        • the switch should never send UDP outside of its network
        • unchanged partition name (-g switch)
        • no JGroups auth used (see org.jgroups.auth)
        • JGroups ENCRYPT protocol can be used to secure communication

         

        Anyway...

        • 16. Re: AS7.1 Provider URL for clustered remote JNDI servers
          jason.greene

          Bare with us as we add documentation around JNDI.

           

          Take a look at the Overiew section in particular here:

          https://docs.jboss.org/author/display/AS71/JNDI+Reference

           

          In a nutshell, we are recommending everyone move to "Client JNDI" where possible so that it eliminates the unnessecary performance overhead of  extra network hops and removes the single point of failure that a traditional remote jndi server has. We provided support for Traditional Remote JNDI since it was more familar and some want the notion of a customizable central directory. However, we do not cluster it in any way at this time. That said, we might, if there is enough demand add some kind of limited failover cability.

           

          Ed, I realize that in your case you are using it because we do not offer an equivalent "Client JNDI" for hornetq, this is something we plan to contribute back to the HQ project. Until that time, if you really need a clustered client I highly recommend just using the HQ JMS APIs directly instead of JNDI.

          • 17. Re: AS7.1 Provider URL for clustered remote JNDI servers
            ned233

            Jason, thanks for the feedback.  Unfortunately, we are integrating with a closed third-party system that is expecting to perform a Remote JNDI lookup.  We may be able to get Client JNDI working with this system, but I am pretty sure we cannot modify that system to utilize the HQ JMS APIs directly. 

             

            If you are evaluating the demand for clustering Remote JNDI, my case in favor of it would be the scenario I am facing:  there are many third-party (legacy) systems out there that need to integrate with JBoss, which expect this functionality.  The one that I am integrating with is used 8 of the world's top 10 banks.  I can argue with these third-party vendors all I want to try to convince them how Client JNDI is better.  But in the end, the IT organization will see this (rightly or wrongly) as a limitation of JBoss, especially since this functionality used to exist. 

             

            Not trying to be cantakerous... just trying to make a real-world case here....

            • 18. Re: AS7.1 Provider URL for clustered remote JNDI servers
              jason.greene

              How are you modifying them to work with jboss properties and classes? Do they let you provide an InitialContext? Or is it a properties map? Is it all in configuration files or in Java?

              • 19. Re: AS7.1 Provider URL for clustered remote JNDI servers
                ned233

                The other system expects the following properties, specified in a properties file:

                • provider URL
                • initial context factory
                • connection factory

                 

                Using Remote JNDI, this is often all that is required.  I have been able to configure those 3 properties so that this system can connect to the remote JBoss queues.  However, I can only specify one server name in the provider URL (which was the problem that started this whole post).

                • 20. Re: AS7.1 Provider URL for clustered remote JNDI servers
                  ned233

                  Jaikiran, have you had a chance to discuss this feature with the rest of the team yet?  Any updates?

                   

                  Thanks,

                  Ed

                  • 21. Re: AS7.1 Provider URL for clustered remote JNDI servers
                    jaikiran

                    Ed Keen wrote:

                     

                    Jaikiran, have you had a chance to discuss this feature with the rest of the team yet? 

                    I actually forgot about this one and will take it up this week. Thanks for reminding.

                    • 22. Re: AS7.1 Provider URL for clustered remote JNDI servers
                      jaikiran

                      Jason Greene wrote:

                       

                      That said, we might, if there is enough demand add some kind of limited failover cability.

                       

                      Ed, since Jason did mention that we might add some kind of feature around this depending on the demand, could you please file a feature request JIRA. Make sure you don't project it as a clustering requirement/feature so that it isn't confusing.

                      • 23. Re: AS7.1 Provider URL for clustered remote JNDI servers
                        rsinghal

                        I am also trying to configure Clustered JMS Destination where we can specify multiple provider URL from client side.

                         

                        Will it work if I map multiple host to one DNS name something like (myclusteraddress.com) and use Provider URL like remote://myclusteraddress.com:4447?

                        • 24. Re: AS7.1 Provider URL for clustered remote JNDI servers
                          jaikiran

                          Ravi Singhal wrote:

                           

                          I am also trying to configure Clustered JMS Destination where we can specify multiple provider URL from client side.

                           

                          Just to re-iterate and avoid any kind of confusion - this has nothing to do with clustering.

                          • 25. Re: AS7.1 Provider URL for clustered remote JNDI servers
                            ned233

                            Thanks Jaikiran.  I added a JIRA for this:  https://issues.jboss.org/browse/AS7-3968

                             

                            I'm not sure if I worded it exactly right, so please feel free to change it to something less awkward if needed.

                            • 26. Re: AS7.1 Provider URL for clustered remote JNDI servers
                              thiru123

                              Hi,

                               

                              Is this issue fixed?

                               

                              I have updated my JBOSS from AS 7.1 to EAP 6.2.

                               

                              This issue still exists there.

                              1 2 Previous Next