3 Replies Latest reply on Apr 18, 2007 10:54 AM by David Gouvea

    Problem: JAAS + EJB + WEB

    David Gouvea Newbie

      Hi People,

      I'm with a big problem. I have one EJB Project in EAR File and one WEB Project in WAR File.
      How I can loggin in my WEB Project and access the EJBs in my EJB Project?

      Properties propriedades = new Properties();
       propriedades.put(Context.INITIAL_CONTEXT_FACTORY, Configuracao.getString("servidor.aplicacao.fabrica_contexto"));
       propriedades.put(Context.PROVIDER_URL, Configuracao.getString("servidor.aplicacao.url"));
       propriedades.put(Context.SECURITY_PRINCIPAL, "user");
       propriedades.put(Context.SECURITY_CREDENTIALS, "password");

      This code throws a SecurityException, because the autentication information of WEB Project not is transported from EJB Project

      Please help me,