12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Document Type Definitions (DTDs)<br />

Document Type Definitions (DTDs)<br />

Note<br />

There are two deployment descriptors for each J2EE compliant application client<br />

module. One is a J2EE standard deployment descriptor, and the other is a vendor<br />

specific file.<br />

The XML grammar for a J2EE application client deployment descriptor is defined in the<br />

J2EE application-client Document Type Definition (DTD). The root element of the<br />

deployment descriptor for an application client is the application-client.<br />

The content of XML elements are generally case sensitive. All valid application client<br />

deployment descriptors must contain the following DOCTYPE declaration:<br />

<br />

The vendor-specific deployment descriptor for an application client must contain the<br />

following DOCTYPE declaration:<br />

<br />

The contents of the <strong>Borland</strong>-specific application client DTD are:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Here ejb-ref-name and res-ref-names are the names of the corresponding elements in<br />

the J2EE XML file, and jndi-name is the absolute JNDI name with which the object is<br />

deployed in JNDI.<br />

Example XML using the DTD<br />

As discussed, every application client needs a pair of XML files; a standard file and a<br />

vendor-specific file.<br />

Example of a standard file:<br />

<br />

<br />

<br />

SimpleSort<br />

J2EE AppContainer spec compliant Sort client<br />

<br />

<br />

Testing environment entry<br />

<br />

Chapter 12: The VisiClient Container 99

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!