Sun Java Solaris Communities My SDN Account Join SDN
 
Tutorials & Code Camps

Magercise: Run the Simple Stock Example: Help

 


[Magercise | API Docs | Short Course| Magercises]

Help is available for each task.

Task 1

Download the Jar files for the client and the for the server. (See "Skeleton Code" above.)

To run the server you need to download the stockServer.jar file.

To run the client you need to download the stockServer.jar file.

Task 2

Run the programs in the order given below:

run the server:
java StockServer.theServer gii.ior
run the client:
java StockClient.theCliet gii.ior

Notes

Your classpath needs to include the jar file containing the StockServer or StockClient.

For VisiBroker you also need to include the files vbjorb.jar and vbjapp.jar on the classpath. Alternatively, you can use the vbj program to run your programs instead of using java directly. The vbj command adds the vbjorb.jar and vbjapp.jar files to the classpath appropriately and then invokes Java.

If you are using VisiBroker and Java 2, then you need to define the following system properties as well:

org.omg.CORBA.ORBClass=
   com.visigenic.vbroker.orb.ORB
org.omg.CORBA.ORBSingletonClass=
     com.visigenic.vbroker.orb.ORB

Copyright © 1998-1999 MageLang Institute. All Rights Reserved.