Re: How to get the consumer or producer's ip address?

2010-08-19 Thread Torbjorn Kristoffersen
On Thu, Aug 19, 2010 at 9:04 PM, Bruce Snyder wrote: > On Thu, Aug 19, 2010 at 12:42 AM, oliver2010 wrote: >> >> I create a MessageConsumer that listens on the advisory topic. >> >> Code: >> >> using System; >> using System.Collections.Generic; >> using System.Linq; >> using System.Text; >> using

Re: HTTP ERROR 503 in latest ActiveMQ 5.4.0

2010-08-19 Thread Torbjorn Kristoffersen
I did a clean install. I know I said upgraded in the original mail, but I meant as in deleting the old 5.3.2 and installing 5.4.0. This is on a development machine. On Thu, Aug 19, 2010 at 8:32 PM, Joe Niski wrote: > For what it's worth, the default jetty.xml is quite different in 5.4.0 than >

Re: How to get the consumer or producer's ip address?

2010-08-19 Thread Bruce Snyder
On Thu, Aug 19, 2010 at 12:42 AM, oliver2010 wrote: > > I create a MessageConsumer that listens on the advisory topic. > > Code: > > using System; > using System.Collections.Generic; > using System.Linq; > using System.Text; > using Apache.NMS; > using Apache.NMS.ActiveMQ; > using Apache.NMS.Activ

Re: How to insert from Java a new JMSproperty in header? setStringProperty() does not work

2010-08-19 Thread Bruce Snyder
On Thu, Aug 19, 2010 at 4:46 AM, BenXS wrote: > > I am trying to set from a Java bean a new (additional) Property in header. > Therefore I code (simplified) the following: > > > public void pass(Message mess) { >   ... >   mess.setPropertiesModifiable(true); >   mess.setStringProperty("newprop", "

Re: HTTP ERROR 503 in latest ActiveMQ 5.4.0

2010-08-19 Thread Joe Niski
For what it's worth, the default jetty.xml is quite different in 5.4.0 than in 5.3.x. My old (5.3.0) jetty config didn't work at all with 5.4.0, but it was easy to modify the default to do what i wanted. Joe Niski IS Development | NWEA PHONE 503.212.3382 | FAX 503.639.7873 NWEA.ORG<3D%22htt

HTTP ERROR 503 in latest ActiveMQ 5.4.0

2010-08-19 Thread Torbjorn Kristoffersen
I upgraded to ActiveMQ 5.4.0, and running OpenSolaris (b134) on Intel hardware. I start ActiveMQ, and the broker seems to function, but the jetty server does not display any web pages. I get the following if I try to access http://:8161/admin HTTP ERROR: 503 Problem accessing /admin/. Reason:

Re: non-durable queues?

2010-08-19 Thread Andrew Wasilczuk
On 19/08/2010 15:13, Gary Tully wrote: > setting a message time to live on each message, such that it will > expire if there are no consumers: > > MessageProducer producer = session.createProducer(null); > long timeToLive = 2000; // in milliseconds > producer.setTimeToLive(

Re: non-durable queues?

2010-08-19 Thread Andrew Wasilczuk
On 19/08/2010 15:00, George H wrote: > http://activemq.apache.org/how-do-i-disable-persistence.html Thanks for the link George. However, as far as I understand, disabling persistace means that the pending messages won't be spooled to disk and won't survive a broker restart. But if the broker is

Re: non-durable queues?

2010-08-19 Thread Gary Tully
setting a message time to live on each message, such that it will expire if there are no consumers: MessageProducer producer = session.createProducer(null); long timeToLive = 2000; // in milliseconds producer.setTimeToLive(timeToLive); producer.send(...) On 19 Augu

Re: non-durable queues?

2010-08-19 Thread George H
http://activemq.apache.org/how-do-i-disable-persistence.html On Thu, Aug 19, 2010 at 4:50 PM, Andrew Wasilczuk wrote: > Hi there, > > > Is it possible to have a non-durable queue in ActiveMQ?  The desired > behaviour I'm looking for is to deliver the message only when there's an > active subscri

non-durable queues?

2010-08-19 Thread Andrew Wasilczuk
Hi there, Is it possible to have a non-durable queue in ActiveMQ? The desired behaviour I'm looking for is to deliver the message only when there's an active subscriber on the queue. If there isn't one, the message should be discarded. Is this possible? If so, how do I go about setting it up?

Re: How to shutdown + restart ActiveMQ from cmdline (!)?

2010-08-19 Thread Bruce Snyder
On Thu, Aug 19, 2010 at 1:45 AM, BenXS wrote: > > Assume I have a running ActiveMQ Messagebroker (under WinXP). > > Currently I stop/shutdown the server by pressing Ctrl+C in the CommandPrompt > Terminal window. > Then ActiveMQ stops/shutdown. > > I am searching now for a way to stop/shutdown the

How to insert from Java a new JMSproperty in header? setStringProperty() does not work

2010-08-19 Thread BenXS
I am trying to set from a Java bean a new (additional) Property in header. Therefore I code (simplified) the following: public void pass(Message mess) { ... mess.setPropertiesModifiable(true); mess.setStringProperty("newprop", "value123"); ...} But it didn't work. Compiler compl

How to shutdown + restart ActiveMQ from cmdline (!)?

2010-08-19 Thread BenXS
Assume I have a running ActiveMQ Messagebroker (under WinXP). Currently I stop/shutdown the server by pressing Ctrl+C in the CommandPrompt Terminal window. Then ActiveMQ stops/shutdown. I am searching now for a way to stop/shutdown the server DIRECTLY from the command line e.g. from a batch scri