I am building a pure
java client, running outside of WAS 5 that will make a call to a secure
EJB. I have tried to look over all of the docs I could find on the web and some of the postings here in this forum, but I�m still running into a problem. I am using WSCallbackHandlerImpl() specifying a username, realm, and password. When I execute my code at the command line, as soon as I execute the line of code, loginCTX.login() I am prompted to enter a username and password? Once I supply these needed credential, the rest of my code works fine and I am able to retrieve a home and then a remote interface to the EJB I want to communicate with. Does anyone know what I might be doing wrong? Again, there doesn�t seem to be any problems with access once I�m logged in, it�s just that I programmatically specify and username and password and halfway through execution I am prompted for the same info.
I�ve cut and pasted some snippets of code below in the order they�re executed:
1. Initialize the ORB object
2. Build InitialContext
3. Login
As the lc.login() line is executed, a prompt appears asking for username and password. Has anyone had this problem or know if this is a symptom of something that is configured improperly??
Thanks in advance,
scott