• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss secure JMS?

 
Matt Herrington
Greenhorn
Posts: 16
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am running Jboss EAP 4.3. I have a simple Java class which puts in and reads from a JMS queue. This works fine.

Now, I am trying to get secure JMS working. I've disabled guest access in testQueue and I have my messaging-roles(users).properties set up. However, my Java class tells me "javax.jms.JMSSecurityException: User: null is not authorized to read from destination testQueue". I've tried the following but all still don't pass the user. Does anyone know?

env.put(Context.SECURITY_PRINCIPAL, principal);
env.put(Context.SECURITY_CREDENTIALS, credentials);
env.put("java.naming.security.principal", principal);
env.put("java.naming.security.credentials", credentials);


testQueue:
=======
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=testQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
<attribute name="SecurityConfig">
<security>
<role name="guest" read="false" write="false"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="noacc" read="false" write="false" create="false"/>
<role name="jmsuser" read="true" write="true"/>
</security>
</attribute>
</mbean>
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you do for configuring the login module?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic