Why am I getting Resource in Conflict errors?

I have some code about ConnectionConsumer that works fine with J2EE JMS.

When I tested them with iMQ, I got following "Resource in conflict" error

message. If I run some other examples without ConnectionConsumer, they work

fine. Therefore, I like to know if iMQ support ConnectionConsumer? And do

you have any sample code that I can follow? Is there any trick for running

ConnectionConsumer?

[435 byte] By [christenscreen] at [2007-11-25 8:07:05]
# 1

iMQ does support ConnectionConsumer. However, you do need to ensure that if

you are consuming messages from a Queue, then the physical queue

destination's queue delivery policy needs to be configured as "round

robin", rather than "single" (which is the default).

The exception you got is a result of attempting to attach two receivers on

a physical queue that is configured for only one receiver (at a time).

You can do this by running the following JMQ Command when creating the

physical queue or the next command to update the property for an existing

physical queue.

Physcial queue creation

jmqcmd create dst -n <name_of_queue> -t q -o "queueDeliveryPolicy=r"

Updating existing physical queue

jmqcmd update dst -n <name_of_queue> -t q -o "queueDeliveryPolicy=r"

See the documentation and jmqcmd -H for complete details.

christenscreen at 2007-7-1 13:57:41 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...