2 Replies Latest reply on May 12, 2004 6:46 AM by jburugupalli

    Single-client, multiple-servers

    brettw

      The company I work for has developed a server application with a rich UI client. I was in the process of integrating jboss security into the client (which performed EJB calls), when I ran up against a mismatch between our requirements and the jboss usage model.

      Our client needs to be able to connect to multiple jboss servers simultaneously, using different logins on each. From what I have seen, when the the client logs in using the LoginContext, the authentication information is cached and transparently passed to the server during EJB invocations. How can I switch security contexts, or preferably have a security context associated with an InitialContext?

      Is this possible? I've found some similar posts asking about this, one of them going back to 2001, but no answers.

      Can someone please help?!

      Thanks,
      brett

        • 1. Re: Single-client, multiple-servers

          Maybe I'm not seeing the problem but couldn't you have mulitiple InitialContexts, one for each server?

          Steve

          • 2. Re: Single-client, multiple-servers
            jburugupalli

            HI ,

            May be u can even use three different logincontexts
            LoginCOntext1, LoginCOntext2, LoginCOntext3

            and for each call use
            LoginCOntext1.login()
            make a remote call
            LoginCOntext1.logout()

            next call if u want to use another Priciapl credential
            LoginCOntext2.login()
            make a remote call
            LoginCOntext2.logout()

            and so on

            will this help or is it ok
            regards jani