JBoss Community

Re: How to view all of the JNDI name in jboss7?

created by andy215 in Datasource Configuration - View the full discussion

So we only can access the remote mbean by the MBeanconnection, if so, that's really bad. Because in JBoss5, I can get a remote mbean by JNDI lookup, then I can invoke the remote mbean's method like what happens in local JVM. I can't believe JBoss7 removed this feature.

 

JNDI code(vey simple)

// define remote ip, port and authtication parameters in this hashtable.

Hashtable hashtable;

InitialContext ctx = new InitialContext(hashtable);

User user = (User) ctx.lookup("java:/user");

System.out.println(user.getName());

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community