Running the Examples

To run the samplemdb example, you will have to first start the JOnAS server and then run the Java client. Finally, at the end of the execution you should stop the JOnAS server.

NOTE: The following example assumes that the current folder is $JONAS_ROOT/examples/src/mdb/samplemdb. To make the example operating system independent, command prompts have been supressed.

Here is how to proceed:

Start the JOnAS server:

jonas start
jonas admin -a samplemdb.jar

Start the Java Client:


jclient samplemdb.MdbClient 

Stop the JOnAS server:

jonas stop

To run the sampleappli example, you will have to first start the JOnAS server and then run the Java client. Finally, at the end of the execution you should stop the JOnAS server.

NOTE: The following example assumes that the current folder is $JONAS_ROOT/examples/src/mdb/sampleappli. To make the example operating system independent, command prompts have been supressed.

Here is how to proceed:

Start the JOnAS server:


jonas start
jonas admin -a sampleappli.jar

Start the Java Client:



jclient sampleappli.SampleAppliClient

Stop the JOnAS server:

jonas stop

Each example comes with a corresponding README file.