Hi

I am writing an application that needs to talk to a number of agents
(say 20+).

This Console needs to both receive events and make method calls to the
agent (I am doing it using the async API).

I had 2 ideas on how to do this:

1) create a ConsoleSession per agent and use setAgentFilter() or
   subscribe() to restrict the events to the ones I want.

   - What is the overhead of creating ConsoleSessions?
   - Should I use setAgentFilter() or subscribe()? - why would I use
     one over the other?
   - What is the format of the filter? the same as query() - s-expression
   - What can I filter on? class/properties/...

2) create only one ConsoleSession and somehow figure out where the
   events have come from.

   - Is there an efficient way of determining where an event has come
     from? (I don't have control of the contents of the event)
   - what is the scope of the corralation-id (returned from callMethodAsync)
     session or agent?


Would you recommend one way over the other - any other suggestions?

Thanks
Angus Salkeld


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to