The server has multiple network interfaces. We want to use only one for communication. I am java developer and I don't know how Jacorb works. But we have one class in which there is selectProfile method which is called by Jacorb with profile list and ClientConnectionManager object as parameter. The problem is, as there are multiple interfaces on machine, Jacorb calls selectProfile method multiple times with different profiles. When it calls first time the connection is established as profile contains valid IP which my application use. But when selectProfile method is called second time, Jacorb gives invalid interface address and connection fails for that interfaces. So, is there any property for Jacorb so that it only creates profile for required network interface.
*** Bug 910 has been marked as a duplicate of this bug. ***
*** Bug 909 has been marked as a duplicate of this bug. ***
If you just want to use one host interface/port then look at OAIAddress/OAAddress as documented in the ProgrammingGuide and properties file.
If you want to use multiprofile IORs then this is a duplicate of 848 and am marking at as such.
*** This bug has been marked as a duplicate of bug 848 ***
(In reply to comment #3)
> If you just want to use one host interface/port then look at
> OAIAddress/OAAddress as documented in the ProgrammingGuide and properties file.
> If you want to use multiprofile IORs then this is a duplicate of 848 and am
> marking at as such.
> *** This bug has been marked as a duplicate of bug 848 ***
As per definition of select profile "Profile selectProfile(List _profiles, ClientConnectionManager ccm)", it should get list of profiles. But in my case it didn't get list of profile but jacorb call this method again and again for each profile. So, in my case when it calls first time connection is successful and for second time it fails to connect. so my question is why jacorb call selectProfile method again and again for each profile, is there any reason behind it?
Have you changed the value of jacorb.transport.client.selector ?
Have you made your own plugin?
The defaultprofileselector should just choose the first profile from the list and return that.
What is the IOR of your server?
Without further information it is difficult to help. Please supply the requested information and ideally a reproducible test case and reopen the ticket if still a problem.
Sorry for late response. Please see inline comments
1.Have you changed the value of jacorb.transport.client.selector ?"
- yes we have our own implementation of selector and this property is set to selector class name. And we have selectProfile(List _profiles, ClientConnectionManager ccm) method in this class. But this method get profiles one by one which also include wrong interface name.
2.What is the IOR of your server?
- currently I am not able to get IOR of server but I let you know once have it.
Please clarify what you are trying to do - for instance are you trying to connect to one specific profile in an IOR?
What ORB is the server using?
Can you supply the code to your selector? Can you supply a test case?
No response - closing for now.