Home| Printable Version
XPlatform requires one main configuration file for each logical application. Each application can consist of one or more Projects, depending on the complexity of your overall application. (For more information on how to use multiple projects in a single application, please refer to the Hyfinity FAQ.) Each distinct application should use its own configuration file. This configuration file is known as the Morphyc File and is an xml file, whose name will typically be of the form myapp_morphyc.xml. Assuming that the distribution is deployed under a {deployment_location} folder, the configuration file can be found in the {deployment_location}/hyfinity/runtime/morphyc directory.
Depending on how the application is being invoked, the morphyc file to use is specified differently:
For all MVC applications, and any others accessed via the web, the location of the morphyc file should be specified in the web.xml file. (See XGate Configuration Files for more details.) Alternatively, the location of the morphyc file can be indicated using the morphyc environment variable. This variable will only be used if the entry in the web.xml file is missing. If the application is being invoked from the command line, the full path to the morphyc file to use needs to be passed in as one of the parameters. (See Invoking the Platform for more details.) If the application is being called from another Java application, then the full path to the morphyc file to use needs to be passed in when initialising the platform. (See Invoking the Platform for more details.)
For web accessible applications, there will be a few other configuration files that manage the web interface. These are detailed under the XGate Configuration Files section.
Managing the Core Runtime Platform Managing the Morphyc Configuration Files