Re: having problem with durable subscription

2008-06-13 Thread eaglepointe
nection.setClientID("myClient"); >>> > session = connection.createSession(false, >>> > Session.AUTO_ACKNOWLEDGE); >>> > topic = session.createTopic("topictest.messages"); >>> > control = session.createTopic("t

Re: having problem with durable subscription

2008-06-13 Thread eaglepointe
>> > >> > TopicSubscriber consumer = >> > session.createDurableSubscriber(topic,"myDurable1"); >> > //MessageConsumer consumer = session.createConsumer(topic); >> > consumer.setMessage

Re: having problem with durable subscription

2008-06-13 Thread Dave Stanley
producer = session.createProducer(control); > > > > System.out.println("Waiting for messages..."); > > connection.start(); > > } > > > ----

Re: having problem with durable subscription

2008-06-13 Thread eaglepointe
TcpTransport.java:196) >>> at >>> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:183) >>>at java.lang.Thread.run(Thread.java:619) >>> >>> client side: >>> >>> Exception in thread "ActiveMQ Session Task&qu

Re: having problem with durable subscription

2008-06-13 Thread eaglepointe
t; Exception in thread "ActiveMQ Session Task" >> java.util.concurrent.RejectedExecutionException >>at >> >> java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Unknown >> Source) >>at java.util.concurrent.ThreadPoolExecutor.rej

Re: having problem with durable subscription

2008-06-13 Thread Dave Stanley
ROTECTED]> wrote: > > Hi, > > I'm new to ActiveMQ and having problem with durable subscription, following > code based on example code, > > === > public void run() throws JMSException { >

having problem with durable subscription

2008-06-12 Thread eaglepointe
Hi, I'm new to ActiveMQ and having problem with durable subscription, following code based on example code, === public void run() throws JMSException { ActiveMQConnectionFactory factory = new ActiveMQConnectionFa