File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Secure JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Secure JMS" Watch "Secure JMS" New topic
Author

Secure JMS

uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

hi all,

I want to know about secure JMS. What is secure JMS and how we can achieve this in JBoss?

Thanks,
Uttam Kumar
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

You can add roles to your destination descriptions. See the docs/examples/jms/example-destinations-service.xml file, look for "<attribute name="SecurityConfig">". The login module to use for JMS is defined in server/xxx/deploy/messaging/messaging-jboss-beans.xml. You can define a login module in server/xxx/conf/login-config.xml.

By the way, I cover this topic in section 8.5.2 of JBoss in Action.


JBoss In Action
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

Hi Peter,

Thanks for the response. Can we add security to the entire JMS server instead of defining roles at JMS resources level?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

No, access control is defined on a per-destination basis. There is a default role that can be associated with JMS, but it is the role to use if the client does not provide any credentials.
Vitaliy Tkachenko
Greenhorn

Joined: Nov 16, 2011
Posts: 1

Hi, Peter!
Hope you are still watching this
As I understand you have mentioned here JBoss 5. Do you know if this secure procedures are possible with JBoss 4? (Particularly I need this to have done for JBoss 4.0.5). If yes what differences in configurations I should expect? As I know JBoss Messaging is used in JBoss 5 and JBossMQ in JBoss 4.
I will appreciate your answer pretty much. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Secure JMS
 
Similar Threads
JMS newbie - security question
protocol to use with SOAP message
JMS question
WA #1.....word association
JMS behind firewall