HI all:
I am using a session bean to call a entity bean. like following:

public  class SignInLoggerManagerEJB implements javax.ejb.SessionBean
{
     private    SignInLoggerHome           mySignInloggerHome;
   
    public SignInLoggerManagerEJB    (){}
   public void ejbRemove    (){}
    public void ejbActivate    (){}

    public void ejbPassivate    (){}
    public void setSessionContext    (javax.ejb.SessionContext sc){}
     public void ejbCreate    ()

     public void generateSignInloggerHome(){
      String signInloggerHomeName =
"SignInLogger";//JndiBeanName.SIGN_IN_LOGGER;
       try{
             InitialContext jndiContext = new InitialContext();
             Object ref = jndiContext.lookup("SignInLogger");
             mySignInloggerHome = (SignInLoggerHome)
PortableRemoteObject.narrow(ref, SignInLoggerHome.class);
          }
          catch ( Exception ex){
            throw new GeneralEjbException(ex);
          }
     }
}

in my generateSignInloggerHome() function I can not lookup the name of the
entity bean SignInLogger. Actially in the entity bean's ejb-jar file and
jboss.xml the jndi name is SignInLogger, why I can not look up? what should
I do?

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to