Java Code Examples for com.sun.corba.se.spi.orb.ORB#init()

The following examples show how to use com.sun.corba.se.spi.orb.ORB#init() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ORBD.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
protected ORB createORB(String[] args)
{
    Properties props = System.getProperties();

    // For debugging.
    //props.put( ORBConstants.DEBUG_PROPERTY, "naming" ) ;
    //props.put( ORBConstants.DEBUG_PROPERTY, "transport,giop,naming" ) ;

    props.put( ORBConstants.SERVER_ID_PROPERTY, "1000" ) ;
    props.put( ORBConstants.PERSISTENT_SERVER_PORT_PROPERTY,
        props.getProperty( ORBConstants.ORBD_PORT_PROPERTY,
            Integer.toString(
                ORBConstants.DEFAULT_ACTIVATION_PORT ) ) ) ;

    // See Bug 4396928 for more information about why we are initializing
    // the ORBClass to PIORB (now ORBImpl, but should check the bugid).
    props.put("org.omg.CORBA.ORBClass",
        "com.sun.corba.se.impl.orb.ORBImpl");

    return (ORB) ORB.init(args, props);
}
 
Example 2
Source File: ORBD.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
protected ORB createORB(String[] args)
{
    Properties props = System.getProperties();

    // For debugging.
    //props.put( ORBConstants.DEBUG_PROPERTY, "naming" ) ;
    //props.put( ORBConstants.DEBUG_PROPERTY, "transport,giop,naming" ) ;

    props.put( ORBConstants.SERVER_ID_PROPERTY, "1000" ) ;
    props.put( ORBConstants.PERSISTENT_SERVER_PORT_PROPERTY,
        props.getProperty( ORBConstants.ORBD_PORT_PROPERTY,
            Integer.toString(
                ORBConstants.DEFAULT_ACTIVATION_PORT ) ) ) ;

    // See Bug 4396928 for more information about why we are initializing
    // the ORBClass to PIORB (now ORBImpl, but should check the bugid).
    props.put("org.omg.CORBA.ORBClass",
        "com.sun.corba.se.impl.orb.ORBImpl");

    return (ORB) ORB.init(args, props);
}
 
Example 3
Source File: ORBD.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
protected ORB createORB(String[] args)
{
    Properties props = System.getProperties();

    // For debugging.
    //props.put( ORBConstants.DEBUG_PROPERTY, "naming" ) ;
    //props.put( ORBConstants.DEBUG_PROPERTY, "transport,giop,naming" ) ;

    props.put( ORBConstants.SERVER_ID_PROPERTY, "1000" ) ;
    props.put( ORBConstants.PERSISTENT_SERVER_PORT_PROPERTY,
        props.getProperty( ORBConstants.ORBD_PORT_PROPERTY,
            Integer.toString(
                ORBConstants.DEFAULT_ACTIVATION_PORT ) ) ) ;

    // See Bug 4396928 for more information about why we are initializing
    // the ORBClass to PIORB (now ORBImpl, but should check the bugid).
    props.put("org.omg.CORBA.ORBClass",
        "com.sun.corba.se.impl.orb.ORBImpl");

    return (ORB) ORB.init(args, props);
}
 
Example 4
Source File: ORBD.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
protected ORB createORB(String[] args)
{
    Properties props = System.getProperties();

    // For debugging.
    //props.put( ORBConstants.DEBUG_PROPERTY, "naming" ) ;
    //props.put( ORBConstants.DEBUG_PROPERTY, "transport,giop,naming" ) ;

    props.put( ORBConstants.SERVER_ID_PROPERTY, "1000" ) ;
    props.put( ORBConstants.PERSISTENT_SERVER_PORT_PROPERTY,
        props.getProperty( ORBConstants.ORBD_PORT_PROPERTY,
            Integer.toString(
                ORBConstants.DEFAULT_ACTIVATION_PORT ) ) ) ;

    // See Bug 4396928 for more information about why we are initializing
    // the ORBClass to PIORB (now ORBImpl, but should check the bugid).
    props.put("org.omg.CORBA.ORBClass",
        "com.sun.corba.se.impl.orb.ORBImpl");

    return (ORB) ORB.init(args, props);
}
 
Example 5
Source File: ORBD.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
protected ORB createORB(String[] args)
{
    Properties props = System.getProperties();

    // For debugging.
    //props.put( ORBConstants.DEBUG_PROPERTY, "naming" ) ;
    //props.put( ORBConstants.DEBUG_PROPERTY, "transport,giop,naming" ) ;

    props.put( ORBConstants.SERVER_ID_PROPERTY, "1000" ) ;
    props.put( ORBConstants.PERSISTENT_SERVER_PORT_PROPERTY,
        props.getProperty( ORBConstants.ORBD_PORT_PROPERTY,
            Integer.toString(
                ORBConstants.DEFAULT_ACTIVATION_PORT ) ) ) ;

    // See Bug 4396928 for more information about why we are initializing
    // the ORBClass to PIORB (now ORBImpl, but should check the bugid).
    props.put("org.omg.CORBA.ORBClass",
        "com.sun.corba.se.impl.orb.ORBImpl");

    return (ORB) ORB.init(args, props);
}
 
Example 6
Source File: ORBD.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
protected ORB createORB(String[] args)
{
    Properties props = System.getProperties();

    // For debugging.
    //props.put( ORBConstants.DEBUG_PROPERTY, "naming" ) ;
    //props.put( ORBConstants.DEBUG_PROPERTY, "transport,giop,naming" ) ;

    props.put( ORBConstants.SERVER_ID_PROPERTY, "1000" ) ;
    props.put( ORBConstants.PERSISTENT_SERVER_PORT_PROPERTY,
        props.getProperty( ORBConstants.ORBD_PORT_PROPERTY,
            Integer.toString(
                ORBConstants.DEFAULT_ACTIVATION_PORT ) ) ) ;

    // See Bug 4396928 for more information about why we are initializing
    // the ORBClass to PIORB (now ORBImpl, but should check the bugid).
    props.put("org.omg.CORBA.ORBClass",
        "com.sun.corba.se.impl.orb.ORBImpl");

    return (ORB) ORB.init(args, props);
}
 
Example 7
Source File: ORBD.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
protected ORB createORB(String[] args)
{
    Properties props = System.getProperties();

    // For debugging.
    //props.put( ORBConstants.DEBUG_PROPERTY, "naming" ) ;
    //props.put( ORBConstants.DEBUG_PROPERTY, "transport,giop,naming" ) ;

    props.put( ORBConstants.SERVER_ID_PROPERTY, "1000" ) ;
    props.put( ORBConstants.PERSISTENT_SERVER_PORT_PROPERTY,
        props.getProperty( ORBConstants.ORBD_PORT_PROPERTY,
            Integer.toString(
                ORBConstants.DEFAULT_ACTIVATION_PORT ) ) ) ;

    // See Bug 4396928 for more information about why we are initializing
    // the ORBClass to PIORB (now ORBImpl, but should check the bugid).
    props.put("org.omg.CORBA.ORBClass",
        "com.sun.corba.se.impl.orb.ORBImpl");

    return (ORB) ORB.init(args, props);
}
 
Example 8
Source File: ORBD.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
protected ORB createORB(String[] args)
{
    Properties props = System.getProperties();

    // For debugging.
    //props.put( ORBConstants.DEBUG_PROPERTY, "naming" ) ;
    //props.put( ORBConstants.DEBUG_PROPERTY, "transport,giop,naming" ) ;

    props.put( ORBConstants.SERVER_ID_PROPERTY, "1000" ) ;
    props.put( ORBConstants.PERSISTENT_SERVER_PORT_PROPERTY,
        props.getProperty( ORBConstants.ORBD_PORT_PROPERTY,
            Integer.toString(
                ORBConstants.DEFAULT_ACTIVATION_PORT ) ) ) ;

    // See Bug 4396928 for more information about why we are initializing
    // the ORBClass to PIORB (now ORBImpl, but should check the bugid).
    props.put("org.omg.CORBA.ORBClass",
        "com.sun.corba.se.impl.orb.ORBImpl");

    return (ORB) ORB.init(args, props);
}
 
Example 9
Source File: ORBD.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
protected ORB createORB(String[] args)
{
    Properties props = System.getProperties();

    // For debugging.
    //props.put( ORBConstants.DEBUG_PROPERTY, "naming" ) ;
    //props.put( ORBConstants.DEBUG_PROPERTY, "transport,giop,naming" ) ;

    props.put( ORBConstants.SERVER_ID_PROPERTY, "1000" ) ;
    props.put( ORBConstants.PERSISTENT_SERVER_PORT_PROPERTY,
        props.getProperty( ORBConstants.ORBD_PORT_PROPERTY,
            Integer.toString(
                ORBConstants.DEFAULT_ACTIVATION_PORT ) ) ) ;

    // See Bug 4396928 for more information about why we are initializing
    // the ORBClass to PIORB (now ORBImpl, but should check the bugid).
    props.put("org.omg.CORBA.ORBClass",
        "com.sun.corba.se.impl.orb.ORBImpl");

    return (ORB) ORB.init(args, props);
}
 
Example 10
Source File: ORBD.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
protected ORB createORB(String[] args)
{
    Properties props = System.getProperties();

    // For debugging.
    //props.put( ORBConstants.DEBUG_PROPERTY, "naming" ) ;
    //props.put( ORBConstants.DEBUG_PROPERTY, "transport,giop,naming" ) ;

    props.put( ORBConstants.SERVER_ID_PROPERTY, "1000" ) ;
    props.put( ORBConstants.PERSISTENT_SERVER_PORT_PROPERTY,
        props.getProperty( ORBConstants.ORBD_PORT_PROPERTY,
            Integer.toString(
                ORBConstants.DEFAULT_ACTIVATION_PORT ) ) ) ;

    // See Bug 4396928 for more information about why we are initializing
    // the ORBClass to PIORB (now ORBImpl, but should check the bugid).
    props.put("org.omg.CORBA.ORBClass",
        "com.sun.corba.se.impl.orb.ORBImpl");

    return (ORB) ORB.init(args, props);
}
 
Example 11
Source File: RepositoryImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Typically the Repositoy is created within the ORBd VM but it can
 * be independently started as well.
 */
public static void main(String args[]) {
    boolean debug = false ;
    for (int ctr=0; ctr<args.length; ctr++)
        if (args[ctr].equals("-debug"))
            debug = true ;

    try {
        // See Bug 4396928 for more information about why we are
        // initializing the ORBClass to PIORB (now ORBImpl, but see the bug).
        Properties props = new Properties();
        props.put("org.omg.CORBA.ORBClass",
            "com.sun.corba.se.impl.orb.ORBImpl");
        ORB orb = (ORB) ORB.init(args, props);

        // create the repository object
        String db = System.getProperty( ORBConstants.DB_PROPERTY,
                ORBConstants.DEFAULT_DB_NAME );
        RepositoryImpl repository = new RepositoryImpl(orb, new File(db),
                                                       debug);

        // wait for shutdown
        orb.run();
    } catch (Exception ex) {
        ex.printStackTrace();
    }
}
 
Example 12
Source File: RepositoryImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * Typically the Repositoy is created within the ORBd VM but it can
 * be independently started as well.
 */
public static void main(String args[]) {
    boolean debug = false ;
    for (int ctr=0; ctr<args.length; ctr++)
        if (args[ctr].equals("-debug"))
            debug = true ;

    try {
        // See Bug 4396928 for more information about why we are
        // initializing the ORBClass to PIORB (now ORBImpl, but see the bug).
        Properties props = new Properties();
        props.put("org.omg.CORBA.ORBClass",
            "com.sun.corba.se.impl.orb.ORBImpl");
        ORB orb = (ORB) ORB.init(args, props);

        // create the repository object
        String db = System.getProperty( ORBConstants.DB_PROPERTY,
                ORBConstants.DEFAULT_DB_NAME );
        RepositoryImpl repository = new RepositoryImpl(orb, new File(db),
                                                       debug);

        // wait for shutdown
        orb.run();
    } catch (Exception ex) {
        ex.printStackTrace();
    }
}
 
Example 13
Source File: RepositoryImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Typically the Repositoy is created within the ORBd VM but it can
 * be independently started as well.
 */
public static void main(String args[]) {
    boolean debug = false ;
    for (int ctr=0; ctr<args.length; ctr++)
        if (args[ctr].equals("-debug"))
            debug = true ;

    try {
        // See Bug 4396928 for more information about why we are
        // initializing the ORBClass to PIORB (now ORBImpl, but see the bug).
        Properties props = new Properties();
        props.put("org.omg.CORBA.ORBClass",
            "com.sun.corba.se.impl.orb.ORBImpl");
        ORB orb = (ORB) ORB.init(args, props);

        // create the repository object
        String db = System.getProperty( ORBConstants.DB_PROPERTY,
                ORBConstants.DEFAULT_DB_NAME );
        RepositoryImpl repository = new RepositoryImpl(orb, new File(db),
                                                       debug);

        // wait for shutdown
        orb.run();
    } catch (Exception ex) {
        ex.printStackTrace();
    }
}
 
Example 14
Source File: RepositoryImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Typically the Repositoy is created within the ORBd VM but it can
 * be independently started as well.
 */
public static void main(String args[]) {
    boolean debug = false ;
    for (int ctr=0; ctr<args.length; ctr++)
        if (args[ctr].equals("-debug"))
            debug = true ;

    try {
        // See Bug 4396928 for more information about why we are
        // initializing the ORBClass to PIORB (now ORBImpl, but see the bug).
        Properties props = new Properties();
        props.put("org.omg.CORBA.ORBClass",
            "com.sun.corba.se.impl.orb.ORBImpl");
        ORB orb = (ORB) ORB.init(args, props);

        // create the repository object
        String db = System.getProperty( ORBConstants.DB_PROPERTY,
                ORBConstants.DEFAULT_DB_NAME );
        RepositoryImpl repository = new RepositoryImpl(orb, new File(db),
                                                       debug);

        // wait for shutdown
        orb.run();
    } catch (Exception ex) {
        ex.printStackTrace();
    }
}
 
Example 15
Source File: RepositoryImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Typically the Repositoy is created within the ORBd VM but it can
 * be independently started as well.
 */
public static void main(String args[]) {
    boolean debug = false ;
    for (int ctr=0; ctr<args.length; ctr++)
        if (args[ctr].equals("-debug"))
            debug = true ;

    try {
        // See Bug 4396928 for more information about why we are
        // initializing the ORBClass to PIORB (now ORBImpl, but see the bug).
        Properties props = new Properties();
        props.put("org.omg.CORBA.ORBClass",
            "com.sun.corba.se.impl.orb.ORBImpl");
        ORB orb = (ORB) ORB.init(args, props);

        // create the repository object
        String db = System.getProperty( ORBConstants.DB_PROPERTY,
                ORBConstants.DEFAULT_DB_NAME );
        RepositoryImpl repository = new RepositoryImpl(orb, new File(db),
                                                       debug);

        // wait for shutdown
        orb.run();
    } catch (Exception ex) {
        ex.printStackTrace();
    }
}
 
Example 16
Source File: RepositoryImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Typically the Repositoy is created within the ORBd VM but it can
 * be independently started as well.
 */
public static void main(String args[]) {
    boolean debug = false ;
    for (int ctr=0; ctr<args.length; ctr++)
        if (args[ctr].equals("-debug"))
            debug = true ;

    try {
        // See Bug 4396928 for more information about why we are
        // initializing the ORBClass to PIORB (now ORBImpl, but see the bug).
        Properties props = new Properties();
        props.put("org.omg.CORBA.ORBClass",
            "com.sun.corba.se.impl.orb.ORBImpl");
        ORB orb = (ORB) ORB.init(args, props);

        // create the repository object
        String db = System.getProperty( ORBConstants.DB_PROPERTY,
                ORBConstants.DEFAULT_DB_NAME );
        RepositoryImpl repository = new RepositoryImpl(orb, new File(db),
                                                       debug);

        // wait for shutdown
        orb.run();
    } catch (Exception ex) {
        ex.printStackTrace();
    }
}
 
Example 17
Source File: RepositoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Typically the Repositoy is created within the ORBd VM but it can
 * be independently started as well.
 */
public static void main(String args[]) {
    boolean debug = false ;
    for (int ctr=0; ctr<args.length; ctr++)
        if (args[ctr].equals("-debug"))
            debug = true ;

    try {
        // See Bug 4396928 for more information about why we are
        // initializing the ORBClass to PIORB (now ORBImpl, but see the bug).
        Properties props = new Properties();
        props.put("org.omg.CORBA.ORBClass",
            "com.sun.corba.se.impl.orb.ORBImpl");
        ORB orb = (ORB) ORB.init(args, props);

        // create the repository object
        String db = System.getProperty( ORBConstants.DB_PROPERTY,
                ORBConstants.DEFAULT_DB_NAME );
        RepositoryImpl repository = new RepositoryImpl(orb, new File(db),
                                                       debug);

        // wait for shutdown
        orb.run();
    } catch (Exception ex) {
        ex.printStackTrace();
    }
}
 
Example 18
Source File: RepositoryImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Typically the Repositoy is created within the ORBd VM but it can
 * be independently started as well.
 */
public static void main(String args[]) {
    boolean debug = false ;
    for (int ctr=0; ctr<args.length; ctr++)
        if (args[ctr].equals("-debug"))
            debug = true ;

    try {
        // See Bug 4396928 for more information about why we are
        // initializing the ORBClass to PIORB (now ORBImpl, but see the bug).
        Properties props = new Properties();
        props.put("org.omg.CORBA.ORBClass",
            "com.sun.corba.se.impl.orb.ORBImpl");
        ORB orb = (ORB) ORB.init(args, props);

        // create the repository object
        String db = System.getProperty( ORBConstants.DB_PROPERTY,
                ORBConstants.DEFAULT_DB_NAME );
        RepositoryImpl repository = new RepositoryImpl(orb, new File(db),
                                                       debug);

        // wait for shutdown
        orb.run();
    } catch (Exception ex) {
        ex.printStackTrace();
    }
}
 
Example 19
Source File: RepositoryImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Typically the Repositoy is created within the ORBd VM but it can
 * be independently started as well.
 */
public static void main(String args[]) {
    boolean debug = false ;
    for (int ctr=0; ctr<args.length; ctr++)
        if (args[ctr].equals("-debug"))
            debug = true ;

    try {
        // See Bug 4396928 for more information about why we are
        // initializing the ORBClass to PIORB (now ORBImpl, but see the bug).
        Properties props = new Properties();
        props.put("org.omg.CORBA.ORBClass",
            "com.sun.corba.se.impl.orb.ORBImpl");
        ORB orb = (ORB) ORB.init(args, props);

        // create the repository object
        String db = System.getProperty( ORBConstants.DB_PROPERTY,
                ORBConstants.DEFAULT_DB_NAME );
        RepositoryImpl repository = new RepositoryImpl(orb, new File(db),
                                                       debug);

        // wait for shutdown
        orb.run();
    } catch (Exception ex) {
        ex.printStackTrace();
    }
}
 
Example 20
Source File: RepositoryImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * Typically the Repositoy is created within the ORBd VM but it can
 * be independently started as well.
 */
public static void main(String args[]) {
    boolean debug = false ;
    for (int ctr=0; ctr<args.length; ctr++)
        if (args[ctr].equals("-debug"))
            debug = true ;

    try {
        // See Bug 4396928 for more information about why we are
        // initializing the ORBClass to PIORB (now ORBImpl, but see the bug).
        Properties props = new Properties();
        props.put("org.omg.CORBA.ORBClass",
            "com.sun.corba.se.impl.orb.ORBImpl");
        ORB orb = (ORB) ORB.init(args, props);

        // create the repository object
        String db = System.getProperty( ORBConstants.DB_PROPERTY,
                ORBConstants.DEFAULT_DB_NAME );
        RepositoryImpl repository = new RepositoryImpl(orb, new File(db),
                                                       debug);

        // wait for shutdown
        orb.run();
    } catch (Exception ex) {
        ex.printStackTrace();
    }
}