## Sample weblogic.xml

Back to the Writing a Web Application Developers Guide

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 2.2//EN"
    "http://www.beasys.com/j2ee/dtds/weblogic-web-jar.dtd">

    <weblogic-web-app>
         <description>WebLogic Descriptor</description>
         <security-role-assignment>
           <role-name>
             gold_customer
           </role-name>
           <principal-name>
             gold
           </principal-name>
         </security-role-assignment>
         <security-role-assignment>
           <role-name>
             customer
           </role-name>
           <principal-name>
             j2ee
           </principal-name>
           <principal-name>
             cust
           </principal-name>
         </security-role-assignment>
         <reference-descriptor>
            <resource-description>
    	  <res-ref-name>
    	    jdbc/EstoreDataSource
    	  </res-ref-name>
    	  <jndi-name>
    	    jdbc.EstoreDB
    	  </jndi-name>
            </resource-description>
            <ejb-reference-description>
    	  <ejb-ref-name>
    	    ejb/catalog
    	  </ejb-ref-name>
              <jndi-name>
    	    estore/catalog
              </jndi-name>
            </ejb-reference-description>
            <ejb-reference-description>
    	  <ejb-ref-name>
    	    ejb/cart
    	  </ejb-ref-name>
              <jndi-name>
    	    estore/cart
              </jndi-name>
            </ejb-reference-description>
            <ejb-reference-description>
    	  <ejb-ref-name>
    	    ejb/account
    	  </ejb-ref-name>
              <jndi-name>
    	    estore/account
              </jndi-name>
            </ejb-reference-description>
            <ejb-reference-description>
    	  <ejb-ref-name>
    	    ejb/order
    	  </ejb-ref-name>
              <jndi-name>
    	    estore/order
              </jndi-name>
            </ejb-reference-description>
            <ejb-reference-description>
    	  <ejb-ref-name>
    	    ejb/scc
    	  </ejb-ref-name>
              <jndi-name>
    	    estore/scc
              </jndi-name>
            </ejb-reference-description>
            <ejb-reference-description>
    	  <ejb-ref-name>
    	    ejb/inventory
    	  </ejb-ref-name>
              <jndi-name>
    	    estore/inventory
              </jndi-name>
            </ejb-reference-description>
         </reference-descriptor>
    </weblogic-web-app>

Copyright © 2000 BEA Systems, Inc. All rights reserved. Required browser: Netscape 4.0 or higher, or Microsoft Internet Explorer 4.0 or higher. Last updated 05/26/2000