1 Reply Latest reply on Nov 4, 2004 3:38 PM by lafr

    jndi lookup fails for mailservie on jboss 4.0.0

    furykid

      Hi,

      I am using the mailservice by a lookup to the local sessionbean jndi context.

      the global jndi name is mapped through resource-reference sections
      in the deploymentdescriptor files ( both ejb + jboss) to the local bean
      environment

      this works for jboss 3.2.x !

      but it doesnt work for jboss 4.0.0 where a "...context not bound" exception is thrown

      is this a bug ( well at least it seams sO ) ?
      are there any workarounds ?


        • 1. Re: jndi lookup fails for mailservie on jboss 4.0.0
          lafr

          No problem for us.
          We have this

          * @ejb.resource-ref
           * res-ref-name="Mail"
           * res-type="javax.mail.Session"
           * res-auth="Container"
           * @jboss.resource-ref
           * res-ref-name="Mail"
           * jndi-name="java:/Mail"
          

          for generating the resource-refs in ejb-jar.xml and jboss.xml.

          After tha we can lookup the mail-service via "java:comp/env/Mail".