• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to authenticate publishers of JMS messages

 
Naveen Sampra
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic