Orbix

  Home  Middleware  Orbix


“Orbix frequently Asked Questions in various Orbix job Interviews by interviewer. Get preparation of Orbix job interview”



36 Orbix Questions And Answers

22⟩ Does interceptor capture SSL handshaking errors?

It is not possible to capture SSL handshaking errors programatically in Orbix as this is handled by the SSL toolkit and will fail before the connection is established and Orbix begins to pass the request through the interceptors in the binding list.

 193 views

23⟩ What soft_limit and hard_limit configuration settings apply for each Orbix process or for a sum of Orbix processes running in an Orbix domain?

These settings apply to each Orbix process for which these settings have been configured and not to the sum of Orbix processes running in an Orbix domain.

If these settings have been configured in the global configuration scope then these settings will apply to each process started in your Orbix domain.

 213 views

24⟩ Does server migration to new physical IP address also impact on Orbix?

By default IORs will contain the hostname of a machine. Using such an IOR will succeed without any problems since a hostname lookup will return the new IP address.

Ensure IORs of the CFR, Locator, etc. contain hostnames rather then IP addresses. Use the iordump tool shipped with Orbix in order to inspect the hostname/port contained in the IOR.

 206 views

27⟩ How we can access to CORBA objects in Orbix?

Clients can locate CORBA objects through the OrbixNames, which is Orbix's implementation of the CORBA Naming Service.

"OrbixNames allows you to set up groups of objects that can provide particular services to a client. When a client requests an object from a group, OrbixNames selects an object using a random or a round-robin load-balancing algorithm. You choose the algorithm associated with each group".

 195 views

28⟩ How you can access to CORBA objects in Orbix?

Clients can locate CORBA objects through the OrbixNames, which is Orbix's implementation of the CORBA Naming Service.

"OrbixNames allows you to set up groups of objects that can provide particular services to a client. When a client requests an object from a group, OrbixNames selects an object using a random or a round-robin load-balancing algorithm. You choose the algorithm associated with each group".

 212 views

29⟩ How you can access to Cobra objects in Orbix?

Clients can locate CORBA objects through the OrbixNames, which is Orbix's implementation of the CORBA Naming Service.

"OrbixNames allows you to set up groups of objects that can provide particular services to a client. When a client requests an object from a group, OrbixNames selects an object using a random or a round-robin load-balancing algorithm. You choose the algorithm associated with each group".

 204 views

30⟩ How to set the ORB properties?

The ORB properties can be set in one of the following ways:

★ Using the iona.properties file

★ Using Java interpreter arguments

 200 views

31⟩ What do you recommended for clients using the JDK ORB?

As SUN's ORB runtime cannot be used with Orbix applications, configure the JDK to use the Orbix ORB runtime instead by setting system properties org.omg.CORBA.ORBClass and org.omg.CORBA.ORBSingletonClass to the appropriate values.

 210 views

33⟩ How you can retrieve the local IP address on client side within an interceptor?

OAccessing the local address on the client-side, e.g. in an interceptor can be achieved by using the following code:

CORBA::Object_var obj = orb->resolve_initial_references("IT_IPTransport");

if (CORBA::is_nil(obj))

{

self_addr = (const char*) 0;

return;

}

IT_ATLI2_IP::IPTransport_ptr ip_transport = IT_ATLI2_IP::IPTransport::_narrow(obj);

if (CORBA::is_nil(ip_transport))

{

self_addr = (const char*) 0;

return;

}

CORBA::String_var hostname = ip_transport->local_node_name();

IT_ATLI2_IP::IPAddressSeq_var ip_addresses =

ip_transport->name_to_addresses(

hostname,

0,

IT_ATLI2_IP::PROTOCOL_TCP,

IT_UtcT::never()

);

IT_ATLI2_IP::IPAddress_var ip_address = ip_addresses[0];

self_addr = ip_address->node_literal();

 211 views

34⟩ How to change the port of the Orbix Notification Service?

Yes, the port of the Orbix Notification service can be changed easily during the Orbix domain deployment process. Running itconfigure in expert mode allows you to change the IIOP port of the Orbix Notification Service. For further information please see the chapter "Creating a Domain in Expert Mode" in the Orbix Deployment Guide and the chapter "Managing the Notification Service" in the Enterprise Messaging Guide.

 214 views

35⟩ Are Orbix 6 libraries thread safe?

Orbix 5 and Orbix 6 is designed to write multi-threaded (and single threaded) application from the ground up. However, the following describes in more details about Orbix thread safety:

All Orbix library public APIs are thread safe.

Per CORBA specification, add_ref/remove_ref operations in the idl generated code is thread safe.

Regarding the rest of the generated code, Orbix IDL -> C++ code generator generates mappings for user-defined IDL types, as well as client-side proxy invocation code (-base switch) and server-side servant dispatch code (-poa switch). The client-side invocation code and server-side dispatch code are thread-safe. The mappings generated for user-defined IDL types are not thread safe for concurrent modification but are thread-safe for concurrent reads.

 192 views

36⟩ How you dump the Orbix configuration?

To get all the Orbix configuration for a domain, run the following command:

itadmin config dump

This will work in both CFR and file based domains.

The output will look something like:

★ plugins:it_arm_interceptors:shlib_name = "it_arm_interceptors"

★ plugins:itrp:shlib_name = "it_itrp"

★ plugins:itrp:live_time = "2"

★ plugins:it_mbean_monitoring:shlib_name = "it_mbean_monitoring"

★ plugins:it_mbean_monitoring:ClassName = "com.iona.management.logging.mbean_monitoring.MBeanMonitoringPlugIn"

★ plugins:basic_codeset:shlib_name = "it_basic_codeset"

★ plugins:basic_codeset:ClassName = "com.iona.corba.codeset.BasicCodeSetPlugIn"

★ plugins:iiop_tls:ClassName = "com.iona.corba.iiop.tls.IIOPTLSPlugIn"

★ plugins:iiop_tls:shlib_name = "it_iiop_tls"

 216 views