Re: MessageAuthorizationPolicy does not work??

2008-01-16 Thread jvr
pplive wrote: > > BrokerService service=BrokerFactory.createBroker(new > URI("xbean:activemq.xml")); > service.setMessageAuthorizationPolicy(new > MyMessageAuthorizationPolicy()); > > am I worong ?? > Does this work yet? Either I'm not using it right, or it's sti

Re: ActiveMQ ver5.0 number of paged-in messages

2008-01-16 Thread dalin
After further investigation, it would appear that in the following code snippet... 531public void acknowledge(ConnectionContext context, Subscription sub, MessageAck ack, MessageReference node) throws IOException { 532if (store != null && node.isPersistent()) { 533

ActiveMQ 4.1.1 Always Serializes Object Messages

2008-01-16 Thread thammoud
Hello, We are trying to avoid the serialization overhead when using the vm:// embedded broker. We set the setObjectMessageSerializationDefered(true) and setCopyMessageOnSend(false) options on the connection factory. ActiveMQ still serializes in the The following code in ActionMQConnection show

MimeBodyPart attachment

2008-01-16 Thread LeeZ01
I need to send email with attachment from producer server to a consumer server. On the producer server, a file (PDF, MS Doc, etc.) is loaded as attachment, together with addressTo, addressFrom, subject, etc. are sent to ActiveMQ. The consumer server needs to grab all those contents, forms a java

Re: thread explosion / inactivity monitor causing hangs with activemq 5.0 (final release)

2008-01-16 Thread peter royal
On Jan 16, 2008, at 3:26 AM, Rob Davies wrote: This is a known bug in 5.0 - please use the latest 5.1 snapshot willdo, thanks! -pete -- [EMAIL PROTECTED] - http://fotap.org/~osi smime.p7s Description: S/MIME cryptographic signature

Re: Apache Camel - Delayer Patthern with ActiveMQ JMS

2008-01-16 Thread James Strachan
BTW there's a user list for the camel project... http://activemq.apache.org/camel/discussion-forums.html On 16/01/2008, melu <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to applay "delayer pattern". To practice I work with Apache Camel > "camel-example-spring" example. > > I added "delayer(head

Re: ActiveMQ 5.0.0 AMQ Message Store fails when using with Spring DefaultMessageListenerContainer with more than 1 concurrentConsumers to dispatch JMS messages from Queue

2008-01-16 Thread Daniel Mace
A known issue with ActiveMQ? Is there a ticket somewhere or some documentation outlining the details? Does Is there any workaround short of not using the default Spring container? Does the issue exist with ActiveMQ 4.x? If not, maybe we could just try using that version as opposed to reimplementin

Re: race condition in handling connection errors

2008-01-16 Thread Nathan Mittler
Yes, that is a possibility. Making an error handling routine synchronized is probably your best bet. Nate On Jan 16, 2008, at 5:19 AM, gali_ka wrote: we have an c++ application using activemq. As we understand, in case of broken connection we can get a signal about it from two places: 1

race condition in handling connection errors

2008-01-16 Thread gali_ka
we have an c++ application using activemq. As we understand, in case of broken connection we can get a signal about it from two places: 1. we try to send and get an exception in our thread try { producer.send(..); } catch(CMSException&){..} 2. onException() - that will be proceeded from anothe

Apache Camel - Delayer Patthern with ActiveMQ JMS

2008-01-16 Thread melu
Hi, I want to applay "delayer pattern". To practice I work with Apache Camel "camel-example-spring" example. I added "delayer(header("JMSTimestamp"), 3)" to "from("jms:test.MyQueue").to("file://target/test?noop=true");" line so it looks like this: from("jms:test.MyQueue").delayer(header(

Re: thread explosion / inactivity monitor causing hangs with activemq 5.0 (final release)

2008-01-16 Thread Rob Davies
This is a known bug in 5.0 - please use the latest 5.1 snapshot On Jan 16, 2008, at 3:42 AM, peter royal wrote: we're having the occasional/random explosion of threads in our broker. it appears to be related to the client using the failover transport and reconnecting to the broker, and the br

InactivityMonitor threads are blocking ActiveMQ ProducerTool example

2008-01-16 Thread Olivier Bigard
Hello, We are using last ActiveMQ 5.1-20080116.045235-1 SNAPSHOT. When we use the Producer / Consumer tool example they never stop because 2 threads are still running in the VM: "InactivityMonitor ReadCheck" and "InactivityMonitor WriteCheck". Is there a way to properly stop these threads when we

Message blocked in a Queue

2008-01-16 Thread Olivier Bigard
Hello, We are using last ActiveMQ 5.1-20080116.045235-1 SNAPSHOT. We are encountering some problems with a very simple JMS use case, that you will find in attached files. We have 1 Server ("ServerFake" class) and 1 client ("AdmFake" class). The Server waits for messages on a queue ("adm_in"). Wh