Trouble using java mail with JBoss

J

Jonathan Taub

I have JBoss 3.21.
My mail-service.xml file looks like this:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE server>

<!-- $Id: mail-service.xml,v 1.4 2002/06/01 02:06:46 starksm Exp $ -->



<server>



<classpath codebase="lib"

archives="mail.jar, activation.jar, mail-plugin.jar"/>



<!-- ==================================================================== -->

<!-- Mail Connection Factory -->

<!-- ==================================================================== -->



<mbean code="org.jboss.mail.MailService"

name="jboss:service=Mail">

<attribute name="JNDIName">mail</attribute>

<attribute name="User">yonatan</attribute>

<attribute name="Password">XX</attribute>

<attribute name="Configuration">

<!-- Test -->

<configuration>

<!-- Change to your mail server prototocol -->

<property name="mail.store.protocol" value="pop3"/>

<property name="mail.transport.protocol" value="smtp"/>



<!-- Change to the user who will receive mail -->

<property name="mail.user" value="yonatan"/>



<!-- Change to the mail server -->

<property name="mail.pop3.host" value="pop3.nosuchhost.nosuchdomain.com"/>



<!-- Change to the SMTP gateway server -->

<property name="mail.smtp.host" value="110.12.31.12"/> <!-- odin -->



<!-- Change to the address mail will be from -->

<property name="mail.from" value="(e-mail address removed)"/>



<!-- Enable debugging output from the javamail classes -->

<property name="mail.debug" value="false"/>

</configuration>

</attribute>

</mbean>



</server>



When doing a simple lookup, I can't find the mail session.
Am I missing something?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top