-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Balazs,

Balazs Michnay wrote:
> 2) open your server.xml and put the following lines between 
> <GlobalNamingResources></GlobalNamingResources> tags (this is what I 
> missed...)
> (Modify it properly...)

Although this is possible, most will recommend against it (including
me). This will create a JNDI resource that is available to all webapps
in your container. You probably only want it available to the webapp you
are currently using.

> <Resource name="jdbc/akr_db" auth="Container"
>                   type="javax.sql.DataSource" removeAbandoned="true"
>                   removeAbandonedTimeout="30" maxActive="100"
>                   maxIdle="30" maxWait="10000" username="balazs"
>                   password="12345"
>                   driverClassName="com.mysql.jdbc.Driver"
>                   url="jdbc:mysql://localhost:3306/akr_db"/>

You should move this to your context.xml file, and remove the
<ResourceLink> element from context.xml. Otherwise, keep these settings
the same.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGUusQ9CaO5/Lv0PARAmJlAKCMtg85QGBNtRsrKaBPcFoHeLxBlwCeL838
8cEGAm1lmvNQ6JidL65h5Cg=
=1LZQ
-----END PGP SIGNATURE-----

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

Reply via email to