To add a persistence instance to a persistence resource, use the following rhino-console command or related MBean operation.

Console command: addpersistenceinstanceref


addpersistenceinstanceref <resource-type> <resource-name> <persistence-instance-name>
   Add a persistence instance reference to a database resource. The
   resource-type parameter must be either 'persistence' or 'jdbc'.


$ ./rhino-console addpersistenceinstanceref persistence management oracle
Added persistence instance reference 'oracle' to persistence resource management

MBean operation: addPersistenceResourcePersistenceInstanceRef


Rhino operation

public void addPersistenceResourcePersistenceInstanceRef(String persistenceResourceName, String persistenceInstanceName)
    throws NullPointerException, NameNotFoundException,
      DuplicateNameException, ConfigurationException;
Previous page Next page
Rhino Version 2.5.0