Java Code Examples for com.sun.corba.se.spi.activation.InitialNameServiceHelper#narrow()
The following examples show how to use
com.sun.corba.se.spi.activation.InitialNameServiceHelper#narrow() .
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: NameServer.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
protected void run() { try { // create the persistent name service NameService ns = new NameService(orb, dbDir); // add root naming context to initial naming NamingContext rootContext = ns.initialNamingContext(); InitialNameService ins = InitialNameServiceHelper.narrow( orb.resolve_initial_references( ORBConstants.INITIAL_NAME_SERVICE_NAME )); ins.bind( "NameService", rootContext, true); System.out.println(CorbaResourceUtil.getText("pnameserv.success")); // wait for invocations orb.run(); } catch (Exception ex) { ex.printStackTrace(System.err); } }
Example 2
Source File: NameServer.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
protected void run() { try { // create the persistent name service NameService ns = new NameService(orb, dbDir); // add root naming context to initial naming NamingContext rootContext = ns.initialNamingContext(); InitialNameService ins = InitialNameServiceHelper.narrow( orb.resolve_initial_references( ORBConstants.INITIAL_NAME_SERVICE_NAME )); ins.bind( "NameService", rootContext, true); System.out.println(CorbaResourceUtil.getText("pnameserv.success")); // wait for invocations orb.run(); } catch (Exception ex) { ex.printStackTrace(System.err); } }
Example 3
Source File: NameServer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
protected void run() { try { // create the persistent name service NameService ns = new NameService(orb, dbDir); // add root naming context to initial naming NamingContext rootContext = ns.initialNamingContext(); InitialNameService ins = InitialNameServiceHelper.narrow( orb.resolve_initial_references( ORBConstants.INITIAL_NAME_SERVICE_NAME )); ins.bind( "NameService", rootContext, true); System.out.println(CorbaResourceUtil.getText("pnameserv.success")); // wait for invocations orb.run(); } catch (Exception ex) { ex.printStackTrace(System.err); } }
Example 4
Source File: NameServer.java From JDKSourceCode1.8 with MIT License | 6 votes |
protected void run() { try { // create the persistent name service NameService ns = new NameService(orb, dbDir); // add root naming context to initial naming NamingContext rootContext = ns.initialNamingContext(); InitialNameService ins = InitialNameServiceHelper.narrow( orb.resolve_initial_references( ORBConstants.INITIAL_NAME_SERVICE_NAME )); ins.bind( "NameService", rootContext, true); System.out.println(CorbaResourceUtil.getText("pnameserv.success")); // wait for invocations orb.run(); } catch (Exception ex) { ex.printStackTrace(System.err); } }
Example 5
Source File: NameServer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
protected void run() { try { // create the persistent name service NameService ns = new NameService(orb, dbDir); // add root naming context to initial naming NamingContext rootContext = ns.initialNamingContext(); InitialNameService ins = InitialNameServiceHelper.narrow( orb.resolve_initial_references( ORBConstants.INITIAL_NAME_SERVICE_NAME )); ins.bind( "NameService", rootContext, true); System.out.println(CorbaResourceUtil.getText("pnameserv.success")); // wait for invocations orb.run(); } catch (Exception ex) { ex.printStackTrace(System.err); } }
Example 6
Source File: NameServer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
protected void run() { try { // create the persistent name service NameService ns = new NameService(orb, dbDir); // add root naming context to initial naming NamingContext rootContext = ns.initialNamingContext(); InitialNameService ins = InitialNameServiceHelper.narrow( orb.resolve_initial_references( ORBConstants.INITIAL_NAME_SERVICE_NAME )); ins.bind( "NameService", rootContext, true); System.out.println(CorbaResourceUtil.getText("pnameserv.success")); // wait for invocations orb.run(); } catch (Exception ex) { ex.printStackTrace(System.err); } }
Example 7
Source File: NameServer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
protected void run() { try { // create the persistent name service NameService ns = new NameService(orb, dbDir); // add root naming context to initial naming NamingContext rootContext = ns.initialNamingContext(); InitialNameService ins = InitialNameServiceHelper.narrow( orb.resolve_initial_references( ORBConstants.INITIAL_NAME_SERVICE_NAME )); ins.bind( "NameService", rootContext, true); System.out.println(CorbaResourceUtil.getText("pnameserv.success")); // wait for invocations orb.run(); } catch (Exception ex) { ex.printStackTrace(System.err); } }
Example 8
Source File: NameServer.java From hottub with GNU General Public License v2.0 | 6 votes |
protected void run() { try { // create the persistent name service NameService ns = new NameService(orb, dbDir); // add root naming context to initial naming NamingContext rootContext = ns.initialNamingContext(); InitialNameService ins = InitialNameServiceHelper.narrow( orb.resolve_initial_references( ORBConstants.INITIAL_NAME_SERVICE_NAME )); ins.bind( "NameService", rootContext, true); System.out.println(CorbaResourceUtil.getText("pnameserv.success")); // wait for invocations orb.run(); } catch (Exception ex) { ex.printStackTrace(System.err); } }
Example 9
Source File: NameServer.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
protected void run() { try { // create the persistent name service NameService ns = new NameService(orb, dbDir); // add root naming context to initial naming NamingContext rootContext = ns.initialNamingContext(); InitialNameService ins = InitialNameServiceHelper.narrow( orb.resolve_initial_references( ORBConstants.INITIAL_NAME_SERVICE_NAME )); ins.bind( "NameService", rootContext, true); System.out.println(CorbaResourceUtil.getText("pnameserv.success")); // wait for invocations orb.run(); } catch (Exception ex) { ex.printStackTrace(System.err); } }
Example 10
Source File: NameServer.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
protected void run() { try { // create the persistent name service NameService ns = new NameService(orb, dbDir); // add root naming context to initial naming NamingContext rootContext = ns.initialNamingContext(); InitialNameService ins = InitialNameServiceHelper.narrow( orb.resolve_initial_references( ORBConstants.INITIAL_NAME_SERVICE_NAME )); ins.bind( "NameService", rootContext, true); System.out.println(CorbaResourceUtil.getText("pnameserv.success")); // wait for invocations orb.run(); } catch (Exception ex) { ex.printStackTrace(System.err); } }