Uploaded image for project: 'HornetQ'
  1. HornetQ
  2. HORNETQ-456

Obsolete TransactionManagerLocator props and warns in jca resouce adaptor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.1 Final
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      JBoss 4.2.3.GA

      Description

      After installing hornetq-2.1.1.Final in JBoss 4.2.3.GA I've got JMS not working:

      WARN main [ServiceController] Problem starting service jboss.jca:service=RARDeployment,name='jms-ra.rar'
      org.jboss.deployment.DeploymentException: Error for resource adapter class org.hornetq.ra.HornetQResourceAdapter accessing property setter ConfigPropertyMetaData@d11f32[name=TransactionManagerLocatorMethod type=java.lang.String value=org.hornetq.integration.jboss.tm.JBoss4TransactionManagerLocator descriptions=[DescriptionMetaData@d8431c[language=ru description=The class that will locate the transactionmanager]]]; - nested throwable: (java.lang.NoSuchMethodException: org.hornetq.ra.HornetQResourceAdapter.setTransactionManagerLocatorMethod(java.lang.String))
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
      at org.jboss.resource.deployment.ResourceAdapterFactory.createResourceAdapter(ResourceAdapterFactory.java:95)
      at org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:108)
      ...
      Caused by: java.lang.NoSuchMethodException: org.hornetq.ra.HornetQResourceAdapter.setTransactionManagerLocatorMethod(java.lang.String)
      at java.lang.Class.getMethod(Class.java:1605)
      at org.jboss.resource.deployment.ResourceAdapterFactory.createResourceAdapter(ResourceAdapterFactory.java:86)
      ... 88 more

      Some googling helped to find this commit:
      7998 28 Sep 09 removed transaction manager refrences in RA adapter ataylor trunk
      http://fisheye.jboss.org/browse/Hornetq/trunk/src/main/org/hornetq/ra/HornetQResourceAdapter.java?r1=7998&r2=7992#seg1

      So had to comment out section
      <config-property>
      <description>The class that will locate the transactionmanager</description>
      <config-property-name>TransactionManagerLocatorMethod</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>org.hornetq.integration.jboss.tm.JBoss4TransactionManagerLocator</config-property-value>
      </config-property>
      <config-property>
      <description>The method to use for locate the transactionmanager</description>
      <config-property-name>TransactionManagerLocatorMethod</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>getTm</config-property-value>
      </config-property>
      in jms-ra.rar\META-INF\ra.xml

      It seems that istallation for JBoss 4.x never worked correctly, even before mentioned commit, cause <config-property-name>TransactionManagerLocatorMethod</config-property-name> is doubled, obviously by mistake.

      After all JMS got working but some warns still show in the log:
      WARN main [HornetQResourceAdapter] It wasn't possible to lookup for a Transaction Manager through the configured properties TransactionManagerLocatorClass and TransactionManagerLocatorMethod
      WARN main [HornetQResourceAdapter] HornetQ Resource Adapter won't be able to set and verify transaction timeouts in certain cases.

      Please, clarify whether these warns are just obsolete or some tuning required to obtain correct transactional behavior.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                timfox Tim Fox
                Reporter:
                vkopichenko Vadim Kopichenko
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: