aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes How to authenticate publishers of JMS messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to authenticate publishers of JMS messages" Watch "How to authenticate publishers of JMS messages" New topic
Author

How to authenticate publishers of JMS messages

Naveen Sampra
Ranch Hand

Joined: Jun 11, 2003
Posts: 70
How do you allow ONLY valid users to publish on to a Topic ?
The createTopicConnection(userName,passwd) method of TopicConnectionFactory can be used to create a connection, but does this prevent another application from creating its own connection and publishing on to the same Topic ?
Does anyone know what the userName and passwd supplied above is used for ?
~Naveen
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by Naveen Sampra:
How do you allow ONLY valid users to publish on to a Topic ?
The createTopicConnection(userName,passwd) method of TopicConnectionFactory can be used to create a connection, but does this prevent another application from creating its own connection and publishing on to the same Topic ?
Does anyone know what the userName and passwd supplied above is used for ?
~Naveen

The username/password provides credentials for the JMS Server to authenticate and authorize against. If credentials are not specified then the current thread's credentials are used.
The manner in which you would configure and manage security for JMS is vendor-specific. However, it is entirely possible to do what you are asking about with most JMS implementations (all the ones that I have come in contact with at least). What JMS Server are you using?
Naveen Sampra
Ranch Hand

Joined: Jun 11, 2003
Posts: 70
Originally posted by Chris Mathews:

The manner in which you would configure and manage security for JMS is vendor-specific. However, it is entirely possible to do what you are asking about with most JMS implementations (all the ones that I have come in contact with at least). What JMS Server are you using?

I am using IBM WebSphere MQ 5.3 product on Windows 2000 server.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to authenticate publishers of JMS messages