I bound my EJBs with JNDI name: ejb/ejbname, I can look up my ejbs both from
client and server side with the same JNDI name without problem. And I tested my
application on IBM WebSphere, JBoss and J2EE server.

Eric Kaplan wrote:

> I remember way back originally reading in the documentation that there was a
> difference
> in jboss in the way ejbs were looked up on the server versus a client.  On
> the server, you
> had to use "java:comp/env/ejbname" whereas on the client it was simply
> "ejbname".  At the
> time, I remember thinking this was at odds with every example I had seen
> (normally there
> is no differentiation between naming on the client and the server.  My fear
> is that we'll have
> to port to a server other than jboss and I'll have the opposite problem from
> you.  What worked
> on jboss won't work on other servers.  All my client code (luckily its all
> in one place) that
> tries to find ejbs without the comp/env will fail...
>
> Can someone please confirm or deny this difference?
>
> Thanks
>
> Eric
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Mike Kenyon
> Sent: Wednesday, March 06, 2002 5:22 PM
> To: '[EMAIL PROTECTED]'
> Subject: [JBoss-user] Newbie JNDI Question
>
> I just downloaded JBoss v.2.4.4 as part of an internal effort to migrate one
> of our test servers from another app server to JBoss.  We're using iPlanet
> as a web server with JSPs connecting back to the EJBs running on JBoss.
>
> I'm experiencing inordinant difficulty trying to get the EJBs deployed
> successfully.  I get no warnings or errors of any kind as JBoss is booting
> up and everything appears find and dandy.  However, all attempts to look up
> EJBs by their <jndi-name /> have failed horribly with a "<name> not bound"
> exception.
>
> Using Sun's JNDI browser, I can't locate anything that resembles an EJB
> (seeing only two entries, "UserTransaction" and
> "UserTransactionSessionFactory").
>
> Further, I tried to examine it through JNDIView (which claims to start
> successfullly), however, nothing is bound to http://localhost:8082, as the
> documentation indicates there should be.
>
> Anyone have an idea what stupid thing I'm doing wrong?
>
> Mike
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

--
Jia (Christine) Li

524N ICT Building
Department of Computer Science
University of Calgary



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

Reply via email to