Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is the TAO Naming Service interoperable with the JDK 1.4 beta 3 ORB?

0
Posted

Is the TAO Naming Service interoperable with the JDK 1.4 beta 3 ORB?

0

JDK 1.4 supports Interoperable Object References (IORs). To use the JDK 1.

0

JDK 1.4 supports Interoperable Object References (IORs). To use the JDK 1.4 ORB with the TAO Naming Service server: Start TAO Naming Service server: $ $TAO_ROOT/orbsvcs/Naming_Service/Naming_Service -ORBListenEndpoints iiop://host:port Then, run the JDK 1.4 client as follows to use the TAO Naming Service: $ java MessengerClient \ -ORBInitRef NameService=corbaloc:iiop:host:port/NameService Here is a sample Java client: public class MessengerClient { public static void main( String[] args ) { try { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, null); // resolve the naming service org.omg.CORBA.Object obj = orb.resolve_initial_references(“NameService”); NamingContext rootContext = NamingContextHelper.narrow( obj ); // create sample name(sever binding) NameComponent[] name = { new NameComponent( “example”, “” ), new NameComponent( “Messenger”, “” ) }; // resolve the server reference obj = rootContext.resolve(name); Messenger msgr = MessengerHelper.narrow(obj); ………….. …….

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.