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