Hi Gary,

I've worked up a fix for Advisories via STOMP - the patch is attached
to <https://issues.apache.org/activemq/browse/AMQ-2098>.

It's a good start, but could probably do with a bit more work to clean
up the message formats - it uses XStream to serialize the
DataStructure object (and all the child objects).  This works ok in
most cases, but it a bit wierd in some - Destination being the
example.

{"ConsumerInfo": {
  "commandId": 4,
  "responseRequired": true,
  "consumerId": {
    "connectionId": "ID:pb-d-128-141-235-87.cern.ch-52535-1274794978077-4:1",
    "sessionId": 1,
    "value": 1
  },
  "destination": {
    "@class": "ActiveMQQueue",
    "string": "testConsumerAdvisory",
    "null": {}
  },
  "prefetchSize": 1000,
  "maximumPendingMessageLimit": 0,
  "browser": false,
  "dispatchAsync": true,
  "noLocal": false,
  "exclusive": false,
  "retroactive": false,
  "priority": 0,
  "optimizedAcknowledge": false,
  "noRangeAcks": false
}}

cheers,

James.

On 21 May 2010 13:33, Gary Tully <gary.tu...@gmail.com> wrote:
> lots of the information in the advisories is stored in properties and these
> properties are not automatically mapped into the stomp message so most of
> the information in the advisory is lost when it is consumed via stomp.
> It may be an easy enough fix if you are interested to have a go at a
> resolution.
>
> On 21 May 2010 11:01, Markus Schaber <m...@soloplan.de> wrote:
>
>>
>> Hi, Dejan,
>>
>>
>> Dejan Bosanac wrote:
>> >
>> > the most natural way would be to use advisory messages (
>> > http://activemq.apache.org/advisory-message.html), but this is not yet
>> > supported from Stomp (https://issues.apache.org/activemq/browse/AMQ-2098
>> ),
>> > so you'd need to use Java to process this kind of events.
>> >
>>
>> Just to double-check whether I understand this issue correctly: The
>> advisory
>> messages are genereated for clients connecting via Stomp, but it currently
>> is not possible to receive those mesages via Stomp?
>>
>> Thanks,
>> Markus
>> --
>> View this message in context:
>> http://old.nabble.com/Finding-out-when-client-is-offlin-tp28594744p28631844.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> http://blog.garytully.com
>
> Open Source Integration
> http://fusesource.com
>

Reply via email to