Results 1 to 3 of 3

Thread: I have a problem.

  1. #1
    ouloba is offline Registered User
    Join Date
    Sep 2004
    Posts
    19

    I have a problem.

    ICE whether has a method to indentify which client invoke server interface, but not by client parameter.
    Last edited by ouloba; 11-18-2004 at 11:29 PM.

  2. #2
    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,

    your client can send additional information to the server by using
    the Context.
    I use this for sending user authentication from client to the server.

    code sample:



    Ice.Context _context = new Ice.Context();
    _context.Add( "username", user );

    proxy.DoSomthing( ...., _context );


    you can also assign the context to the proxy, so the proxy always uses
    th defined context:


    SomeProxyPrx proxy_with_context =
    SomeProxyPrx .uncheckedCast( proxy.ice_newContext( _context ) );



    I hope this helps!


    cu tom

  3. #3
    ouloba is offline Registered User
    Join Date
    Sep 2004
    Posts
    19

    Thanks!

    Thank for your directions

Thread Information

Users Browsing this Thread

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

Posting Permissions

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