Re: Getting BindException on client side after restart of broker

2008-06-13 Thread Rob Davies
I couldn't actually read the attached file - can you attach again without the formatting ? On 13 Jun 2008, at 22:30, drjava wrote: I am (still) in the process of testing a JmsMessenger class called JmsLogMessenger. One of my test cases scenario is as follows: * start the JMS broker (Active

Re: Examples do not work

2008-06-13 Thread Rob Davies
On 14 Jun 2008, at 00:17, grndvl1 wrote: To showcase the ActiveMQ possibilities the demos should work. They don't... I just got the latest version and wow does the demos blow. Can someone please update these for something with a little more flash and that actually work? The Chat demo

Re: JMS Threading Restriction

2008-06-13 Thread Rob Davies
On 14 Jun 2008, at 01:50, Joshua Smith wrote: All- I'm reading a number of references on JMS written some time between 2001 and now. The challenge that comes with that is knowing which things are still true today and which things were describing the state of affairs at that time. I found

JMS Threading Restriction

2008-06-13 Thread Joshua Smith
All- I'm reading a number of references on JMS written some time between 2001 and now. The challenge that comes with that is knowing which things are still true today and which things were describing the state of affairs at that time. I found the following paragraph in the O'reilly Java Message Se

Re: having problem with durable subscription

2008-06-13 Thread eaglepointe
I was using 'PERSISTENT' mode on publisher side, which causes the dead loop of 'SHUTDOWN message not acked --> redelivery of SHUTDOWN message upon subscriber start'. eaglepointe wrote: > > Yes, I'm running 5.1.0 and using default activemq.xml. I've found out the > cause! It is a bug subscriber

Re: having problem with durable subscription

2008-06-13 Thread eaglepointe
Yes, I'm running 5.1.0 and using default activemq.xml. I've found out the cause! It is a bug subscriber code, it closes the connection in 'onMessage' upon receiving 'SHUTDOWN' message while using 'session.AUTO_ACKNOWLEDGE', so 'SHUTDOWN' message never gets acknowledged, which results in everybody

Examples do not work

2008-06-13 Thread grndvl1
To showcase the ActiveMQ possibilities the demos should work. They don't... I just got the latest version and wow does the demos blow. Can someone please update these for something with a little more flash and that actually work? The Chat demo doesn't run, the send / receive doesn't work. The

Getting BindException on client side after restart of broker

2008-06-13 Thread drjava
I am (still) in the process of testing a JmsMessenger class called JmsLogMessenger. One of my test cases scenario is as follows: * start the JMS broker (Active Mq 5.1.0, embedded) * start a thread that sends messages at a given interval. * after a while (n seconds) shut the broker down * after an

Re: having problem with durable subscription

2008-06-13 Thread Dave Stanley
Not that it helps much, I tried it with a 5.x release and your code works fine. I see the subscription is durable across consumer and broker restarts. Have you modified your activemq.xml, are you running with 5.1.0? /Dave On Fri, Jun 13, 2008 at 1:05 PM, eaglepointe <[EMAIL PROTECTED]> wrote: > >

Re: having problem with durable subscription

2008-06-13 Thread eaglepointe
Forgot to mention that I also restarted message broker before start durable subscriber again. eaglepointe wrote: > > Ok, here is what I did, > > 1) start message broker > 2) start a durable subscriber which subscribes "topictest.messages" as the > attached code > 3) start publisher, which send

Re: having problem with durable subscription

2008-06-13 Thread eaglepointe
Ok, here is what I did, 1) start message broker 2) start a durable subscriber which subscribes "topictest.messages" as the attached code 3) start publisher, which sends some messages to "topictest.messages" in 'persistent' mode, and the subscriber receives the messages 4) stop the subscriber and

Re: having problem with durable subscription

2008-06-13 Thread Dave Stanley
Your not running this from within a thread by any chance? I don't believe connection.start() is going to block, so try and create the connection outside the thread and pass it in by reference to the thread instance. HTH /Dave On Thu, Jun 12, 2008 at 10:30 PM, eaglepointe <[EMAIL PROTECTED]> wrot

Re: persistent messages for durable subscribers are not purged from disc

2008-06-13 Thread Duro
It looks that there is a problem in activemq journal wich is used by default amqPersistenceAdapter. I have tested this also on amq 4.1.1 journaledJDBC adapter with same bug. When jdbcPersistenceAdapter with 4.1.1(non-journal) or kahaPersistenceAdapter with 5.1 are used with 2 durable topic subscri