1 Reply Latest reply on Dec 20, 2011 7:52 AM by tcunning

    how to add user role in esb message

    everjava

      How can I do a queue with user/password like normal jboss queue and MDB ?

       

      Eg..

       

      //MDB

      @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

              @ActivationConfigProperty(propertyName = "user", propertyValue = "user2"), @ActivationConfigProperty(propertyName = "password", propertyValue = "93esbDev"),

              @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/CancelQueue") }, mappedName = "CancelQueue")

       

       

      //JBOSS DESTINATION SERVICE

      <mbean code="org.jboss.jms.server.destination.QueueService"

      name="jboss.messaging.destination:service=Queue,name=CancelQueue"

      xmbean-dd="xmdesc/Queue-xmbean.xml">

      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

      <depends>jboss.messaging:service=PostOffice</depends>

      <attribute name="JNDIName">queue/CancelamentoQueue</attribute>

      <attribute name="RedeliveryDelay">10000</attribute>

      <attribute name="MaxDeliveryAttempts">1</attribute>

      <attribute name="SecurityConfig">

      <security>

                <role name="role1"  write="true" />

      <role name="role2" read="true" write="true" create="true"/>

      </security>

      </attribute>

             </mbean>

       

       

       

      I would like to do something like that with esb messages

        • 1. Re: how to add user role in esb message
          tcunning

          You could probably do this one of two ways :

           

          - check out the jms_secured quickstart and use the security properties

          - use the JCA adapter and configure the activation-config in jboss-esb.xml (jms_transacted has an example, although you would have to decide whether you want to enable the XAConnectionFactory or just the ConnectionFactory)