Foreign JMS Providers

 

 

 

 

 

 

 

 

 

 

 

Property Name

Valid Values

Default Value

Description

 

 

 

 

 

 

RMPolicy

ProviderManaged or

Provider

The isSameRM method on an

 

 

OnePerPhysicalConnection

Managed

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.

Chapter 4 • Configuring Java Message Service Resources

71

Page 71
Image 71
Sun Microsystems 820433510 manual ManagedConnectionFactory Properties