Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2457

timeout when invoking stopDelivery

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Minor Minor
    • No Release
    • JBossAS-4.0.3 SP1
    • JMS (JBossMQ)
    • None
    • W2K, SP4

      i get a timeout when i try to stop message delivery from a queue:

      [code]
      public class DocImportProcessorBean implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener {
      ...
      public void onMessage(Message message) {
      try

      { ... }

      catch (Exception ex) {
      System.err.println("trace 1");
      MBeanServer server = MBeanServerLocator.locateJBoss();
      System.err.println("trace 2");
      server.invoke(new ObjectName(objectNameDocImportQueue), "stopDelivery", new Object[] {}, null);
      System.err.println("trace 3");
      sc.setRollbackOnly();
      System.err.println("trace 4");
      }
      }
      }
      [/code]

      result:
      messagedelivery is stopped, but i don't get back the control after the statement "server.invoke..."
      console:
      [code]
      trace 1
      trace 2
      [/code]

      serverlog:
      [code]
      2005-11-17 22:43:40,531 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Stop requested
      2005-11-17 22:43:40,531 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] innerStop
      2005-11-17 22:43:40,531 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] unset exception listen
      er
      2005-11-17 22:43:40,531 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] connection stopped
      2005-11-17 22:43:40,531 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Stopping DLQHandler
      2005-11-17 22:43:40,531 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Stopped DLQHandler
      [/code]

      after 5 minutes, i get a timeout:
      [exec] 22:48:40,187 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, G
      lobalId=evian/26, BranchQual=, localId=26] timed out. status=STATUS_MARKED_ROLLBACK

      same result, when i try to stop messagedelivery at the beginning of the method "onMessage"

      jbossmq-service-xml:
      [code]
      <?xml version="1.0" encoding="UTF-8"?>
      <server>
      <mbean code="org.jboss.mq.server.jmx.Queue"
      name="jboss.mq.destination:service=Queue,name=eManager-docImportQueue">
      <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
      <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
      <attribute name="RedeliveryDelay">10000</attribute>
      <attribute name="RedeliveryLimit">3</attribute>
      <attribute name="SecurityConf">
      <security>
      <role name="emanager" read="true" write="true" create="true"/>
      <role name="ecollector" read="false" write="true" create="false"/>
      <role name="guest" read="false" write="false" create="false"/>
      </security>
      </attribute>
      </mbean>
      </server>
      [/code]

      before i upgraded to jboss-4.0.3sp1, it worked well (jboss-4.0.3rc1)

      i would be very pleased, if you can fix this error (thank you in advance!)

              Unassigned Unassigned
              schachi_jira Schacher (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: