~ubuntu-branches/ubuntu/oneiric/libpgjava/oneiric

« back to all changes in this revision

Viewing changes to src/interfaces/jdbc/example/corba/StockServer.java

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2005-04-21 14:25:11 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050421142511-wibh5vc31fkrorx7
Tags: 7.4.7-3
Built with sources...

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
/*
6
6
 * This class implements the server side of the example.
7
7
 *
8
 
 * $Id: StockServer.java,v 1.4 2001/11/19 23:19:20 momjian Exp $
 
8
 * $Id: StockServer.java,v 1.5 2002/09/06 21:23:05 momjian Exp $
9
9
 */
10
10
public class StockServer
11
11
{
29
29
                        if (nameServiceObj == null)
30
30
                        {
31
31
                                System.err.println("nameServiceObj = null");
32
 
                                return;
 
32
                                return ;
33
33
                        }
34
34
 
35
35
                        org.omg.CosNaming.NamingContext nameService = org.omg.CosNaming.NamingContextHelper.narrow(nameServiceObj);
36
36
                        if (nameService == null)
37
37
                        {
38
38
                                System.err.println("nameService = null");
39
 
                                return;
 
39
                                return ;
40
40
                        }
41
41
 
42
42
                        // bind the dispenser into the naming service