English 中文(简体)
Java s CORBA ORB and connecting to a 3rd party Naming Service
原标题:

The Following is from JavaTM IDL FAQ:

How do I connect to a 3rd-party Naming Service from Sun s ORB?

The recommended way is to use the

Interoperable Naming Service (INS)

, if this option is supported by the 3rd-party Naming Service.

To use the Sun ORB with another vendor s Naming Service,

  • Start the 3rd-party name server on Host and Port.
  • Pass the following argument to ORB.init():

    -ORBInitRef NameService=corbaloc:iiop:1.2@:/NameService
    

    When you do orb.resolve_initial_references( "NameService" ), you should be able to connect to 3rd-party Name Service. If you are still not able to connect, try these troubleshooting hints:

  • Verify that the 3rd-party Name Service supports INS.

  • Verify that the host and port information is accurate.

  • Verify that the 3rd-party Name Service has been started successfully.

  • Verify that the 3rd-party Name Service supports GIOP 1.2. If not, refer to the Name Server s documentation for the correct the GIOP version, and modify the corbaloc: URL accordingly.

  • Determine if the 3rd-party Name Service has a different object key it uses to contact NameService. If so, refer to the Name Server s documentation.

I am new to CORBA and I would like to know whether or not there is another way to connect to a 3rd party Naming Service which might not be so "recommended". After all how am I to guess if, as yet unknown, 3rd party naming service supports INS (Interoperable Naming Service). But then again, I did mention that I am new to these things...

最佳回答

It s been more than 10 happy years since CORBA was last inflicted on me, but I still remember a few things.

The "not recommended" way is to use a IOR (Interoperable Naming Reference), which is CORBA s equivalent of a URL. The IOR is essentially a string representation of the location of a live CORBA object. A client can convert the IOR into a handle on that object.

Normally, the IOR itself points to a CoS Naming Service, which is a registry of other objects, but it s lust as valid to have an IOR that points directly at a remote object.

See this ancient article (from 1999, the last time anyone cared about CORBA) to see how to deal with IORs.

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签