Managedconnectionfactory properties, Managedconnectionfactory, Properties – Sun Microsystems GLASSFISH ENTERPRISE 820433510 User Manual
Page 71

Property Name
Valid Values
Default Value
Description
RMPolicy
ProviderManaged
or
OnePerPhysicalConnection
Provider
Managed
The isSameRM method on an
XAResource
is used by the
Transaction Manager to determine if
the Resource Manager instance
represented by two XAResources are
the same. When RMPolicy is set to
ProviderManaged
(the default value),
the JMS provider is responsible for
determining the RMPolicy and the
XAResource
wrappers in the Generic
Resource Adapter merely delegate the
isSameRM
call to the message queue
provider's XA resource
implementations. This should ideally
work for most message queue
products.
Some XAResource implementations
such as IBM MQ Series rely on a
resource manager per physical
connection and this causes issues
when there is inbound and outbound
communication to the same queue
manager in a single transaction (for
example, when an MDB sends a
response to a destination). When
RMPolicy
is set to
OnePerPhysicalConnection
, the
XAResource wrapper
implementation's isSameRM in
Generic Resource Adapter would
check if both the XAResources use the
same physical connection, before
delegating to the wrapped objects.
ManagedConnectionFactory
Properties
ManagedConnectionFactory
properties are specified when a connector-connection-pool is
created. All the properties specified while creating the resource adapter can be overridden in a
ManagedConnectionFactory
. Additional properties available only in
ManagedConnectionFactory
are given below.
Foreign JMS Providers
Chapter 4 • Configuring Java Message Service Resources
71