2 Replies Latest reply on Oct 19, 2007 4:02 PM by Paul Gillen

    Authentication Failure

    Paul Gillen Newbie

      A secretive division of my company has installed a package that I need to access. Earlier versions were security-less and the following code worked fine. Now however with security turned on I get Authentication Failure exceptions.

      Object temObj = ctx.lookup("foo/bar/Manager");
      FooBarManager fbm = (FooBarManager)
      PortableRemoteObject.narrow(temObj, FooBarManager.class);

      I could I suppose try to shoehorn myself into their Security Domain but that doesn't seem practicable. Besides, what would I do if I wanted to access EJBs in 2 different domains?

      It has been suggested that I create the InitialContext with a SECURITY_PRINCIPAL and SECURITY_CREDENTIALS but I can't get this to work.