Details
-
Feature Request
-
Resolution: Done
-
Major
-
1.0.0.Alpha2
-
None
-
Documentation (Ref Guide, User Guide, etc.), Interactive Demo/Tutorial, Compatibility/Configuration
-
Medium
Description
In addition to specifying the instance root, the embedded GlassFish container allows a distinct domain.xml file to be specified. Support this override in the container configuration.
private String domainXml;
public String getDomainXml()
{ return domainXml; }public void setDomainXml(String domainXml)
{ this.domainXml = domainXml; }Often times, the developer is fixing the instance root in order to setup container resources (JDBC resources, JMS destinations). Instead of using the instance root for this purpose, allow the developer to specify a sun-resources.xml file. Use the embedded GlassFish command runner to execute the add-resources asadmin command to feed the resources defined in this file into the serer in the container setup method.
private String resourcesXml;
public String getResourcesXml()
{ return resourcesXml; }public void setResourcesXml(String resourcesXml)
{ this.resourcesXml = resourcesXml; }See http://blogs.sun.com/arungupta/entry/totd_133_jpa2_jpql_criteria