Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing Admin User Security Credentials in a Servlet

 
Ravi kiran
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

TIA
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic