Re: can I enable queue priority by plain java code

2014-03-04 Thread Li Li
I know how to set priority for a message, what I want is enable priority of broker when create a queue using java client api. On Tue, Mar 4, 2014 at 3:08 PM, Noel OConnor noel.ocon...@gmail.com wrote: http://docs.oracle.com/javaee/5/api/javax/jms/MessageProducer.html#setPriority(int) On Tue,

Re: activemq - delete consumed messages

2014-03-04 Thread Gary Tully
The index file db.data is not subject to gc but it will be reused. So it will grow as large as is necessary to track messages and then stabilise. On 3 Mar 2014 17:04, turkuaz07 cvk...@gmail.com wrote: That's right, It defaults to 32mb for log files but I mean db.data file -- View this

Re: can a client refuse a message?

2014-03-04 Thread Gary Tully
Have a peek at this unit test for some further explanation. https://github.com/apache/activemq/blob/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java I think it will answer all of the above On 4 Mar 2014 01:19, Li Li fancye...@gmail.com wrote: there

Re: BrokerContainer SpringBrokerContainerFactory classes

2014-03-04 Thread tvijayram
Hi, thanks for the help. It worked out for me. But now I am facing some issue with xml parsing. I got he below error while running. Below I also copied the xml which i am using and I haven't changed anything in the xml. it seems there is a change in xml parising from 4.1 version onwards.

Lost JMS message after transaction timout - ActiveMQ 5.8.

2014-03-04 Thread valacmic
Good afternoon, i have a problem with losing messages after the transaction timeouts. Message is consumed using a MessageDrivenBean. If the processing is longer that the transaction timeout, the processing fails and an exception is thrown. The Exception is catched in the MDB and setRollbackOnly

Re: Lost JMS message after transaction timout - ActiveMQ 5.8.

2014-03-04 Thread Gary Tully
I think you are experiencing https://issues.apache.org/jira/browse/AMQ-4634 - so 5.9 will fair better for you. On 4 March 2014 16:02, valacmic valac...@gmail.com wrote: Good afternoon, i have a problem with losing messages after the transaction timeouts. Message is consumed using a

Re: Lost JMS message after transaction timout - ActiveMQ 5.8.

2014-03-04 Thread valacmic
Thank you for your quick reply. -- View this message in context: http://activemq.2283324.n4.nabble.com/Lost-JMS-message-after-transaction-timout-ActiveMQ-5-8-tp4678504p4678506.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: BrokerContainer SpringBrokerContainerFactory classes

2014-03-04 Thread Christian Posta
Yah, you're gonna have to take a look at how those components are specified using the newer XML config. Take a look at an example that comes in the distro under conf/activemq.xml On Tue, Mar 4, 2014 at 6:10 AM, tvijayram tvijay...@gmail.com wrote: Hi, thanks for the help. It worked out for me.

NMS SSL Client using Failover

2014-03-04 Thread pwalter
I'm unable to use failover when connecting with ssl This works: ssl://localhost:61616?transport.acceptInvalidBrokerCert=true This does not work: failover:(ssl://localhost:61616)?transport.acceptInvalidBrokerCert=true This does not work:

Re: NMS SSL Client using Failover

2014-03-04 Thread Timothy Bish
On 03/04/2014 04:51 PM, pwalter wrote: I'm unable to use failover when connecting with ssl This works: ssl://localhost:61616?transport.acceptInvalidBrokerCert=true This does not work: failover:(ssl://localhost:61616)?transport.acceptInvalidBrokerCert=true This does not work:

Re: NMS SSL Client using Failover

2014-03-04 Thread Erik S. Peterson
Sorry to hijack this thread, but after several attempts, unsubscribe from this list continues to fail. Please unsubscribe my email from this list. On Mar 4, 2014, at 3:47 PM, Timothy Bish tabish...@gmail.com wrote: On 03/04/2014 04:51 PM, pwalter wrote: I'm unable to use failover when

is tens of thousands of session feasible?

2014-03-04 Thread Li Li
hi all, I want to process a batch of message using my own priority algorithm. But in JMS, I can't acknowledge a single message and can only acknowledge a session. So I decide to do it like this: 1. Create N(=1) sessions 2. using a thread to manage session acknowledge like: