Win a copy of Fixing your Scrum this week in the Agile forum!
  • 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
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

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
 
permaculture is a more symbiotic relationship with nature so I can be even lazier. Read tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic