aspose file tools*
The moose likes Java in General and the fly likes pure java client making secure call to EJB in WAS 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "pure java client making secure call to EJB in WAS 5" Watch "pure java client making secure call to EJB in WAS 5" New topic
Author

pure java client making secure call to EJB in WAS 5

Scott Presley
Greenhorn

Joined: Apr 15, 2003
Posts: 25
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pure java client making secure call to EJB in WAS 5