3 Replies Latest reply on Dec 10, 2012 12:56 AM by Xin Zhang

    Disable security during access ejb

    Xin Zhang Novice

      Hi All

       

      I met a question, I need to disable security during remote access ejb

      Here are my code:

       

       

                                    .....
                                    final Properties env = new Properties();
                                    env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.remote.client.InitialContextFactory");
                                    env.put(Context.PROVIDER_URL,"remote://localhost:4447");
      //                            env.put(Context.SECURITY_PRINCIPAL,"bvadmin");
      //                            env.put(Context.SECURITY_CREDENTIALS,"imbvadmin");
                                    context = new InitialContext(env);
      
      
                                    // Perform the JNDI lookups
                                    Object o = context.lookup(DEFAULT_DESTINATION);
                                    ....
      

       

      any idea for this?

       

      Thanks

       

      Xin