92 WebSphere eXtreme Scale Best Practices for Operation and Management
2. Configure the JMS topic and the related JNDI names. We do not explain this task here,
but, remember, when designing the JMS topic connection factory, that each container
server in a publisher role creates one connection for each partition during the
JMSObjectGridEventListener initialization. You must size the connection pool size
according to your topology.
In addition to these tasks, you need to configure the JMSObjectGridEventListener plug-in by
adding the following elements in the ObjectGrid descriptor XML file:
In the objectGrid element, add a bean element with the following settings:
–The ID attribute is set to JMSObjectGridEventlistener.
–The className attribute is set with the class name of your
JMSObjectGridEventListener extensions.
In the JMSObjectGridEventListener bean element, add the following required property
elements:
– A property element with the following settings:
•The name attribute is set to invalidationModel.
•The type attribute is set to java.lang.String.
•The value attribute is set to NONE_INVALIDATION_MODEL, CLIENT_SERVER_MODEL, or
CLIENT_AS_DUAL_ROLES_MODEL.
– A property element with the following settings:
•The name attribute is set to invalidationStrategy.
•The type attribute is set to java.lang.String.
•The value attribute is set to INVALIDATE, INVALIDATE_CONDITIONAL, PUSH,
PUSH_CONDITIONAL, PUSH_INCLUDED, or PUSH_INCLUDED_CONDITIONAL.
– A property element with the following settings:
•The name attribute is set to jms_topicConnectionFactoryJndiName.
•The type attribute is set to java.lang.String.
•The value attribute is set to the JNDI name of the Topic connection factory.
– A property element with the following settings:
•The name attribute is set to jms_topicJndiName.
•The type attribute is set to java.lang.String.
•The value attribute is set to the JNDI name of the Topic for publishing or receiving
notifications.
– A property element with the following settings:
•The name attribute is set to jms_topicName.
•The type attribute is set to java.lang.String.
•The value attribute is set to the name of the Topic for publishing or receiving
notifications.
Optionally, If security is enabled to connect to the topic, you can add the following property
elements:
A property element with the following settings:
–The name attribute is set to jms_userid.
–The type attribute is set to java.lang.String.