Re: how to get managementcontext from a broker

2008-12-10 Thread Dejan Bosanac
Hi, you should use MBeanServerInvocationHandler to get a proxy of a mbean. Take a look at the BrokerFacadeSupport that does the similar job for the web console http://www.koders.com/java/fidE02AF845C99D1EE4A2A301BABEB98605E7E8F1FB.aspx Cheers emc2family wrote: Hi, i was looking for a way to

Re: Rollback and acknowledge

2008-12-10 Thread James Strachan
2008/12/10 mmocnik [EMAIL PROTECTED]: Hi, I'm using ActiveMQ 5.1.0 to asynchronously send mail via an unrelyable mail server. I'm using session.rollback() if a delivery attempt failed, since I couldn't get redelivery done any other way. (I'm using vm://localhost by the way) Problem:

Where can I down OpenWire C Client for ActiveMQ

2008-12-10 Thread vijayamails
Hi, I am very new to ActiveMQ . I am Using Solaris 9.0 Server. I have installed ActiveMQ5.1 and I have to contact ActiveMQ through C. Where can I Download OpenWire C Client for ActiveMQ. And where should I place the ApacheProtableRuntime Folder in Solaris Server. Like..my ActiveMQ folder is in

Re: Rollback and acknowledge

2008-12-10 Thread mmocnik
Hi, James.Strachan wrote: 2008/12/10 mmocnik [EMAIL PROTECTED]: Hi, [...] So: Is there any way to just rollback one message? Sure - so long as you do a commit/rollback on each message :). i.e. if you do a commit or rollback after processing each message then only 1 message will

Re: Rollback and acknowledge

2008-12-10 Thread James Strachan
2008/12/10 mmocnik [EMAIL PROTECTED]: Hi, James.Strachan wrote: 2008/12/10 mmocnik [EMAIL PROTECTED]: Hi, [...] So: Is there any way to just rollback one message? Sure - so long as you do a commit/rollback on each message :). i.e. if you do a commit or rollback after processing

network of embedded brokers (in Glassfish)

2008-12-10 Thread Repko, Brian
We have had a number of issues with the genericjmsra and OpenMQ on Glassfish V2 and are looking to switch to ActiveMQ (RAR/brokers). We have that working now (and I intend to put a blog together on that since Ramesh's standard blog is quite old and not really accurate). With ActiveMQ we can

Broker Halts Message Delivery to Selector Based Queue Consumers

2008-12-10 Thread Jar Lyons
The broker halts message delivery to selector based queue consumers when messages outside the scope of the selector accrue. Use Case: A queue being consumed by two selector based consumers. One looking for JMSType = 'odd', and one looking for 'even'. Drive the queue with both types of

Re: Queue repeatedly stalls

2008-12-10 Thread trevoro
I see this same problem. I'm using ActiveMQ 5.2.0 and Sun JDK1.6.0_02. When we try and post a large number of messages to a Queue it stalls after 4096 messages. If I leave the publisher running and flush the queue, it will receive a few hundred more messages prior to stalling again. This issue

Handling of slow consumers

2008-12-10 Thread Jim Lloyd
I'm trying to better understand what configuration options I can use to handle slow consumers. The slow-consumershttp://activemq.apache.org/slow-consumers.htmlpage on activemq.apache.org is a little odd. It reads as if it is a brainstorming document, i.e not even at the level of an approved

Re: how to best implement a producer timeout

2008-12-10 Thread Rob Davies
On 11 Dec 2008, at 01:38, emc2family wrote: Hi, when a broker starts to block producers as a result of producer flow control, is there an elegant way for a producer to timeout as a result of this? i was thinking of setting the message's timetolive to achieve this. i suppose i could also

Re: how to best implement a producer timeout

2008-12-10 Thread PankajGugnani
Hi, can u please explain the behaviou in this particular case after the TimeOut. will there be an exception thrown if the timeout occurs. Thanks in advance rajdavies wrote: On 11 Dec 2008, at 01:38, emc2family wrote: Hi, when a broker starts to block producers as a result of

Re: Handling of slow consumers

2008-12-10 Thread Rob Davies
On 11 Dec 2008, at 04:16, Jim Lloyd wrote: I'm trying to better understand what configuration options I can use to handle slow consumers. The slow-consumershttp://activemq.apache.org/slow-consumers.htmlpage on activemq.apache.org is a little odd. It reads as if it is a brainstorming

Specifying configuration via options on URIs

2008-12-10 Thread Jim Lloyd
The ability to specify configuration options via parameters on URIs is very cool. But I also find it troubling. It appears to me that if there is a typo in my URI, there is no indication that the parameter was unrecognized and therefore ignored. Closely related, in the admin console, clicking on

Re: how to best implement a producer timeout

2008-12-10 Thread Rob Davies
On 11 Dec 2008, at 06:34, PankajGugnani wrote: Hi rajdavies, Thanks for the quick reply. In my project, I want to throw an exception if timeout occured. But for this, I need to know what happened to the message. Is it published or is it discarded. And also, is there way by which I can

Async error occurred java.lang.NullPointerException

2008-12-10 Thread WhiteSock
Hi all, I got the following error in activemq.log, ActiveMQ's version is 5.2.0. Do you have any idea? 2008-12-10 21:44:04,485 [.15.2.125:47814] ERROR Service - Async error occurred: java.lang.NullPointerException java.lang.NullPointerException at