You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by fadams <fr...@blueyonder.co.uk> on 2011/07/21 15:59:32 UTC

QMF2 _agent_locate_response

Hello,
I've successfully sent a QMF2 _agent_locate_request and got a
_agent_locate_response back, but I'm now wondering what use it is....

So is the broker agent the only QMF2 agent running by default? I get

qmf.opcode = _agent_locate_response
qmf.agent = apache.org:qpidd:04cb2a36-ccaa-4762-9e9a-56329c267085

_instance = 04cb2a36-ccaa-4762-9e9a-56329c267085
_name = apache.org:qpidd:04cb2a36-ccaa-4762-9e9a-56329c267085
_product = qpidd
_vendor = apache.org


I've been trying to write a "getAgents()" method for a Java QMF Console
implementation, but only having one Agent makes it hard to test the case for
multiple results. Any ideas how to kick of additional agents easily without
having to write lots of code so I can try testing this???

Also how does the agent relate to the endpoint address? I've been talking to
the broker via "qmf.default.direct/broker" and I guess that I thought that
this in some way related to the broker agent so I'd assumed that if there
were other agents available I'd be able to retrieve their endpoint addresses
and talk to them.

I've clearly missed something about all this but the document at
https://cwiki.apache.org/qpid/qmfv2-api-proposal.html does rather imply that
"qmf.default.direct/broker" is the broker agent's address.

I'd appreciate any pointers
Fraser








--
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/QMF2-agent-locate-response-tp6606846p6606846.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: QMF2 _agent_locate_response

Posted by Ken Giusti <kg...@redhat.com>.
> Hello,
> I've successfully sent a QMF2 _agent_locate_request and got a
> _agent_locate_response back, but I'm now wondering what use it is....
> 
> So is the broker agent the only QMF2 agent running by default? I get
> 
> qmf.opcode = _agent_locate_response
> qmf.agent = apache.org:qpidd:04cb2a36-ccaa-4762-9e9a-56329c267085
> 
> _instance = 04cb2a36-ccaa-4762-9e9a-56329c267085
> _name = apache.org:qpidd:04cb2a36-ccaa-4762-9e9a-56329c267085
> _product = qpidd
> _vendor = apache.org
> 
> 
> I've been trying to write a "getAgents()" method for a Java QMF
> Console
> implementation, but only having one Agent makes it hard to test the
> case for
> multiple results. Any ideas how to kick of additional agents easily
> without
> having to write lots of code so I can try testing this???
> 

You can use the example C++ QMF agent from the bindings directory.  See:

qpid/cpp/bindings/qmf2/examples/cpp

in the SVN repo.


> Also how does the agent relate to the endpoint address? I've been
> talking to
> the broker via "qmf.default.direct/broker" and I guess that I thought
> that
> this in some way related to the broker agent so I'd assumed that if
> there
> were other agents available I'd be able to retrieve their endpoint
> addresses
> and talk to them.
> 


The agent will create a queue bound to qmf.default.direct, but it will use it's "vendor:product:instance" name (instead of "broker").  

For example, if you look at that example agent source code, it sets it's vendor and product names:

    session.setVendor("profitron.com");
    session.setProduct("gizmo");

since the instance is not set (it's optional), a UUID is generated.

On my system, when I run the example agent it creates an endpoint address:
 qmf.default.direct/profitron.com:gizmo:d2609b5d-b107-43f0-bc72-ed87b29082f4


> I've clearly missed something about all this but the document at
> https://cwiki.apache.org/qpid/qmfv2-api-proposal.html does rather
> imply that
> "qmf.default.direct/broker" is the broker agent's address.
> 
> I'd appreciate any pointers
> Fraser
> 
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context:
> http://apache-qpid-users.2158936.n2.nabble.com/QMF2-agent-locate-response-tp6606846p6606846.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org