I had configured username/password for JMX-CONSOLE and this when i open my jmx-console from browser it is asking for credentials and working correctly.similarly when try to validate the same scenario using java program,it's not the same.i want to stop the process when given credentials are wrong.here i am placing my sample code.
Hashtable objHashTable = new Hashtable(); objHashTable.put(Context.PROVIDER_URL, strBuffAdminProviderURL.toString()); objHashTable.put("java.naming.security.principal", "sdfafd"); objHashTable.put("java.naming.security.credentials", "afdf"); objHashTable.put(Context.INITIAL_CONTEXT_FACTORY, JBossConstants.INITIAL_CONTEXT_FACTORY_VALUE); InitialContext objInitContext = new InitialContext(objHashTable); RMIAdaptor objrmiadap =(RMIAdaptor) objInitContext.lookup("jmx/rmi/RMIAdaptor"); MBeanServer server=new RMIConnectorImpl(objrmiadap); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858673#3858673 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858673 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user