The element hierarchy in the sun-sip.xml file is as follows:
sun-sip-app . security-role-mapping . . role-name . . principal-name . . group-name . session-config . . session-manager . . . manager-properties . . . . property (with attributes) . . . . . description . . . store-properties . . . . property (with attributes) . . . . . description . . session-properties . . . property (with attributes) . . . . description . 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-ref . . message-destination-ref-name . . jndi-name . class-loader . . property (with attributes) . . . description . property (with attributes) . . description . message-destination . . message-destination-name . . jndi-name
Here is a sample sun-sip.xml file:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sun-sip-app PUBLIC '-//Sun Microsystems, Inc.//DTD Application Server 9.1.1 Servlet 2.5//EN' 'http://www.sun.com/software/appserver/dtds/sun-sip-app_1_0-0.dtd'> <sun-sip-app> <session-config> <session-manager/> </session-config> <resource-ref> <res-ref-name>mail/Session</res-ref-name> <jndi-name>mail/Session</jndi-name> </resource-ref> </sun-sip-app>