Results 1 to 2 of 2

Thread: Service with multiples adapters

  1. #1
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588

    Service with multiples adapters

    Hi all

    In a icebox service descriptor can i put multiples adapters, as childs of the service node?

    i want one of then be a nember of a replica group and the other not. This is because i want to replicate certain objects in the service and not all.


    when use multipes adapters where points current.apdater, I think this must point the adapter in where the servant that dispach the request is registered, but not sure about this. If this is correct how my servants can access the others adapters of the service? i need a extra parameter for this or Ice Run time provide a way for access then.

    thanks in advance

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    Yes, you can specify multiple adapters in the service descriptor. The "current.adapter" attribute is set to the adapter where your servant is registered. There's no way to retrieve adapters through the communicator so your servant will need to have references on these adapters.

    An alternative to using multiple adapters would be to use a single adapter and depending on the object either create a proxy containing the replica group as the adapter id or a proxy containing the adapter id (the later is possible with the ObjectAdapter::createIndirectProxy() method).

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Creating many adapters in WindowsXP (Ice 3.3.0)
    By mcastro in forum Bug Reports
    Replies: 1
    Last Post: 03-02-2010, 02:58 PM
  2. Replies: 10
    Last Post: 08-22-2008, 11:05 AM
  3. icebox and adapters
    By MikeGerdes in forum Help Center
    Replies: 6
    Last Post: 03-06-2007, 04:00 AM
  4. Multiple Adapters
    By Jennie in forum Help Center
    Replies: 1
    Last Post: 01-25-2005, 05:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •