Results 1 to 7 of 7

Thread: Help with ICE Client-Server

  1. #1
    yeranarraila is offline Registered User
    Name: Tatiana Pereira
    Organization: Universidade Federal de Santa Catarina
    Project: An app to transfer mobile agents
    Join Date
    Aug 2011
    Posts
    14

    Red face Help with ICE Client-Server

    Hi! I'm trying to program ICE Server-Client in JAVA. I need to, when client send a message to server, server send an other message to other server (client->serverA->serverB). To this, I need to know how serverA knows client message is arrived, to treat this and send to serverB another message. How can I do this?
    Hugs!

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    I'm not really sure what advice to give. There is no special technique to do what you want to do. You simply call serverB when serverA receives a message from the client. That's not much different from a non-distributed application where functionA calls functionB which calls functionC. What problems do you exactly have?

  3. #3
    yeranarraila is offline Registered User
    Name: Tatiana Pereira
    Organization: Universidade Federal de Santa Catarina
    Project: An app to transfer mobile agents
    Join Date
    Aug 2011
    Posts
    14

    Red face

    Hi!
    What I mean is: Has ICE a variable (e.g. a flag) when a message arrives this variable is setted, like an 'alarm', or I need to make a function for this? Because, if ServerA has 100 functions, and a message arrives randomly in these functions, all these functions need increment a variable or something else, understand? Sorry my bad english.
    Hugs



    Quote Originally Posted by marc View Post
    I'm not really sure what advice to give. There is no special technique to do what you want to do. You simply call serverB when serverA receives a message from the client. That's not much different from a non-distributed application where functionA calls functionB which calls functionC. What problems do you exactly have?

  4. #4
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    If there is common code to be executed in all server functions (such as incrementing a counter), then personally, I would simply call such common code in all these server functions.

    If you don't like repeating this code (it could be just a single function call), then you could use Dispatch Interceptors.

  5. #5
    yeranarraila is offline Registered User
    Name: Tatiana Pereira
    Organization: Universidade Federal de Santa Catarina
    Project: An app to transfer mobile agents
    Join Date
    Aug 2011
    Posts
    14
    Thx so much! And another question: ICE have an API specification, like JAVA? (Overview (Java 2 Platform SE 5.0)).
    Hugs!

  6. #6
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Our APIs are described in our Ice manual. For APIs that are defined in Slice, we also have a separate reference.

  7. #7
    yeranarraila is offline Registered User
    Name: Tatiana Pereira
    Organization: Universidade Federal de Santa Catarina
    Project: An app to transfer mobile agents
    Join Date
    Aug 2011
    Posts
    14
    Quote Originally Posted by marc View Post
    Our APIs are described in our Ice manual. For APIs that are defined in Slice, we also have a separate reference.
    Thx so much!!
    Hugs!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 8
    Last Post: 06-05-2011, 05:08 PM
  2. Replies: 2
    Last Post: 12-16-2007, 09:07 PM
  3. Replies: 6
    Last Post: 08-15-2007, 02:08 AM
  4. Replies: 3
    Last Post: 11-26-2004, 09:35 AM
  5. Ice Client server question?
    By frostzero in forum Help Center
    Replies: 2
    Last Post: 04-27-2004, 05:02 AM

Tags for this Thread

Posting Permissions

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