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/config/MailSession1 and $JONAS_ROOT/config/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 is already set in the ./jonas.properties file.

On Unix:
Run  JOnAS to make beans available to clients:
	cd $JONAS_ROOT/examples/src/mailsb
	jonas start
Run the client program:
	jclient mailsb.ClientMailer <SessionMailer | MimePartDSMailer>

On Windows:
Run JOnAS to make beans available to clients:
	cd %JONAS_ROOT%\examples\src\mailsb
	jonas start
Run the client program:
	jclient mailsb.ClientMailer <SessionMailer | MimePartDSMailer>
