Methods Summary |
---|
public javax.management.ObjectName | create(java.lang.String jndiName, java.lang.String poolName, java.util.Map optional)Create a new <jdbc-resource>
final JDBCConnectionPoolConfig pool = (JDBCConnectionPoolConfig)
getCallbacks().getProxyFactory().getDomainRoot().getDomainConfig().
getContainee( XTypes.JDBC_CONNECTION_POOL_CONFIG, poolName );
if ( pool == null )
{
throw new IllegalArgumentException( "JDBCConnectionPoolConfig does not exit: " + poolName );
}
final String[] requiredParams = new String[]
{
POOL_NAME_KEY, poolName,
};
final Map<String,String> params = initParams( jndiName, requiredParams, optional );
final ObjectName amxName = createNamedChild( jndiName, params );
return( amxName );
|
protected javax.management.ObjectName | createOldChildConfig(javax.management.AttributeList translatedAttrs)The caller is responsible for dealing with any Properties.
trace( "JDBCResourceConfigFactory.createOldChildConfig: creating using: " +
stringify( translatedAttrs ) );
final ObjectName objectName =
getOldResourcesMBean().createJdbcResource( translatedAttrs );
return( objectName );
|
protected java.util.Map | getParamNameOverrides()
return( MapUtil.newMap( CONFIG_NAME_KEY, "jndi-name" ) );
|
protected void | removeByName(java.lang.String name)
final Set<ResourceRefConfig> refs =
findAllRefConfigs( XTypes.JDBC_RESOURCE_CONFIG, name );
if ( refs.size() == 0 )
{
getOldResourcesMBean().removeJdbcResourceByJndiName( name );
}
else
{
for( final ResourceRefConfig ref : refs )
{
final String target = ref.getContainer().getName();
getOldResourcesMBean().deleteJdbcResource( name, target );
}
}
|