RE: How to post message to a certain queue consumer?

2010-05-19 Thread Cristian Botiza
from yours. Can you give me some guide about TTL you mentioned in early reply? Cristian Botiza wrote: This is not AMQ specific; it's rather JMS API specific - the JavaDoc of interface javax.jms.Message. Did this approach work with P2P and multiple consumers

RE: How to post message to a certain queue consumer?

2010-05-19 Thread Cristian Botiza
# (via the Apache.NMS.ActiveMQ): http://remark.wordpress.com/articles/publish-subscribe-with-activemq-and-nms/ The author of this blog have a bunch of ActiveMQ related blog entries that are worth reading. Hope this helps you, Seb On 19 May 2010 16:22, Cristian Botiza cristian.bot...@endava.com wrote

RE: How to post message to a certain queue consumer?

2010-05-18 Thread Cristian Botiza
Message selectors? From: alanchb [alanchbm...@gmail.com] Sent: 18 May 2010 11:12 To: users@activemq.apache.org Subject: How to post message to a certain queue consumer? under the P2P mode,if i have sevaral queue consumers,how to make the producer post

RE: How to post message to a certain queue consumer?

2010-05-18 Thread Cristian Botiza
queue consumer? Thanks for your reply. but how to use message selector to identify a consumer when producer send a message? Cristian Botiza wrote: Message selectors? From: alanchb [alanchbm...@gmail.com] Sent: 18 May 2010 11:12 To: users

RE: How to post message to a certain queue consumer?

2010-05-18 Thread Cristian Botiza
to learn about ActiveMQ? Cristian Botiza wrote: In the producer code, when creating the Message object: message.setStringProperty(myFilterProperty, my consumerID); In the consumer (QueueReceiver or Message Driven Bean), define the message selector expression (SQL syntax) as myFilterPropert='my

Message expiration

2010-03-29 Thread Cristian Botiza
Hi all, By reading the JavaDoc I wasn't able to figure out exactly what setJMSExpiration(long) does. If I use a value of 6 for example (IN THE SENDER CODE) does that mean that the message will be deleted from the store if not consumed in aproximately 1 minute? Is there any guarantee for

RE: Message expiration

2010-03-29 Thread Cristian Botiza
@activemq.apache.org Subject: Re: Message expiration yes, it is specified in milliseconds and with 5.3.1. for queues, the message will be automatically expired, independent of consumer activity. On 29 March 2010 11:21, Cristian Botiza cristian.bot...@endava.com wrote: Hi all, By reading the JavaDoc I

RE: Message expiration

2010-03-29 Thread Cristian Botiza
will be automatically expired, independent of consumer activity. On 29 March 2010 11:21, Cristian Botiza cristian.bot...@endava.com wrote: Hi all, By reading the JavaDoc I wasn't able to figure out exactly what setJMSExpiration(long) does. If I use a value of 6 for example (IN THE SENDER

RE: Messages stuck in the queue

2010-03-29 Thread Cristian Botiza
...@gmail.com] Sent: 26 March 2010 20:26 To: users@activemq.apache.org Subject: Re: Messages stuck in the queue catching Throwable would be best. You wouldn't need to redeploy the JMS queue - just restart the client should do On 26 Mar 2010, at 16:40, Cristian Botiza wrote: When you say 'you miss an ack

Transport failed: java.io.EOFException

2010-03-29 Thread Cristian Botiza
I notice this error (logged as debug) from time to time in the AMQ logs: java.io.EOFException at java.io.DataInputStream.readInt(Unknown Source) at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:267) at

RE: Transport failed: java.io.EOFException

2010-03-29 Thread Cristian Botiza
: java.io.EOFException On Mon, Mar 29, 2010 at 3:54 PM, Cristian Botiza cristian.bot...@endava.com wrote: I notice this error (logged as debug) from time to time in the AMQ logs: java.io.EOFException at java.io.DataInputStream.readInt(Unknown Source

Messages stuck in the queue

2010-03-26 Thread Cristian Botiza
Hi all, I'm using an activation spec where maxSessions=maxMessagesPerSessions=1. Using a client application I'm sending a TextMessage to the queue The MDB consumes some messages and then the messages start piling up in the queue and never get dispatched. I restarted the server, redeployed the

RE: Messages stuck in the queue

2010-03-26 Thread Cristian Botiza
Forgot to mention, I also see this in the active mq logs: 2010-03-26 14:37:07,490 DEBUG [PrefetchSubscription] Prefetch limit. So I assume the queue is 'full'? From: Cristian Botiza [cristian.bot...@endava.com] Sent: 26 March 2010 17:18 To: users

RE: Messages stuck in the queue

2010-03-26 Thread Cristian Botiza
and maxMessagesPerSessions =100 may help. so that you get a prefetch of 100. On 26 March 2010 15:18, Cristian Botiza cristian.bot...@endava.com wrote: Hi all, I'm using an activation spec where maxSessions=maxMessagesPerSessions=1. Using a client application I'm sending a TextMessage to the queue The MDB consumes

RE: best approach to transfer large File, modify content on receive

2010-03-03 Thread Cristian Botiza
Can you chunk the file? In this case you might split it between multiple producers and consumers and play with the number of producers/consumers and chunck size. You may send and process chuncks concurrently and also limit the message size. Just one option...

RE: best approach to transfer large File, modify content on receive

2010-03-03 Thread Cristian Botiza
I would look for some streaming options in ActiveMQ if you want to send the full file. But 100 MB is quite huge...anyway see class BytesMessage. You may try using a BufferedStream around the byte array, or read it in chuncks using readBytes(byte[]).