Copyright (C) BULL S.A. 1998-2002

Session beans "Mailer"
-------------------------

SessionMailer     : session bean using javax.mail.Session mail factory
MimePartDSMailer  : session bean using javax.mail.internet.MimePartDataSource mail factory

This bean must be run in an JOnAS Server, with a command like this one:
	jonas start
You must wait for these messages before running clients:
SessionMailer available
MimePartDSMailer available
The JOnAS Server 'jonas' version x.x.x is ready and running on xxx

Clients for this bean:
----------------------
ClientMailer	client for session bean "Mailer"


Compiling this example:
-----------------------
ant -find build.xml install

Running this example:
---------------------

In order to run this example, you must configure two types of mail factory (you can use the provided templates : $JONAS_ROOT/conf/MailSession1 and $JONAS_ROOT/conf/MailMimePartDS1 files).

The first factory, named MailSession1, is a javax.mail.Session mail factory.
The second one, named MailMimePartDS1, is a javax.mail.internet.MimePartDataSource mail factory.

For the javax.mail.Session factory, only the property mail.host need to be defined.

For the javax.mail.internet.MimePartDataSource factory, the properties 
mail.host, mail.to and mail.subject must be defined.

The jonas.service.mail.factories property should be already set in the jonas.properties file.

Start JOnAS
	jonas start

Load the mailsb.jar if you have not added it in the ejb service descriptors list.
    jonas admin jonas admin -a $JONAS_BASE/ejbjars/mailsb.jar

Run the client program:
	jclient mailsb.ClientMailer <SessionMailer | MimePartDSMailer>

