File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Accessing Admin User Security Credentials in a Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Accessing Admin User Security Credentials in a Servlet" Watch "Accessing Admin User Security Credentials in a Servlet" New topic
Author

Accessing Admin User Security Credentials in a Servlet

Ravi kiran
Greenhorn

Joined: Nov 02, 2004
Posts: 5
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

Joined: Jan 06, 2001
Posts: 977
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing Admin User Security Credentials in a Servlet