-
1. Re: Can't authenticate user exception
joelvogt Jul 22, 2002 8:00 PM (in response to eric138)Yep. I assume you are using your initial context to get a reference to your queue and queue session etc.
What you will need to do is set up a context manually, such as
java.util.Hashtable props = new java.util.Hashtable();
props.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
props.put(Context.PROVIDER_URL, YOUR_URL/IP);
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);
Where YOUR_URL/IP is localhost or 127.0.0.1 etc. -
2. Re: Can't authenticate user exception
eric138 Jul 22, 2002 10:47 PM (in response to eric138)If I set this, is it means to use RMI but not use Local Interface?
Is it good for performance(network transmission) issue if I deploy all in an EAR?
Eric