-
1. Re: New to JBOSSMQ
joelvogt Jul 22, 2002 7:57 PM (in response to static)In your client you will want something like
java.util.Hashtable props = new java.util.Hashtable();
props.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
props.put(Context.PROVIDER_URL, ABC.DEF.GHU.JKL);
props.put("java.naming.rmi.security.manager", "yes");
props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming");
// Get the initial context with given properties
Context context = new InitialContext(props);
// Get the connection factory
TopicConnectionFactory topicFactory =
(TopicConnectionFactory)context.lookup(CONNECTION_FACTORY);
etc...
You might have to adjust slightly for your version of jboss -
2. Re: New to JBOSSMQ
static Jul 29, 2002 11:46 AM (in response to static)Hi,
First of all Thanks for your reply.
Does this eman that i do not have to do any JNDI settings on JBOSS server?
If yes it's cool.
Thanks,
Subodh