Results 1 to 2 of 2

Thread: java initiaclizeWithProperties

  1. #1
    xdm's Avatar
    xdm
    xdm is online now ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588

    java initiaclizeWithProperties

    Hello can any body help to write the equivalent code for this in java i prefer a version that dont require argc and argv because the inicialization is part of a webapplication

    Code:
    Ice::PropertiesPtr properties = Ice::createProperties();
    properties->setProperty("Ice.Trace.Network", "1");
    Ice::CommunicatorPtr ic;
    ic = Ice::initializeWithProperties(argc, argv, properties);
    Thanks in advantage

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    The Java equivalent would look like this:

    Code:
    Ice.Properties properties = Ice.Util.createProperties();
    properties.setProperty("Ice.Trace.Network", "1");
    Ice.Communicator ic;
    String[] emptyArgs = new String[0];
    ic = Ice.Util.initializeWithProperties(emptyArgs, properties);
    Take care,
    - Mark

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is the ICE for Java based on Java NIO?
    By Jiangyubao in forum Comments
    Replies: 1
    Last Post: 03-30-2008, 06:04 PM
  2. 1 Java Server and 2 Java Clients
    By maalej in forum Help Center
    Replies: 1
    Last Post: 10-06-2007, 05:08 PM
  3. java:type:java.util.Vector
    By jesse in forum Help Center
    Replies: 1
    Last Post: 04-23-2007, 12:49 PM
  4. Replies: 2
    Last Post: 11-24-2006, 03:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •