|
I see, but why doesn't the sample works if I use
the JNDI lookup with "java:comp/env/ejb/Interest" or "ejb/Interest" ?
The only way I got it to work was by changing it to
"interest/Interest". Why is the indirection you mention below isn't working?
I'm new to this stuff and am just trying to
understand how this works or don't work.
Thanks,
Jorge
----- Original Message -----
Sent: Sunday, August 12, 2001 11:25
PM
Subject: Re: [JBoss-user] InterestServlet
error at line 39
That is not an error. The actual deployment
binding in JNDI is irrelevant when the
servlet declares an ejb-ref. The jboss-web.xml
descriptor handle the indirection:
<jboss-web>
<ejb-ref>
<ejb-ref-name>ejb/Interest</ejb-ref-name>
<jndi-name>interest/Interest</jndi-name>
</ejb-ref> </jboss-web>
----- Original Message -----
Sent: Sunday, August 12, 2001 3:16
PM
Subject: [JBoss-user] InterestServlet
error at line 39
Hi all,
There's an error at line 39 of the
InterestServlet.java file, where it reads Object
ref = jndiContext.lookup("java:comp/env/ejb/Interest");
the lookup string must be changed to
"interest/Interest" Object ref =
jndiContext.lookup("interest/Interest");
the Session bean is
registered to JNDI like this (jboss.xml):
<?xml version="1.0"
encoding="UTF-8"?> <jboss>
<enterprise-beans>
<session>
<ejb-name>Interest</ejb-name>
<jndi-name>interest/Interest</jndi-name>
</session>
</enterprise-beans> </jboss>
bye,
Jorge
_______________________________________________ JBoss-user
mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
|