--------------------------------------------------------------------------
		WARNING!

o To compile this example, you should have compiled the ../eb example.

o This example may run with or without a database access configured.
  If you have a database and was able to run the ../eb example, just
  modify the jonas.properties file by adding the eb.jar in the
  list of bean descriptors:
  	jonas.service.ejb.descriptors jms.jar,eb.jar

--------------------------------------------------------------------------

Example description
-------------------
This example illustrates an EJB component, the EJbComp stateful session bean,
that sends JMS messages to a JMS Topic. The method sendMsg of EjbComp
publishes a message to a Topic.

The EJB client, EjbCompClient, starts a transaction, calls the method
sendMsg of the EjbComp bean and eventually creates an entity bean Account
(that of the ../eb sample) if this last one has been deployed on the EJB
server (it is not mandatory for running the example), then it
commits or aborts the transaction. In the first case, the message is sent,
and the entity bean is created (i.e. record [222, "JMS Sample OK", 0] is
created in the accountsample table), in the second case, the message is not
sent, and the entity bean is not created.

A pure JMS client, MsgReceptor, receives all messages sent to the Topic.

The administration process is made at JOnAS server launch time.

The property jonas.service.jms.mom set to org.objectweb.jonas_jms.JmsAdminForJoram
means that we want use administered objects created by the server


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

Running this example:
---------------------
JOnAS configuration:

If you want to run the example using the Account entity bean 
(to illustrate a global transaction taking into account message
sending and database writing), you should have in your jonas.properties
file :
 jonas.service.ejb.descriptors	jms.jar,eb.jar

Else (to use only JMS and no database), your jonas.properties should only
contain:
	jonas.service.ejb.descriptors	jms.jar


You may use the run.sh on Unix or run.bat on Windows scripts to execute the
whole example or execute them step by step.


You can run the JOnAS server and the MOM JMS in separate JVM
To do this set the property 
  jonas.service.jms.collocated false 
in jonas.properties then run the JmsServer first.
