configuration of mail service
rinehart Mar 12, 2002 8:15 PMHi,
I'm running a test on the mail service against JBoss-3.0.0beta2, updated recently from CVS, with my sample application. "Not running," is a more apt description. I have my mail-service.xml setup properly (I'd post it for review, but then you'd get my password!)
The issue is "javax.naming.NameNotFoundException: Mail not bound." Here's my jndi-name in the mail-service.xml file:
java:/Mail
...
Here's the jboss.xml file:
   <enterprise-beans>
       <message-driven>
           <ejb-name>GenerateStatementEJB</ejb-name>
           <configuration-name>Standard Message Driven Bean</configuration-name>
           <destination-jndi-name>queue/testQueue</destination-jndi-name>
       </message-driven>
   </enterprise-beans>
   <resource-managers>
       <resource-manager>
           <res-name>mail/MyMail</res-name>
           <res-jndi-name>java:/Mail</res-jndi-name>
       </resource-manager>
   </resource-managers>
and here is the entry for my ejb that uses the mail service in the ejb-jar.xml file:
...
    <message-driven>
      <![CDATA[This message-driven bean will send email messages.]]>
      <ejb-name>GenerateStatementEJB</ejb-name>
      <ejb-class>com.sextanttech.messages.GenerateStatementBean</ejb-class>
      <transaction-type>Container</transaction-type>
      <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
      <message-driven-destination>
        <destination-type>javax.jms.Queue</destination-type>
      </message-driven-destination>
      <resource-ref>
        <res-ref-name>mail/MyMail</res-ref-name>
        <res-type>javax.mail.Session</res-type>
        <res-auth>Container</res-auth>
      </resource-ref>
    </message-driven>
...
any ideas on what the issue is would be greatly appreciated. Thanks, Mac