Forums Register Login

How to authenticate publishers of JMS messages

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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?
+Pie Number of slices to send: Send
 

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.
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 808 times.
Similar Threads
Changing file
closing pooled connection with WS naming service(jndi)
indexing ?
Applet and JDBC
Connection pool with multiple users
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:37:28.