To remove an existing JDBC resource, use the following rhino-console command or related MBean operation.

Note A JDBC resource cannot be removed while it is referenced by an SBB in an activated service.

Console command: removedatabaseresource

Command

removedatabaseresource <resource-type> <name>
  Description
    Remove an existing database resource. The resource-type parameter must be either
    'persistence' or 'jdbc'.

Example

$ ./rhino-console removedatabaseresource jdbc myresource
Removed JDBC resource myresource

MBean operation: removeJdbcResource

MBean

Rhino operation

public void removeJdbcResource(String jndiName)
    throws NullPointerException, NameNotFoundException,
      InvalidStateException, ConfigurationException;
Previous page Next page
Rhino Version 2.6.0