[jboss-jira] [JBoss JIRA] Created: (JBMESSAGING-1186) maxBatchTime stops working after the connection between source and target servers is lost

Maurice Zeijen (JIRA) jira-events at lists.jboss.org
Fri Dec 7 05:27:51 EST 2007


maxBatchTime stops working after the connection between source and target servers is lost
-----------------------------------------------------------------------------------------

                 Key: JBMESSAGING-1186
                 URL: http://jira.jboss.com/jira/browse/JBMESSAGING-1186
             Project: JBoss Messaging
          Issue Type: Bug
    Affects Versions: 1.4.0.SP1
         Environment: Windows XP 64
Java 6
JBoss 4.2.2

            Reporter: Maurice Zeijen
         Assigned To: Tim Fox


We have the following Situation:

A bridge MBean is setup to bridge between a local source and a remote target. The MaxBatchSize attribute is set to 5 and the MaxBatchTime is set to 10000. So the configuration looks like this:

<mbean code="org.jboss.jms.server.bridge.BridgeService" name="jboss.messaging:service=Bridge,name=wai_sync_customer_bridge" xmbean-dd="xmdesc/Bridge-xmbean.xml">
       <depends optional-attribute-name="SourceProviderLoader">jboss.messaging:service=JMSProviderLoader,name=JMSProvider</depends>
       <depends optional-attribute-name="TargetProviderLoader">jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider</depends>
       <attribute name="SourceDestinationLookup">/queue/local</attribute>
       <attribute name="TargetDestinationLookup">/queue/remote</attribute>
       <attribute name="QualityOfServiceMode">0</attribute>
       <attribute name="MaxBatchSize">5</attribute>
       <attribute name="MaxBatchTime">10000</attribute>
       <attribute name="FailureRetryInterval">5000</attribute>
       <attribute name="MaxRetries">-1</attribute>
       <attribute name="AddMessageIDInHeader">false</attribute>
       <depends>jboss.messaging.destination:name=local,service=Queue</depends>
  </mbean>

If the connection between the two servers is available then the MaxBatchTime works fine. After 10 seconds all messages are moved from local queue to remote queue if there are less then 5 messages in the queue. But when for some reason the connection is lost and after a while restored again then the MaxBatchTime doesn't work any more. Luckily the MaxBatchSize still works. Also the MaxBatchSize doesn't work when the remote server isn't available when the bridge on the local server is started. 

Restarting the bridge makes the MaxBatchTime work again.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list