jkrishnaworks
Programmer
Hi, Here is my problem:
I've got a CORBA IDL file from a third-party vendor that has interfaces that methods which I will be invoking them from a Delphi GUI client application.
So, I compiled the IDL file as the 'Client Application' using 'New/Other/Corba/Client Application' menu option in Delphi 7.0.
Using the CosNaming40 demo example as a model, I have coded a simple screen dialog to see if my client program can retrieve the objects from the server program which is running on the third-party machine, and then start calling the methods of the server objects.
In the sample dialog problem, all I have is one button which will try to bind and retrieve an object from the server side.
I ran the Delphi Corba client application with the command line arguments like the following on a machine where the server runs.
client -ORBInitRef NameService=iioploc://myserver:<port>/NameService
It shows the initial dialog box. When I click a button on the screen, which will try to get the object, it gives me a message "UNKNOWN".
This happens when the client program tries to get the root context using orb.ResolveInitalReferences('NameService').
BTW, the server machine does not have 'OSagent' running in the background. Is OSAgent mandatory for the Naming Service to work properly?
Could someone shed some light on this as what is happening here and how I do solve this problem?
Any help will be appreicated.
Thanks much,
JK
I've got a CORBA IDL file from a third-party vendor that has interfaces that methods which I will be invoking them from a Delphi GUI client application.
So, I compiled the IDL file as the 'Client Application' using 'New/Other/Corba/Client Application' menu option in Delphi 7.0.
Using the CosNaming40 demo example as a model, I have coded a simple screen dialog to see if my client program can retrieve the objects from the server program which is running on the third-party machine, and then start calling the methods of the server objects.
In the sample dialog problem, all I have is one button which will try to bind and retrieve an object from the server side.
I ran the Delphi Corba client application with the command line arguments like the following on a machine where the server runs.
client -ORBInitRef NameService=iioploc://myserver:<port>/NameService
It shows the initial dialog box. When I click a button on the screen, which will try to get the object, it gives me a message "UNKNOWN".
This happens when the client program tries to get the root context using orb.ResolveInitalReferences('NameService').
BTW, the server machine does not have 'OSagent' running in the background. Is OSAgent mandatory for the Naming Service to work properly?
Could someone shed some light on this as what is happening here and how I do solve this problem?
Any help will be appreicated.
Thanks much,
JK