Results 1 to 7 of 7

Thread: Adding ProxyToString to ObjectPrx

  1. #1
    DeepDiver's Avatar
    DeepDiver is offline Registered User
    Name: Thomas Mueller
    Organization: Freelance Software Developer
    Project: Project depend on Customers
    Join Date
    Nov 2004
    Location
    Munich, Bavaria, Germany
    Posts
    105

    Adding ProxyToString to ObjectPrx

    hi,

    in some cases it would make live a little bit easier if the operation
    proxyToString would be part of the proxy object.

    currently we need to pass the proxy and the communicator instances to
    the class were we want to call the operation.

    or we access the communicator via:
    p.ice_connection().getAdapter().getCommunicator(). proxyToString( p )

    but this is bit messy and only works on server side.

    let me know if there is any other way to achive this.

    thx tom
    Last edited by DeepDiver; 07-18-2005 at 05:46 AM. Reason: typing error

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    If this is happening as part of an operation implementation, you can get at the communicator via the Ice::Current parameter:
    Code:
    current->adapter->getCommunicator
    Would that fix your problem?

    Cheers,

    Michi.

  3. #3
    DeepDiver's Avatar
    DeepDiver is offline Registered User
    Name: Thomas Mueller
    Organization: Freelance Software Developer
    Project: Project depend on Customers
    Join Date
    Nov 2004
    Location
    Munich, Bavaria, Germany
    Posts
    105
    hi michi,

    thanks for your reply!

    as always my writings contain too little information - sorry.

    i was talking about the client side.

    thx tom

  4. #4
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    I'll discuss this with me collegues to see whether there is something we can improve.

    Cheers,

    Michi.

  5. #5
    mario is offline Registered User
    Join Date
    Dec 2004
    Posts
    24
    Hi, just a little note about this:

    In Python, I found very useful for debugging purposes write something like:

    proxy = self.communicator().stringToProxy("mec:...")
    print proxy

    For sure, it would be very well have something like that in C++

    Regards
    Mario

  6. #6
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    The next major release of Ice will provide an ice_toString() method on proxies. That way, you can stringify a proxy without having to have a communicator.

    Cheers,

    Michi.

  7. #7
    DeepDiver's Avatar
    DeepDiver is offline Registered User
    Name: Thomas Mueller
    Organization: Freelance Software Developer
    Project: Project depend on Customers
    Join Date
    Nov 2004
    Location
    Munich, Bavaria, Germany
    Posts
    105
    hi michi,

    thats really cool!

    thanks alot!

    cu tom

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Where is ObjectPrx defined in cpp
    By myrosia in forum Help Center
    Replies: 8
    Last Post: 10-16-2009, 06:21 PM
  2. IceRuby: Ice::ObjectPrx arguments bug?
    By ctennis in forum Bug Reports
    Replies: 4
    Last Post: 08-27-2007, 09:36 AM
  3. using Ice::ObjectPrx as a slice datatype
    By gumshoe in forum Help Center
    Replies: 1
    Last Post: 01-29-2007, 05:35 PM
  4. Can ObjectPrx.toString() more clever
    By rc_hz in forum Help Center
    Replies: 8
    Last Post: 11-28-2006, 09:08 AM
  5. Question of forwarding ObjectPrx in Servant Locator
    By kongchoy in forum Help Center
    Replies: 6
    Last Post: 02-17-2006, 07:26 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
  •