×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How a Client can choose between some servers (based in same interface)

How a Client can choose between some servers (based in same interface)

How a Client can choose between some servers (based in same interface)

(OP)
When I've got some objects implementations and one client, I do not know how my client can choose which server wants to use (of course when object implementations are based in same interface).
 
I think it might be managed using Naming Service, but I haven't figured out how it works. Also, I'd like to avoid the use of different names for the same interface.
 
Do you know a very simple way of doing this? Something like setting/asking object instance name, or managing different OSAGENT ports.
 
Thanks in advance.
 
Regards
 
Abel

RE: How a Client can choose between some servers (based in same interface)

(OP)
Hi Abel
I hope that I understood your problem
In COBRA, each object implementation must have one or many references. For that reason, in the naming service, there are binding associating object references to symbolic names. So, when you have multiple objects having the same interface, there are only bindings for the object references not for the interfaces. You said that you'd like to avoid the use of different names for the same interface. I don't think it may be possible (an operation is executed on an object not on an interface).
You can use configure the POA to specify the objectID (the last part of the object reference) of your objects. The objectID can contain for example the name of the object instance. The client can analyze the references of these objects to identify for example the name of the object's instance.
If you want to know additional information (how to specify the ORB port, how to identify in the server side the client who had invocated a method), I can help you.
Best regards

Mohamed221

RE: How a Client can choose between some servers (based in same interface)

(OP)
Hi Abel
I hope that I understood your problem
In COBRA, each object implementation must have one or many references. For that reason, in the naming service, there are binding associating object references to symbolic names. So, when you have multiple objects having the same interface, there are only bindings for the object references not for the interfaces. You said that you'd like to avoid the use of different names for the same interface. I don't think it may be possible (an operation is executed on an object not on an interface).
You can use configure the POA to specify the objectID (the last part of the object reference) of your objects. The objectID can contain for example the name of the object instance. The client can analyze the references of these objects to identify for example the name of the object's instance.
If you want to know additional information (how to specify the ORB port, how to identify in the server side the client who had invocated a method), I can help you.
Best regards

Mohamed221

RE: How a Client can choose between some servers (based in same interface)

Mohamed221, i am interested in a way to identify clients on the server side in corba.. i have been looking for a way to do it with interceptors but i havent found a way yet.. i would REALLY appreciate any help/suggestions you would have. much thanks

RE: How a Client can choose between some servers (based in same interface)

Hi,

Is it possible to run multiple instance of ORB in the same domain? My requirement is to have multiple instance of same orb in same domain, So that multiple clients can connects to individual instance. This is for testing purpose .. as multiple teams are working on testing and each team wants to have there own instance of corba server ... on same domain. If not, please let me know, if I create another domain and run the server in this domain ... means multiple servers, one fore each domain ... what is the impact on CPU processing and RAM.

Thanks and regards,
Mahesh

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close