~ubuntu-branches/ubuntu/feisty/libpgjava/feisty

« back to all changes in this revision

Viewing changes to src/interfaces/jdbc/example/corba/readme

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Gybas
  • Date: 2002-02-06 23:43:06 UTC
  • Revision ID: james.westby@ubuntu.com-20020206234306-hsg7suqr8q56qg40
Tags: upstream-7.2
ImportĀ upstreamĀ versionĀ 7.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
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.
 
4
 
 
5
To compile:
 
6
 
 
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.
 
10
 
 
11
To run:
 
12
 
 
13
NOTE: To run, you will need 3 shells on Win32 (under unix you can get away
 
14
with two shells):
 
15
 
 
16
1: Start the naming service
 
17
 
 
18
Unix:   tnameserv -ORBInitialPort 1050 &
 
19
Win32:  tnameserv -ORBInitialPort 1050
 
20
 
 
21
2: Start the StockServer
 
22
 
 
23
        java example.corba.StockServer 3 jdbc:postgresql:dbase user passwd -ORBInitialPort 1050
 
24
 
 
25
Where:
 
26
        3       Number of concurrent sessions to allow
 
27
        dbase   The database (including a hostname if required)
 
28
        user    The PostgreSQL user name
 
29
        passwd  The password
 
30
 
 
31
3: Using a fresh shell, run the client:
 
32
 
 
33
        java example.corba.StockClient -ORBInitialPort 1050
 
34