• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

pure java client making secure call to EJB in WAS 5

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Today's lesson is that you can't wear a jetpack AND a cape. I should have read this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic