hi
when trying to get the session to be able to send an email from a bean i am
told that mail is not bound.
I have a mail-service.xml in the deply folder
<!DOCTYPE server>
| <server>
| <mbean code="org.jboss.mail.MailService"
| name="jboss:service=mail/JFrMail">
| <attribute name="JNDIName">java:/mail/JFrMail</attribute>
| <!--
| Use these if your outgoing server requires authentication
| <attribute name="User">nobody</attribute>
| <attribute name="Password">password</attribute>
| -->
| <attribute name="Configuration">
| <configuration>
| <property name="mail.transport.protocol" value="smtp"/>
| <property name="mail.smtp.host" value="mail.dummy.com"/>
| <property name="mail.from" value="[EMAIL PROTECTED]"/>
| <property name="mail.debug" value="false"/>
| </configuration>
| </attribute>
| </mbean>
| </server>
to get the session I do the following :
mailsession = (Session) ctx.lookup("java:/mail/JFrMail");
and i get the following when Jboss delpoys the xml
anonymous wrote : 07:21:06,437 INFO [MailService] Mail Service bound to
java:/mail/JFrMail
my jndi.properties :
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
| java.naming.provider.url=localhost
and i'm using jboss 4.0.3
i've missed something but after a lot of googling I can't see what
thanks
Andrew
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3902925#3902925
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3902925
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user