• 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
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

Give authorization on Jms

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I' m using j2ee, and I'm building an application
that lookup TopicConnectionFactory and Topic from a Context
without authentication.
But I would want cofigure J2ee or Jms (?) to give permissions
to only I want.
I have seen that there is a file named auth.properties
in which probably I must to change something
but I don' t know what.
This is the file :
realms=default,certificate
realm.default=config/realms/default.properties
realm.certificate=config/realms/certificate.properties
default.principal.name=guest
default.principal.password=guest123
anyone.role.name=Prova.java
audit=false
If you can help me, thanks
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to restrict the subscribers to a particular topic, then a username and password can be used to establish the unique identity of the subscriber.
This can be done as follows.
j2eeadmin -addJmsFactory MY_CON_FAC topic -props clientId=MyID
here, MY_CON_FAC is the name of the ConnectionFactory you create for a topic.
set the property 'clientId' to that of the authorized subscriber.
In the subscriber program, when you create a durable subscriber using the createDurableSubscriber() method with two arguments, the topic and a string that specifies the name of the subscription:
String subName = "MySub";
TopicSubscriber topicSubscriber =
topicSession.createDurableSubscriber(myTopic, subName);
Hope this helps.

Dipti
 
Massimo Pascale
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Excuse me but for the Publisher?
How can I avoid that it publishes on my Topic?
If you can help me
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic