~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to java/demo/book/lifecycle/Server.java

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// **********************************************************************
2
2
//
3
 
// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
 
3
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
4
4
//
5
5
// This copy of Ice is licensed to you under the terms described in the
6
6
// ICE_LICENSE file included in this distribution.
14
14
    public int
15
15
    run(String[] args)
16
16
    {
 
17
        //
17
18
        // Terminate cleanly on receipt of a signal.
18
19
        //
19
20
        shutdownOnInterrupt();
20
21
        Ice.Properties properties = communicator().getProperties();
21
22
 
 
23
        //
22
24
        // Create an object adapter
23
25
        //
24
26
        Ice.ObjectAdapter adapter = communicator().createObjectAdapterWithEndpoints(
25
 
                                                        "LifecycleFilesystem", "default -p 10000");
 
27
            "LifecycleFilesystem", "default -h 127.0.0.1 -p 10000");
26
28
 
 
29
        //
27
30
        // Create the root directory.
28
31
        //
29
32
        DirectoryI root = new DirectoryI();
31
34
        id.name = "RootDir";
32
35
        adapter.add(root, id);
33
36
 
34
 
 
 
37
        //
35
38
        // All objects are created, allow client requests now.
36
39
        //
37
40
        adapter.activate();
38
41
 
 
42
        //
39
43
        // Wait until we are done.
40
44
        //
41
45
        communicator().waitForShutdown();