Running the Example

The following steps describe how to start PointBase database server and WebLogic Server, and run the sample client:

1.
Start the PointBase server in a new command window as follows:

C:>cd styejbexamples
C:styejbexamples>setEnvWebLogic.bat
C:styejbexamples>startPointBase.bat
							

2.
Start WebLogic Server in a new command window as follows:

C:>cd styejbexamples
C:styejbexamples>setEnvWebLogic.bat
C:styejbexamples>startWebLogic.bat
							

3.
You can run the client in the same window you used to package the bean and build the client by using the following command:

C:styejbexamplesday11>runClientWebLogic.bat
							

Running the client produces the following output:

Starting Client . . .
Looking up the order home via JNDI.
Created a new order:1027793589262 .
Locating the order 1027793589262 using findByPrimaryKey method.
Locating all orders with status Submitted  using findByStatus method.
Order id:1027793589262
Finding the total amount of all orders using
 getTotalAmountOfAllOrders home method.
Total amount:100.0

The following steps describe how to start the JBoss server and run the sample client:

1.
Start JBoss in a new command window as follows:

C:>cd styejbexamples
C:styejbexamples>setEnvJBoss.bat
C:styejbexamples>startJBoss.bat
							

2.
You can run the client in the same window you used to package the bean and build the client by using the following command:

C:styejbexamplesday11>runClientWebLogic.bat
							

Note that the JBoss server automatically starts the default HyperSonic database.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.82.4