The resource file that you need to package with an Enterprise Connector (as described in Developing Connectors Using the Enterprise Connector Business Object (ECBO) API) is an XML file. The name of the file typically refers to the database or EIS/EAI system. For example, the resource file for MusicDB is named MusicDbRepository.xml. The file begins and ends as follows:
<jeceira xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sync="http://www.synchronica.com/jcr/types" xmlns:aprzv="http://www.aparzev.com/jrc/aprzv" xmlns:udc="http://www.synchronica.com/udc/types/1.0"> <repositories> <repository name="MusicDbRepository"> <workspaces> <workspace name="MusicDbWorkspace" /> </workspaces> .... </repository> </repositories> </jeceira>
All resource files are identical except for two values:
The name attribute of the repository element, in this case MusicDbRepository
The name attribute of the workspace element, in this case MusicDbWorkspace
To create your own resource file, you can copy the resource file from the sample Enterprise Connector source directory, rename it, and modify these two values. In the unzipped client bundle, you can find the file in sgmp-client-1_1_01-fcs-b02/samples/secure-musicdb/src/connector/ecbo/MusicDbRepository.xml.
You use these values when you configure the Enterprise Connector in the Sun GlassFish Mobility Platform Administration Console. See Using the Connectors Tab in Sun GlassFish Mobility Platform 1.1 Administration Guide for details.