3.6 glassfish-application-client.xml
The glassfish-application-client.xml is the Java EE RI DD for specifying the application client settings.
Description
The glassfish-application-client.xml is the DD for specifying the application client settings that are unique to Java EE RI.
The root element of glassfish-application-client.xml is glassfish-application-client. The element glassfish-application-client contains child elements and attributes, as indicated by "Element hierarchy". These child elements and attributes may also contain their child elements and attributes.
Schema
<!DOCTYPE glassfish-application-client PUBLIC ""-//GlassFish.org //DTD GlassFish Application Server 3.1 Application Client 6.0//EN"" "http://glassfish.org/dtds/glassfish-application-client_6_0-1.dtd">
Storage location
The DD file is stored in the following location:
client_jar_name/META-INF directory.
client_jar_name: Represents the archive name of the client application.
Element hierarchy
glassfish-application-client . ejb-ref .. ejb-ref-name .. jndi-name . resource-ref .. res-ref-name .. jndi-name .. default-resource-principal ... name ... password . resource-env-ref .. resource-env-ref-name .. jndi-name . service-ref .. service-ref-name .. port-info ... service-endpoint-interface ... wsdl-port .... namespaceURI .... localpart ... stub-property ... call-property ... message-security-binding .... message-security ..... message ...... operation-name ..... request-protection ..... response-protection .. call-property .. wsdl-override .. service-impl-class .. service-qname ... namespaceURI ... localpart . message-destination-ref .. message-destination-ref-name .. jndi-name . message-destination .. message-destination-name .. jndi-name . version-identifier
Example
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glassfish-application-client PUBLIC ""-//GlassFish.org //DTD GlassFish Application Server 3.1 Application Client 6.0//EN"" "http://glassfish.org/dtds/glassfish-application-client_6_0-1.dtd"> <glassfish-application-client> <message-destination-ref> <message-destination-ref-name>ClientQueue </message-destination-ref-name> <jndi-name>jms/security_mdb_OutQueue</jndi-name> </message-destination-ref> </glassfish-application-client>