2 Replies Latest reply on Nov 4, 2015 10:15 AM by Marc Anthony Puca

    jboss 8 -> jboss 9 Q consumer

    Marc Anthony Puca Newbie

      Hi Everyone

       

      I am attempting to make a MDB deployed on a jboss 9 instance to consume messages from a queue defined on a jboss 8 instance.

       

      Machines are separate.

       

      jboss 8 has

       

                          <jms-queue name="RemoteJobQueue">

                              <entry name="java:jboss/jms/queue/RemoteJobQueue"/>

                              <entry name="java:jboss/exported/jms/queue/RemoteJobQueue"/>

                          </jms-queue>

       

      and i have added a user (my-user) via add-user.bat and specified the users role (my-user) and set

       

      <security-setting match="jms.queue.RemoteJobQueue">

                              <permission type="send" roles="my-user"/>

                              <permission type="consume" roles="my-user"/>

                          </security-setting>

       

      and in jboss 9 i deploy the MDB with following activation props.

       

      @ActivationConfigProperty(propertyName = "destination",

                                        propertyValue = "java:/jms/queue/RemoteJobQueue"),

              @ActivationConfigProperty(propertyName = "destinationType",

                                        propertyValue = "javax.jms.Queue"),

              @ActivationConfigProperty(propertyName = "maxSession",

                                        propertyValue = "4"),

              @ActivationConfigProperty(propertyName="user",

                                        propertyValue="my-user"),

              @ActivationConfigProperty(propertyName="password",

                                        propertyValue="......"),

              @ActivationConfigProperty(propertyName = "transactionTimeout",

                                        propertyValue = "180"),

       

       

      The log shows

       

      HQ152005: Failure in HornetQ activation org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@35bbb66c

      destination=java:/jms/queue/RemoteJobQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=remote-user password=**** maxSession=4): HornetQSecurityException[errorType=SECURITY_EXCEPTION message=HQ119031: Unable to validate user: my-user]

       

      any ideas on the cause

       

      Thanks

       

      Marc