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

Console command: removedatabaseresource

Command

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

Example

$ ./rhino-console removedatabaseresource persistence myresource
Removed persistence resource myresource

MBean operation: removePersistenceResource

MBean

Rhino operation

public void removePersistenceResource(String name)
    throws NullPointerException, NameNotFoundException,
      ConfigurationException;
Previous page Next page
Rhino Version 2.5.0