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

Console command: createdatabaseresource


createdatabaseresource <resource-type> <name>
   Create a database resource. The resource-type parameter must be either
   'persistence' or 'jdbc'.


$ ./rhino-console createdatabaseresource persistence myresource
Created persistence resource myresource

MBean operation: createPersistenceResource


Rhino operation

public void createPersistenceResource(String name)
    throws NullPointerException, InvalidArgumentException,
      DuplicateNameException, ConfigurationException;
Previous page Next page
Rhino Version 2.5.0