Network of brokers - java.net.ConnectException: Connection refused

2008-09-08 Thread mjoshi
Hi, I am new to activemq. I am trying to setup a message system with a network of brokers style configuration as given in the documentation. I have brokers running on 2 hosts and I have added network connectors in both directions. However, I keep getting this exception in the logs for only one of

when building a broker in java, having issues with ManagementContext and NetworkConnector

2008-09-08 Thread Thomas R. Corbin
It seems like I have to create the NetworkConnector first or it messes up the ManagementContext. But if I do create the NetworkConnector first, it *seems* like it creates a ManagementContext on it's own and it uses the default port (1099). But I already have another broker on the machine usin

Can't delete a queue

2008-09-08 Thread Vadim Chekan
Hi all, If I delete a queue, it is back after I restart ActiveMQ. I tried deleting from admin web console and from jconsole. The same result Activemq-5.1.0 Pesistence configuration is from the standard config file: Any ideas what could be wrong? -- >From RFC 2631:

Re: durable subscriber support in stomp.rb

2008-09-08 Thread Bruce Snyder
On Mon, Sep 8, 2008 at 3:37 PM, Eugene79 <[EMAIL PROTECTED]> wrote: > > Hi all, > > I added support for durable subscribers to stomp.rb. That's great! > I am trying to submit a > patch. The project page (http://rubyforge.org/projects/stomp/) doesn't seem > to be maintained. I emailed the guy who

durable subscriber support in stomp.rb

2008-09-08 Thread Eugene79
Hi all, I added support for durable subscribers to stomp.rb. I am trying to submit a patch. The project page (http://rubyforge.org/projects/stomp/) doesn't seem to be maintained. I emailed the guy who is listed as the project admin (Brian McCallister) and he says he doesn't maintain it anymore. W

Cannot unsubscribe the durable subscriber because of InvalidClientIDException

2008-09-08 Thread janylj
Hello, I have the following test on the durable subscriber using ActiveMQ 5.1, which creating a durable subscriber and then unsubscribe it. Then create another durable subscriber using the same ClientID and durable subscription name as the the first one and unsubscribe it. startSubscriberSeparat

Re: Slow performance of NMS api compared to Java

2008-09-08 Thread Jim Gomes
Hi Stefan, The point of Java having this setting on by default is very strong. Also, the point that both sides needs to be turned on in order for it to be effective makes a lot of sense, and also agrees with my observed test results. I made the change in the code to turn this on by default based

Re: ActiveMQ+NMS+TCP Connection Problems

2008-09-08 Thread Jim Gomes
Hi Bryan, I can't answer all of your questions, yet. But I can answer some of them, anyway. 1. As far as the ResponseTimeout property goes, that is used for network timeouts. It's not a JMS timeout value like TimeToLive. The ResponseTimeout is used by the client to wait for a response from the

Re: Windows print server using activemq

2008-09-08 Thread whitewaterbug
Thanks for the reply. Here are my answers to your questions: 1. MULE - I use MULE as the ESB...so I was thinking Camel would not be needed. I was hoping to just run ActiveMQ as a windows service. I want to use ActiveMQ and Mule together...not as replacements. 2. I will look at Java Printing

Re: Windows print server using activemq

2008-09-08 Thread James Strachan
2008/9/8 James Strachan <[EMAIL PROTECTED]>: > 2008/9/8 whitewaterbug <[EMAIL PROTECTED]>: >> >> I was hoping that someone had already written some code or an existing >> project I could leverage. >> Also, my centralized app uses MULE so I was hoping not to just have activemq >> running as a window

Re: Windows print server using activemq

2008-09-08 Thread James Strachan
2008/9/8 whitewaterbug <[EMAIL PROTECTED]>: > > I was hoping that someone had already written some code or an existing > project I could leverage. > Also, my centralized app uses MULE so I was hoping not to just have activemq > running as a windows service. I don't understand how the use or not of

"ERROR RecoveryListenerAdapter" happens on a durable subscriber

2008-09-08 Thread janylj
Hello, I am writing a small unit test of durable subscriber on ActiveMQ 5.1. I found this error is happening consistently the second time I ran this test case. ERROR RecoveryListenerAdapter- Message id ID: could not be recovered from the data store - already dispatched The program I

Re: Windows print server using activemq

2008-09-08 Thread whitewaterbug
I was hoping that someone had already written some code or an existing project I could leverage. Also, my centralized app uses MULE so I was hoping not to just have activemq running as a windows service. My idea was: 1. Use ActiveMQ as a brainless agent that waits for a print job 2. When a pri

JMS for data replication

2008-09-08 Thread whitewaterbug
Is there a robust way (e.g. no data loss) to perform heterogeneous database replication using JMS? I was hoping their might be a way to do this with ActiveMQ without custom code...just some configuration settings or the like. -- View this message in context: http://www.nabble.com/JMS-for-data

Re: Question: Object properties on DLQ (adding exception to message for DLQ)

2008-09-08 Thread James Strachan
2008/9/8 Demian Mrakovich <[EMAIL PROTECTED]>: > > So what you are practically saying is that should I drop the built-in > retry/DLQ mechanism and implement my own? No - just don't expect to mutate the messages as they are retried. The broker will already keep the JMSRetry and JMSXDeliveryCount he

Re: Windows print server using activemq

2008-09-08 Thread James Strachan
2008/9/8 whitewaterbug <[EMAIL PROTECTED]>: > > Has anyone got any pointers for a project or ideas on how to interface > Activemq with a windows print queue so that a message that activemq pulls > down will be sent to be printed? It should be pretty easy to write a Windows Printer component for Ca

REST & MapMessage

2008-09-08 Thread yesnid
Hello All, I have a consumer that is receiving messages via the rest interface, if I send a message with a body like: "FOO" it receives it fine. However when the body contains a Map from a MapMessage, all is not well. I noticed that from the admin screen I can browse the queue->message and valida

Multiple Consumers with REST

2008-09-08 Thread yesnid
Hello All, I am trying to have two consumers recieve messages from the same queue using the rest interface to the ActiveMQ Broker, and am having issues where only one of them can recieve messages at a time. The other consumer simply times out indicating there are no messages in the queue even tho

Windows print server using activemq

2008-09-08 Thread whitewaterbug
Has anyone got any pointers for a project or ideas on how to interface Activemq with a windows print queue so that a message that activemq pulls down will be sent to be printed? -- View this message in context: http://www.nabble.com/Windows-print-server-using-activemq-tp19374302p19374302.html

Re: starting activemq remotely

2008-09-08 Thread mindspin311
Nevermind. Using \& didn't work. I can't repeat it, so I must've thought it worked when activemq was already running. When activemq is running, it always returns fine w/o hanging up. -- View this message in context: http://www.nabble.com/starting-activemq-remotely-tp19372454p19374285.html Sent f

Re: starting activemq remotely

2008-09-08 Thread mindspin311
Tried this and it didn't work either.. mindspin311 wrote: > > I'm trying to start activemq remotely with ssh in ant. I can stop it fine. > > username="${deploy.username}" >failonerror=

Re: Question: Object properties on DLQ (adding exception to message for DLQ)

2008-09-08 Thread Demian Mrakovich
So what you are practically saying is that should I drop the built-in retry/DLQ mechanism and implement my own? Calling clearProperties() on the message makes the properties writable again, I can get the new property values on the retry, but the original values are back when received on the DLQ,

Re: REST: eternal HTTP status 204

2008-09-08 Thread Dejan Bosanac
Unfortunately no, the web client that do all the work is tied to a HTTP session. 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 yesnid wrote: > Hel

starting activemq remotely

2008-09-08 Thread mindspin311
I'm trying to start activemq remotely with ssh in ant. I can stop it fine. but when I try to start it, it always hangs up. I can never get it to run it in the background on the deploy host, and return from the task on the local machine. It seems I've tried every combination of nohup and using

Re: Question: Object properties on DLQ (adding exception to message for DLQ)

2008-09-08 Thread James Strachan
2008/9/8 Demian Mrakovich <[EMAIL PROTECTED]>: > > Thanks for reply! > > Not sure what you mean by create a new message. Rollback/retries are handled > by transactions. Creating a new message from the client can't be right...? > Can you please explain further? If you consume messages you can't mod

Re: Question: Object properties on DLQ (adding exception to message for DLQ)

2008-09-08 Thread Demian Mrakovich
Thanks for reply! Not sure what you mean by create a new message. Rollback/retries are handled by transactions. Creating a new message from the client can't be right...? Can you please explain further? My messages are ObjectMessages. My second attempt was to set a exception string on the payloa

Re: Question: Object properties on DLQ (adding exception to message for DLQ)

2008-09-08 Thread James Strachan
You typically don't edit messages; just create a new message and set whatever contents you want. FWIW in the JMS specifications, properties are meant to be primitive types, not complex objects - so using an ObjectMessage and setting the payload is typically more JMS compliant 2008/9/8 Demian Mrako

Question: Object properties on DLQ (adding exception to message for DLQ)

2008-09-08 Thread Demian Mrakovich
On ActiveMQ 4.1.1 I'm trying to add an exception to a failed message so that I can get the exception that caused it when it is received on my DLQ listener. I cannot add a string property since the message is read-only when it is received by the client. So I tried having the _producer_ create a