To display the persistence instances that have been added to a persistence resource, use the following rhino-console command or related MBean operation.

Console command: listpersistenceinstancerefs

Command

listpersistenceinstancerefs <resource-type> <resource-name>
   List the persistence instance references for a database resource. The
   resource-type parameter must be either 'persistence' or 'jdbc'.

Example

$ ./rhino-console listpersistenceinstancerefs persistence management
postgres

MBean operation: getPersistenceResourcePersistenceInstanceRefs

MBean

Rhino operation

public String[] getPersistenceResourcePersistenceInstanceRefs(String persistenceResourceName)
    throws NullPointerException, NameNotFoundException,
      ConfigurationException;

This operation returns an array containing the names of the persistence instances used by the persistence resource.

Previous page Next page
Rhino Version 2.5.0