http://www.jboss.org/documentation/HTML/ch06s05.html

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Steve Zhang
> Sent: Friday, April 27, 2001 1:24 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] I really need the help
>
>
> 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
>


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

Reply via email to