This subsection gives an example of creating cosminexus.xml using a text editor. In this example, cosminexus.xml is created on the basis of the following contents defined in the DD:
- Contents defined in the default DD
- Web application module name: war/webapp.war
- Servlet name: MyServ
- Name of the resource referenced from Servlet (MyServ): DB_Connector_for_Oracle
The following figure shows an example of creating cosminexus.xml.
Figure 11-6 Example of creating cosminexus.xml
![[Figure]](figure/zu070600.gif)
The following is a description of points 1 through 3 in the figure:
- Create cosminexus.xml on the basis of the template file.
You copy the template file and store in the EAR or application directory. You edit the copied template file using a text editor.
- Set up the key (module name and resource name) for identifying the EJB/ Servlet and link resolution.
You set up the key associated with the information defined in the DD. In this example, the name of the Web application module and the name of the referenced resource are set up.
- Set up the name of the resource for which the link is to be resolved.
You set up the resource that resolves the link of the key set up in step 2.
For details on the contents defined in cosminexus.xml, see 2.1 Contents specified in the Cosminexus application property file (cosminexus.xml) in the uCosminexus Application Server Application and Resource Definition Reference Guide.