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

Reply via email to