[Beginners Corner] - Re: how to create new user for durable topic subscriber
by sudasudheer
"sudasudheer" wrote : I am new to JOBSS, I started working on jboss 4.2.2 version, I am working on JMS API, I examples i saw one example for durable subscriber, I am able to execute sample using user name : john and password : needle, so I want to know how to create new user for durable topic subscriber like john.
|
|
| Properties props = new Properties();
| props.setProperty("java.naming.factory.initial",
| "org.jnp.interfaces.NamingContextFactory");
| props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
| props.setProperty("java.naming.provider.url", "localhost:1099");
| Context ic = new InitialContext(props);
| Object tmp = ic.lookup("ConnectionFactory");
| TopicConnectionFactory tcf = (TopicConnectionFactory) tmp;
| conn = tcf.createTopicConnection("john2","needle"); // here I want to pass some another user details, how can I do this ?
| topic = (Topic) ic.lookup("topic/example");
|
| Appricate early replies.
| Sudheerâ¦
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144120#4144120
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144120
18 years, 3 months
[Beginners Corner] - how to create new user for durable topic subscriber like jo
by sudasudheer
I am new to JOBSS, I started working on jboss 4.2.2 version, I am working on JMS API, I examples i saw one example for durable subscriber, I am able to execute sample using user name : john and password : needle, so I want to know how to create new user for durable topic subscriber like john.
Properties props = new Properties();
props.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
props.setProperty("java.naming.provider.url", "localhost:1099");
Context ic = new InitialContext(props);
Object tmp = ic.lookup("ConnectionFactory");
TopicConnectionFactory tcf = (TopicConnectionFactory) tmp;
conn = tcf.createTopicConnection("john2","needle"); // here I want to pass some another user details, how can I do this ?
topic = (Topic) ic.lookup("topic/example");
Appricate early replies.
Sudheerâ¦
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144119#4144119
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144119
18 years, 3 months