This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss secure JMS?

Matt Herrington
Posts: 16
  • 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("", principal);
env.put("", credentials);

<mbean code="org.jboss.jms.server.destination.QueueService"
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<attribute name="SecurityConfig">
<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"/>
Peter Johnson
Posts: 5852
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