writing a custom realm for weblogic


EJB programming & troubleshooting: writing a custom realm for weblogic

  1. writing a custom realm for weblogic (1 messages)

    I have created a custom realm following the guidelines from the weblogic example (RDBMSRealm). I have also created an entry for it in the weblogic.properties file. My question is how do I propogate the user name and password from the ejb client? Do I put this info in the User class and put it in the context. Any help in this matter will be greatly appreciated.

  2. Hi Monica,

    If you are using EJB then u must pass a Properties object for the InitialContext constructor and it should contain Context.SECURITY_PRINCIPAL & Context.SECURITY_CREDENTIALS and the values should be your userid and password.

    If you are using web application you should use the basic/form authentication stuff.