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 styejb\examples
C:\styejb\examples>setEnvWebLogic.bat
C:\styejb\examples>startPointBase.bat
							
2.
Start WebLogic Server in a new command window as follows:
C:\>cd styejb\examples
C:\styejb\examples>setEnvWebLogic.bat
C:\styejb\examples>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:\styejb\examples\day11>runClientWebLogic.bat
							

Running the client produces the following output:

 Starting Client . . . Looking up the order home via JNDI. Created ...

Get Sams Teach Yourself EJB in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.