Labels

Wednesday, June 13, 2012

sample examples of glassfish-application.xml and sun-application.xml

The following glassfish-application.xml and sun-application.xml have the same content. glassfish-application.xml (the new name for sun-application.xml) is the file for specifying additional application (EAR) configuration in GlassFish 3.1.

sun-application.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-application PUBLIC "-//Sun Microsystems, Inc.//DTD GlassFish Application Server 3.0 Java EE Application 6.0//EN" "http://www.sun.com/software/appserver/dtds/sun-application_6_0-0.dtd">
<sun-application>
 <web>
   <web-uri>hello.war</web-uri>
   <context-root>hi</context-root>
 </web>
 <security-role-mapping>
   <role-name>admin</role-name>
   <principal-name>js</principal-name>
   <group-name>manager</group-name>
 </security-role-mapping>
</sun-application>
glassfish-application.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-application PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Java EE Application 6.0//EN" "http://glassfish.org/dtds/glassfish-application_6_0-1.dtd">
<glassfish-application>
 <web>
   <web-uri>hello.war</web-uri>
   <context-root>hi</context-root>
 </web>
 <security-role-mapping>
   <role-name>admin</role-name>
   <principal-name>js</principal-name>
   <group-name>manager</group-name>
 </security-role-mapping>
</glassfish-application>
 

No comments:

Post a Comment