The element hierarchy in the sun-application-client.xml file is as follows:
sun-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 . . . . name . . . . value . . . call-property . . . . name . . . . value . . . message-security-binding . . . . message-security . . . . . message . . . . . . java-method . . . . . . . method-name . . . . . . . method-params . . . . . . . . method-param . . . . . . operation-name . . . . . request-protection . . . . . response-protection . . call-property . . . name . . . value . . wsdl-override . . service-impl-class . . service-qname . . . namespaceURI . . . localpart . message-destination . . message-destination-name . . jndi-name . message-destination-ref . . message-destination-ref-name . . jndi-name . java-web-start-access . . context-root . . eligible . . vendor
Here is a sample sun-application-client.xml file:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sun-application-client PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Application Client 5.0//EN" "http://www.sun.com/software/appserver/dtds/sun-application-client_5_0-0.dtd"> <sun-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> </sun-application-client>