Hi All, I am a longtime lurker and first time poster. I am writing servlet to access MBeans using MBeanHome, but I don't want to hardcode weblogic Admin user name and password for setting the jndi context. Is it possible to Access default realm and super user(Example User/Password: weblogic/weblogic) Security Credentials in a Servlet. Any help in this regard is realy appreciated.
As far as I know that's not possible. I suggest you to use a properties file to load the username and password or even an env entry on the web.xml parameter, both ways you're not hard coding the username password. You may also consider using encription to keep them protected.
subject: Accessing Admin User Security Credentials in a Servlet