Skip to content

XAFactories which implement java.util.Map (MQXAConnectionFactory) cannot be initialized properly #104

@tomasjura

Description

@tomasjura

XAFactories which implements java.util.Map (for example com.ibm.mq.jms.MQXAConnectionFactory), cannot be initialized correctly by .properties configuration.
Problem is in the function bitronix.tm.utils.PropertyUtils.setProperty where is

if (currentTarget instanceof Map) { ... }
else { setDirectProperty( ... ) }.

The priority should be IMHO inverse. i.e.

if the property exists then { setDirectProperty(...) } 
else {
  if XAFactory is a map then {
      setup map and log warning about setting value in the Map.
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions