geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ericp56 <eric.phettepl...@twcable.com>
Subject JavaMail in an openejb-jar.xml
Date Tue, 16 Sep 2008 23:04:31 GMT

The web example worked fine, but I can't seem to get it right for an ejb
project.:

The error:
javax.naming.NotContextException: mail/mailSession

parts of openejb-jar.xml
...
      <dep:dependency>
        <dep:groupId>org.apache.geronimo.configs</dep:groupId>
        <dep:artifactId>javamail</dep:artifactId>
        <dep:type>car</dep:type>
      </dep:dependency>
...

 <ejb:enterprise-beans>
    <ejb:session>
      <ejb:ejb-name>mail/mailSession</ejb:ejb-name>
      <name:resource-ref>
        <name:ref-name>mail/mailSession</name:ref-name>
        <name:resource-link>mail/mailSession</name:resource-link>
      </name:resource-ref>
    </ejb:session>
 </ejb:enterprise-beans>

Any suggestions?
-- 
View this message in context: http://www.nabble.com/JavaMail-in-an-openejb-jar.xml-tp19522342s134p19522342.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message