Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

How to authenticate publishers of JMS messages

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic