no messages being sent (mostly)
hughbragg Sep 10, 2010 3:00 AMMy sender is blocked trying to send messages.
This only seems to happen most of the time.
I have used the default-standalone-non-clustered configuration.
I've added several queues.
I've changed the connector/acceptor definitions so that the producer connects on netty and the consumer connects on netty-public:
<connectors>
<connector name="netty">
<factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
<param key="host" value="10.78.20.20"/>
<param key="port" value="5455"/>
</connector>
<connector name="netty-public">
<factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
<param key="host" value="10.78.20.20"/>
<param key="port" value="5445"/>
</connector>
</connectors>
<acceptors>
<acceptor name="netty">
<factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
<param key="host" value="10.78.20.20"/>
<param key="port" value="5455"/>
</acceptor>
<acceptor name="netty-public">
<factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
<param key="host" value="10.78.20.20"/>
<param key="port" value="5445"/>
</acceptor>
</acceptors>
I've added some address specification to enable paging:
<address-settings>
<!-- default for agility -->
<address-setting match="agility.#">
<max-size-bytes>104857600</max-size-bytes>
<page-size-bytes>10485760</page-size-bytes>
<address-full-policy>PAGE</address-full-policy>
</address-setting>
<!--default for catch all-->
<address-setting match="#">
<dead-letter-address>jms.queue.DLQ</dead-letter-address>
<expiry-address>jms.queue.ExpiryQueue</expiry-address>
<redelivery-delay>0</redelivery-delay>
<max-size-bytes>10485760</max-size-bytes>
<message-counter-history-day-limit>10</message-counter-history-day-limit>
<address-full-policy>BLOCK</address-full-policy>
</address-setting>
</address-settings>
sometimes, messages flow through without a problem, but most of the time it's stuck. I have no idea what might be causing it.
I've attached the producer code.
Why is the producer hanging?
Any ideas what to do?
I've been trying to get this working for days now and it always ends up blocked.
-
JMSQ.java.zip 1.7 KB