To remove the persistence instance from a JDBC resource, use the following rhino-console command or related MBean operation.

Console command: removepersistenceinstanceref


removepersistenceinstanceref <resource-type> <resource-name>
   Remove a persistence instance reference from a database resource. The
   resource-type parameter must be either 'persistence' or 'jdbc'.


$ ./rhino-console removepersistenceinstanceref jdbc myresource oracle
Removed persistence instance reference 'oracle' from JDBC resource myresource

MBean operation: setJdbcResourcePersistenceInstanceRef


Rhino operation

public void setJdbcResourcePersistenceInstanceRef(String jdbcResourceJndiName, String persistenceInstanceName)
    throws NullPointerException, NameNotFoundException,

To remove an existing persistence instance reference, pass in null for the persistenceInstanceName parameter.

Previous page Next page
Rhino Version 2.5.0