Hi Hans,

in my server.xml I have:

  <GlobalNamingResources>
    <Resource name="jdbc/GlobalRealmDB"
              auth="Container"
              type="javax.sql.DataSource"
       description="allows connections to be made to mySQL">
    </Resource>
    <ResourceParams name="jdbc/GlobalRealmDB">
      <parameter>
        <name>factory</name>
        <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
      </parameter>
      etc etc

and then:

        <Context path="/linklib" docBase="linklib"
          debug="5" reloadable="true" crossContext="true">
          <ResourceLink name="jdbc/RealmDB"
            global="jdbc/GlobalRealmDB"
            type="javax.sql.DataSource"/>
          etc. etc.

for each webapp that needs it. I don't put any of it in my web.xml but perhaps somebody else will tell you if you can, and how.


Regards Adam



On 09/09/2003 10:04 AM Johann Uhrmann wrote:
Hello,

what are the semantics of the resource-env-ref tag in the
deployment descriptor?

Has every object (e.g. DataSources for DB access) to be declared
in the deployment descriptor or is a Resource/ResourceLink in
the server.xml sufficient?

Does the application have to declare the use of a resource twice?
(via Resource in the server.xml and via resource-env-ref in web.xml)

Those questions might look like faq, but unfortunately I could not
find any documentation about it.

Kind regards,

Hans


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



-- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to