2
The CORBA example is the most complicated of the examples. It
3
aims to show how to use JDBC & Java2's ORB to access PostgreSQL.
7
Type "make corba" to build the example. This will create a new directory
8
stock which contains the stubs needed by the orb, and all required classes
9
under the example/corba directory.
13
NOTE: To run, you will need 3 shells on Win32 (under unix you can get away
16
1: Start the naming service
18
Unix: tnameserv -ORBInitialPort 1050 &
19
Win32: tnameserv -ORBInitialPort 1050
21
2: Start the StockServer
23
java example.corba.StockServer 3 jdbc:postgresql:dbase user passwd -ORBInitialPort 1050
26
3 Number of concurrent sessions to allow
27
dbase The database (including a hostname if required)
28
user The PostgreSQL user name
31
3: Using a fresh shell, run the client:
33
java example.corba.StockClient -ORBInitialPort 1050