2 Replies Latest reply on May 22, 2009 5:30 AM by Mithun Chakraborty

    Security with Master Slave observation

    Mithun Chakraborty Newbie

      Hi ,

       

      I was trying to configure a pure master slave configuration with Fuse Message broker 5.3.0.1 . First I tried without security. I created two brokers in different machines. The transport connectors looked like this:

       

      .

      2.     Why the exception vanishes if I use localhost  instead of machine name.

      3.     Even if the master starts with localhost the slave in other machine gets connection refused exception.

      4.     When I remove the discovery URI from the transport connectors everything works fine.

       

       

      Any suggestions on this will be appreciated.

       

      Regards,

      Mithun

        • 1. Re: Security with Master Slave observation
          Stan Lewis Novice

          1)  Is there a chance there was something else running on machine_name:61720?  Can you copy/paste the exact exception?

           

          2)  I would guess that there's nothing bound to localhost:61720, whereas there's another process that's bound to machine_name:61720.

           

          3)  This is because in the latest activemq versions the URI parameter also controls what network interface the broker binds it's listen port to, so if you do a netstat or lsof you'll see that the broker has only opened 61720 on the loopback interface and will therefore not accept incoming connections on the machine's network card.

           

          4)  It could be that your network interface doesn't have multicast enabled.  This would work on loopback but not necessarily on your network card, so it's something you'll want to check.

          • 2. Re: Security with Master Slave observation
            Mithun Chakraborty Newbie

            There was no other process using the machine_name:61720

            The exception thet was thrown is:

             

            WARN  TransportConnection            - Failed to add Connection

            java.lang.SecurityException: User name or password is invalid.

                    at org.apache.activemq.security.SimpleAuthenticationBroker.addConnection

            (SimpleAuthenticationBroker.java:52)

                    at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableB

            rokerFilter.java:89)

                    at org.apache.activemq.broker.TransportConnection.processAddConnection(T

            ransportConnection.java:686)

                    at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddC

            onnection(ManagedTransportConnection.java:86)

                    at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:

            134)