|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
stomp durable subscriberHi there,
I'd like to have your advice regards durable subscribers and stomp. I did it a few weeks ago and it worked like a charm, I suppose I'm making some mistake (or bad assumption) now. I follow the following docs: http://stomp.codehaus.org/Stomp+JMS http://open.iona.com/docs/broker/5.1/connectivity_guide/BHIJBDJH.html The broker is running on localhost. ################# In my subscriber I do: CONNECT login: passcode: client-id:teotti ^@ CONNECTED session:teotti SUBSCRIBE destination:/topic/Customer durable-subscriber-name:teotti ^@ ################# In my producer I do: CONNECT login: passcode: ^@ CONNECTED session:ID:stewie.ppg.lan-65194-1221173748841-2:1 SEND destination:/topic/Customer receipt: Hello world! ^@ RECEIPT receipt-id: I get the message, but after I disconnect the subscriber and I reconnect (using the same client-id and durable-subscriber-name) I don't get the messages I've sent in the while. In jconsole I see the consumer in Subscription -> Non-Durable -> Topic -> Customer -> Teotti I am 100% sure it used to be in Durable because I had problem removing it. I am pretty sure I am either missing some attributes or I messed up activemq xml config. Have you got any advice for me? Thanks a lot, Enrico -- Enrico Teotti IT consultant, accessible web sites and web applications Sydney, NSW, Australia enrico.teotti@... mobile (IT) +393286590765 mobile (AU) +00610416748450 http://www.teotti.com |
|
|
Re: stomp durable subscriberHi,
try using activemq.subscriptionName:teotti instead of durable-subscriber-name:teotti Cheers -- Dejan Bosanac http://www.ttmsolutions.com - get a free ActiveMQ user guide ActiveMQ in Action - http://www.manning.com/snyder/ Scripting in Java - http://www.scriptinginjava.net Enrico Teotti wrote: > Hi there, > I'd like to have your advice regards durable subscribers and stomp. I > did it a few weeks ago and it worked like a charm, I suppose I'm > making some mistake (or bad assumption) now. > > I follow the following docs: > http://stomp.codehaus.org/Stomp+JMS > http://open.iona.com/docs/broker/5.1/connectivity_guide/BHIJBDJH.html > > The broker is running on localhost. > > ################# > In my subscriber I do: > > CONNECT > login: > passcode: > client-id:teotti > > ^@ > CONNECTED > session:teotti > > > SUBSCRIBE > destination:/topic/Customer > durable-subscriber-name:teotti > > ^@ > > > ################# > In my producer I do: > > CONNECT > login: > passcode: > > ^@ > CONNECTED > session:ID:stewie.ppg.lan-65194-1221173748841-2:1 > > > SEND > destination:/topic/Customer > receipt: > > Hello world! > > ^@ > RECEIPT > receipt-id: > > > I get the message, but after I disconnect the subscriber and I > reconnect (using the same client-id and durable-subscriber-name) I > don't get the messages I've sent in the while. > In jconsole I see the consumer in Subscription -> Non-Durable -> Topic > -> Customer -> Teotti > I am 100% sure it used to be in Durable because I had problem removing it. > > I am pretty sure I am either missing some attributes or I messed up > activemq xml config. Have you got any advice for me? > > Thanks a lot, > Enrico > > > |
|
|
Re: stomp durable subscriberI've tried:
CONNECT login: passcode: client-id:teotti ^@ CONNECTED session:teotti SUBSCRIBE destination:/topic/giacomo subscription-name:teotti didn't work so: ^@ UNSUBSCRIBE destination:/topic/giacomo ^@ SUBSCRIBE destination:/topic/giacomo subscriptionName:teotti ^@ but it's still marked as non durable in jconsole. How do you manage to make a subscription durable? Cheers, Enrico 2008/9/12 Dejan Bosanac <dejan.bosanac@...>: > Hi, > > try using > > activemq.subscriptionName:teotti > > instead of > > durable-subscriber-name:teotti > > Cheers > > -- > Dejan Bosanac > > > http://www.ttmsolutions.com - get a free ActiveMQ user guide > > ActiveMQ in Action - http://www.manning.com/snyder/ > Scripting in Java - http://www.scriptinginjava.net > > > > Enrico Teotti wrote: >> Hi there, >> I'd like to have your advice regards durable subscribers and stomp. I >> did it a few weeks ago and it worked like a charm, I suppose I'm >> making some mistake (or bad assumption) now. >> >> I follow the following docs: >> http://stomp.codehaus.org/Stomp+JMS >> http://open.iona.com/docs/broker/5.1/connectivity_guide/BHIJBDJH.html >> >> The broker is running on localhost. >> >> ################# >> In my subscriber I do: >> >> CONNECT >> login: >> passcode: >> client-id:teotti >> >> ^@ >> CONNECTED >> session:teotti >> >> >> SUBSCRIBE >> destination:/topic/Customer >> durable-subscriber-name:teotti >> >> ^@ >> >> >> ################# >> In my producer I do: >> >> CONNECT >> login: >> passcode: >> >> ^@ >> CONNECTED >> session:ID:stewie.ppg.lan-65194-1221173748841-2:1 >> >> >> SEND >> destination:/topic/Customer >> receipt: >> >> Hello world! >> >> ^@ >> RECEIPT >> receipt-id: >> >> >> I get the message, but after I disconnect the subscriber and I >> reconnect (using the same client-id and durable-subscriber-name) I >> don't get the messages I've sent in the while. >> In jconsole I see the consumer in Subscription -> Non-Durable -> Topic >> -> Customer -> Teotti >> I am 100% sure it used to be in Durable because I had problem removing it. >> >> I am pretty sure I am either missing some attributes or I messed up >> activemq xml config. Have you got any advice for me? >> >> Thanks a lot, >> Enrico >> >> >> > > > -- Enrico Teotti IT consultant, accessible web sites and web applications Sydney, NSW, Australia enrico.teotti@... mobile (IT) +393286590765 mobile (AU) +00610416748450 http://www.teotti.com |
|
|
Re: stomp durable subscriberhi,
my bad. I thought: activemq.subscriptionName: was meant to be hyphenated in to: subscription-name: using: SUBSCRIBE destination:/topic/whatever activemq.subscriptionName:teotti ack:auto creates a durable subscriber. I say again: it does work :-) By the way, is it just me or it's weird syntax? Cheers, Enrico 2008/9/15 Enrico Teotti <enrico.teotti@...>: > I've tried: > CONNECT > login: > passcode: > client-id:teotti > > ^@ > CONNECTED > session:teotti > > > SUBSCRIBE > destination:/topic/giacomo > subscription-name:teotti > > didn't work so: > > ^@ > UNSUBSCRIBE > destination:/topic/giacomo > > ^@ > SUBSCRIBE > destination:/topic/giacomo > subscriptionName:teotti > > ^@ > > but it's still marked as non durable in jconsole. > How do you manage to make a subscription durable? > Cheers, > Enrico > > 2008/9/12 Dejan Bosanac <dejan.bosanac@...>: >> Hi, >> >> try using >> >> activemq.subscriptionName:teotti >> >> instead of >> >> durable-subscriber-name:teotti >> >> Cheers >> >> -- >> Dejan Bosanac >> >> >> http://www.ttmsolutions.com - get a free ActiveMQ user guide >> >> ActiveMQ in Action - http://www.manning.com/snyder/ >> Scripting in Java - http://www.scriptinginjava.net >> >> >> >> Enrico Teotti wrote: >>> Hi there, >>> I'd like to have your advice regards durable subscribers and stomp. I >>> did it a few weeks ago and it worked like a charm, I suppose I'm >>> making some mistake (or bad assumption) now. >>> >>> I follow the following docs: >>> http://stomp.codehaus.org/Stomp+JMS >>> http://open.iona.com/docs/broker/5.1/connectivity_guide/BHIJBDJH.html >>> >>> The broker is running on localhost. >>> >>> ################# >>> In my subscriber I do: >>> >>> CONNECT >>> login: >>> passcode: >>> client-id:teotti >>> >>> ^@ >>> CONNECTED >>> session:teotti >>> >>> >>> SUBSCRIBE >>> destination:/topic/Customer >>> durable-subscriber-name:teotti >>> >>> ^@ >>> >>> >>> ################# >>> In my producer I do: >>> >>> CONNECT >>> login: >>> passcode: >>> >>> ^@ >>> CONNECTED >>> session:ID:stewie.ppg.lan-65194-1221173748841-2:1 >>> >>> >>> SEND >>> destination:/topic/Customer >>> receipt: >>> >>> Hello world! >>> >>> ^@ >>> RECEIPT >>> receipt-id: >>> >>> >>> I get the message, but after I disconnect the subscriber and I >>> reconnect (using the same client-id and durable-subscriber-name) I >>> don't get the messages I've sent in the while. >>> In jconsole I see the consumer in Subscription -> Non-Durable -> Topic >>> -> Customer -> Teotti >>> I am 100% sure it used to be in Durable because I had problem removing it. >>> >>> I am pretty sure I am either missing some attributes or I messed up >>> activemq xml config. Have you got any advice for me? >>> >>> Thanks a lot, >>> Enrico >>> >>> >>> >> >> >> > > > > -- > Enrico Teotti > IT consultant, accessible web sites and web applications > Sydney, NSW, Australia > enrico.teotti@... > mobile (IT) +393286590765 > mobile (AU) +00610416748450 > > http://www.teotti.com > -- Enrico Teotti IT consultant, accessible web sites and web applications Sydney, NSW, Australia enrico.teotti@... mobile (IT) +393286590765 mobile (AU) +00610416748450 http://www.teotti.com |
| Free embeddable forum powered by Nabble | Forum Help |