Resource references

Resource references are used to obtain connector and database connections, and to access JMS connection factories, JavaMail sessions, and URL links.

NoteThe configuration file is the same for Web applications, application clients, and EJB components. For example, you would modify the ejb-jar.xml file to modify an EJB.

StepsAdding or modifying a resource reference

  1. Display the Configuration tab.

  2. Modify the reference tags of interest. For example:

    <resource-ref id="HTMLGenerator105_jdbc_default">
            <res-ref-name>jdbc/default</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
          </resource-ref>
          <resource-ref id="HTMLGenerator105_jdbc_JavaCache">
            <res-ref-name>jdbc/JavaCache</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
          </resource-ref>
    
  3. Click Apply.