Hi. Yes. I'm using trunk for testing now.
While the documentation refers to "-a address", the code in trunk uses just
"address". I've added "-a addressfile" to the local drain version to not waste
the time with shell escapes.
Seems like the todo file is right: xquery does not work right now. If you think
it should:
xml; {
node: {
x-bindings: [
{
exchange: xml,
queue: message_queue,
key: weather,
arguments: {
xquery: "let $w := ./weather; return $w/station =
'somewhere'"
}
}
]
}
}
Is the address string correct, or am I missing something? Here's the drain
output:
Traceback (most recent call last):
File "./drain", line 93, in <module>
rcv = ssn.receiver(addr)
File "<string>", line 6, in receiver
File "/usr/lib/python2.5/site-packages/qpid/messaging/endpoints.py", line
571, in receiver
receiver._ewait(lambda: receiver.linked)
File "/usr/lib/python2.5/site-packages/qpid/messaging/endpoints.py", line
881, in _ewait
result = self.session._ewait(lambda: self.error or predicate(), timeout)
File "/usr/lib/python2.5/site-packages/qpid/messaging/endpoints.py", line
528, in _ewait
self.check_error()
File "/usr/lib/python2.5/site-packages/qpid/messaging/endpoints.py", line
517, in check_error
raise self.error
qpid.messaging.exceptions.ServerError: internal-error: Could not parse xquery:
(qpid/xml/XmlExchange.cpp:118)(541)
Cheers,
Cajus
Am 26.04.2010 um 09:49 schrieb Gordon Sim:
> Note that the info in the docs relates to the latest code from trunk. The api
> (and particularly the address options) was still in flux when 0.6 was
> released, so there have been some changes since then.
>
> On 04/26/2010 07:33 AM, Cajus Pollmeier wrote:
>> Thanks Jonathan,
>>
>> reading now... Guess it will help a lot ;-)
>>
>> Cheers,
>> Cajus
>>
>> Am 25.04.2010 um 21:26 schrieb Jonathan Robie:
>>
>>> On 04/22/2010 09:31 AM, Cajus Pollmeier wrote:
>>>>
>>>> just waited for 0.6 to pop up and tried to do something with the new API.
>>>> Is there some documentation for it and it's usage intention?
>>>>
>>>> Reading the code examples (examples/api) and the (rare) documentation for
>>>> the API itself, I'm wondering where queues and exchanges have gone. How
>>>> would i.e. the xml example look like using the new API - if possible?
>>>>
>>>
>>> See if this helps:
>>>
>>> http://people.apache.org/~jonathan/High-Level-API.html,
>>> http://people.apache.org/~jonathan/High-Level-API.pdf
>>>
>>> This will show up in our documentation in some revised form.
>>>
>>> Jonathan
>>>
>>> ---------------------------------------------------------------------
>>> Apache Qpid - AMQP Messaging Implementation
>>> Project: http://qpid.apache.org
>>> Use/Interact: mailto:[email protected]
>>>
>>
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project: http://qpid.apache.org
>> Use/Interact: mailto:[email protected]
>>
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:[email protected]
>
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]