-
1. Re: Messages are not consumed by MDB if long running processes active
ataylor Oct 18, 2013 4:03 AM (in response to abl-dam)whats your consumerwindowsize? clients buffer messages so the long running client may already have these messages in its buffer.
-
2. Re: Messages are not consumed by MDB if long running processes active
abl-dam Oct 18, 2013 4:32 AM (in response to ataylor)it's not set in standalone.xml at all, so I guess some kind of default value (1 MB?)
we are not using the HornetQ native API
-
3. Re: Messages are not consumed by MDB if long running processes active
ataylor Oct 18, 2013 4:51 AM (in response to abl-dam)you need to set it on the ResourceAdapter(pooled connection factory) or as an activation property on the MDB.
-
4. Re: Re: Messages are not consumed by MDB if long running processes active
abl-dam Oct 18, 2013 5:05 AM (in response to ataylor)1 of 1 people found this helpfulthis way?
<pooled-connection-factory name="hornetq-ra"> <transaction mode="xa"/> <connectors> <connector-ref connector-name="in-vm"/> </connectors> <entries> <entry name="java:/JmsXA"/> </entries> <!-- Set the consumer window size to 0 to have *no* buffer on the client side --> <consumer-window-size>0</consumer-window-size> </pooled-connection-factory>
but is it the way it's intended to work? I understand that this client-side buffer is for better performance (avoid roundtrip to server for every message)
why doesn't the MDB simply use another (free) thread for consuming the message? in our case the delivery order (FIFO) is no longer guaranteed
-
5. Re: Re: Messages are not consumed by MDB if long running processes active
ataylor Oct 18, 2013 5:07 AM (in response to abl-dam)yes thats correct.
its nothing to do with the MDB using another thread, each mdb instance uses its own session/consumer.
-
6. Re: Messages are not consumed by MDB if long running processes active
abl-dam Oct 18, 2013 5:21 AM (in response to ataylor)ok, I will test with that setting and see what happens. Many thanks for your help!
@ActivationConfigProperty(propertyName="consumer-window-size", propertyValue="0")
or
@ActivationConfigProperty(propertyName="consumerWindowSize", propertyValue="0")
?
-
7. Re: Messages are not consumed by MDB if long running processes active
ataylor Oct 18, 2013 5:22 AM (in response to abl-dam)1 of 1 people found this helpfulconsumerWindowSize