I have created a stand-alone admin component outside the orion server, which use the 
MailerEJB functions to send emails. An exception will be thrown in MailHelper when I 
start running the stand-alone admin program, which is "java:com\env\mail\MailSession 
not found".
here is <resource-ref> tag in ejb-jar.xml and web.xml
<resource-ref>
    <res-ref-name>mail/MailSession</res-ref-name>
    <res-type>javax.mail.Session</res-type>
</resource-ref>

and here is <mail-session> tag in server.xml    
<mail-session location="mail/MailSession" smtp-host="csah.com">
        <property name="mail.transport.protocol" value="smtp" />
        <property name="mail.smtp.from" value="[EMAIL PROTECTED]" />
        <property name="mail.from" value="[EMAIL PROTECTED]" />
</mail-session>

Is anything missed? Kindly please reply this message.




_______________________________________________________________
http://www.SINA.com - #1 Destination Site for Chinese Worldwide

Reply via email to