That's because they probably use the class name as the jndi-name. Nothing
prevents that, of course, but you are still looking up the jndi-name.
----- Original Message -----
From: "James Cook" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 11, 2001 11:11 AM
Subject: Re: [JBoss-user] Unable to resolve JNDI name
> FWIW, I see a lot of ppl who use the classname as the lookup.
>
> jim
>
> ----- Original Message -----
> From: "Guy Rouillier" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 11, 2001 1:10 PM
> Subject: Re: [JBoss-user] Unable to resolve JNDI name
>
>
> > My apologies for my previous post, which I wrote in a hurry. You should
of
> > course do a lookup on the jndi name, which gets mapped to the ejb-name
(via
> > jboss.xml). My second point still holds, however - using the home
class
> > name as your jndi name is confusing.
> >
> > ----- Original Message -----
> > From: Guy Rouillier <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, May 10, 2001 7:49 PM
> > Subject: Re: [JBoss-user] Unable to resolve JNDI name
> >
> >
> > > You are supposed to do a lookup on the remote interface. You will be
> > > returned a reference to a home object, from which you can call the
> > create()
> > > method to get an object of the target class. So I think the failure
you
> > > indicate is appropriate.
> > >
> > > In your jboss.xml, why are you using your home classname as your jndi
> > name?
> > > This is confusing, to say the least.
> > >
> > > > jBoss.xml
> > > > =========
> > > > <jboss>
> > > > <session>
> > > > <ejb-name>com.asset.SMTPAdapter</ejb-name>
> > > > <jndi-name>com.asset.SMTPAdapterHome</jndi-name>
> > > > <configuration-name></configuration-name>
> > > > </session>
> > > > </enterprise-beans>
> > > > </jboss>
> > > >
> > > >
> > > > Code snippet in my jsp
> > > > ==============
> > > > Context ctx = getInitialContext();
> > > > Object home =
> > > > ctx.lookup("com.asset.SMTPAdapter");//WORKS!!!!!
> > > > Object home =
> > > > ctx.lookup("com.asset.SMTPAdapterHome");//DOES NOT
> > > > WORK!!!
> > >
> > >
> > >
> > > _______________________________________________
> > > 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
>
>
> _______________________________________________
> 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