Running the SB Example

To run this 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/sb.

Here is how to proceed:

Start the JOnAS server:
jonas start
jonas admin -a sb.jar

Start the Java Client:
jclient sb.ClientOp 

A successful run should output:
Create a bean
Start a first transaction
First request on the new bean
Second request on the bean
Commit the transaction
Start a second transaction
Rollback the transaction
Request outside any transaction
ClientOp OK. Exiting.

CONGRATULATIONS!! You have succeeded running your first EJB application with JOnAS !

Stop the JOnAS server with the following command:
jonas stop