logger.error(sm.getString("naming.bindFailed", e));
}
- if ("javax.sql.DataSource".equals(ref.getClassName())) {
+ if ("javax.sql.DataSource".equals(ref.getClassName()) &&
+ resource.getSingleton()) {
try {
ObjectName on = createObjectName(resource);
Object actualResource = envCtx.lookup(resource.getName());
Don't append the jvmRoute to a session ID if the jvmRoute is a zero
length string. (markt)
</fix>
+ <fix>
+ Don't register non-singelton DataSource resources with JMX. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">
attribute is <code>true</code>, multiple JNDI lookups for this resource
will return the same object. If this attribute is <code>false</code>,
multiple JNDI lookups for this resource will return different objects.
- The value of this attribute must be <code>true</code> or
- <code>false</code>. By default, this attribute is <code>true</code>.</p>
+ This attribute must be <code>true</code> for
+ <code>javax.sql.DataSource</code> resources to enable JMX registration
+ of the DataSource. The value of this attribute must be <code>true</code>
+ or <code>false</code>. By default, this attribute is <code>true</code>.
+ </p>
</attribute>
<attribute name="type" required="true">