[jboss-user] [JBoss Remoting] - context lookup authentication in JBoss AS 6
Yaron Levy
do-not-reply at jboss.com
Tue Mar 19 17:56:15 EDT 2013
Yaron Levy [https://community.jboss.org/people/reyaron] created the discussion
"context lookup authentication in JBoss AS 6"
To view the discussion, visit: https://community.jboss.org/message/803692#803692
--------------------------------------------------------------
any idea how to do the authentication from remote client?
I tried:
java.util.Properties p = new java.util.Properties();
p.put("java.naming.provider.url", "jnp://localhost:1199");
p.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); //also: p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.JndiLoginInitialContextFactory");
p.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
p.put(Context.SECURITY_PRINCIPAL, username);
p.put(Context.SECURITY_CREDENTIALS, pwd);
javax.naming.InitialContext context = new javax.naming.InitialContext(p);
context.lookup("jmx/invoker/RMIAdaptor");
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/803692#803692]
Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130319/e6a99e07/attachment.html
More information about the jboss-user
mailing list