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

Note A persistence instance cannot be removed while it is referenced by a persistence resource or JDBC resource.

Console command: removepersistenceinstance

Command

removepersistenceinstance <name>
  Description
    Remove an existing persistence instance configuration.

Example

$ ./rhino-console removepersistenceinstance oracle
Removed persistence instance oracle

MBean operation: removePersistenceInstance

MBean

Rhino operation

public void removePersistenceInstance(String name)
    throws NullPointerException, NameNotFoundException,
      InvalidStateException, ConfigurationException;
Previous page Next page
Rhino Version 2.6.2