Re: PrefetchSize of Non-Durable topic not able to change

2009-11-18 Thread SelvarajAM
Thank you very much for your replies. Now i am able to set the prefetch attribute. The problem was, i was trying to set it from the server side but actually it must be set in client/consumer side. I downloaded the STOMP AS3 source code and found the following way to set it. var header:Subscri

Re: PrefetchSize of Non-Durable topic not able to change

2009-11-17 Thread Gary Tully
there are prefetch attributes in the PolicyEntry that goes in destinationPolicy. It is only in effect if the no consumer override is specified. What you want is topicPrefetch. See all the attributes of PolicyEntry in the src: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java

Re: PrefetchSize of Non-Durable topic not able to change

2009-11-17 Thread SelvarajAM
Thanks for your reply. I did use stomp extensions but still unable to set the prefetch size. Below is the code i used. connection = new StompConnection(); connection.open("0.0.0.0", 8084); connection.connect("test", "test"); HashMap header = new HashMap(); header.put("activemq.prefetchSiz

Re: PrefetchSize of Non-Durable topic not able to change

2009-11-17 Thread Dejan Bosanac
Hi, try setting prefetch size on your consumer using activemq.prefetchSize header. See http://activemq.apache.org/stomp.html#Stomp-ActiveMQextensionstoStomp for more details Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action -