2 Replies Latest reply on Aug 14, 2004 4:12 PM by Marco Schulze

    different passwords for different connections

    Marco Schulze Newbie

      Hello *!

      I'm having the following scenario: One client connects to one jboss server and instanciates a session bean. This sessionbean can now communicate to many other jboss servers (including localhost). For every connection, different usernames/passwords are required.

      When I'm writing the client side, I'm defining a LoginContext and I write an own ClientLoginModule. But I never link this LoginContext to my InitialContext. Thus, I don't understand, from where does JAAS know that it should use this LoginContext? And if I define more than one LoginContext, how does JAAS know which InitialContext should use which LoginContext?

      Thousand thanks in advance for your help!

      Best regards, Marco.