Hi experts, I do have a legacy WebApp which has been running fine on GF
2.x. I tries to get a connection from a database resource pool.
Unfortunately it does not use portable JNDI names yet. I wonder if I can
tweak GF or deployment descriptors to make it work without code changes.
I wrote a little LookupTest Servlet ...
web.xml includes
<resource-ref>
<res-ref-name>abc/jdbc/FooSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<mapped-name>jdbc/SOMEDataSource</mapped-name>
</resource-ref>
Following lookups are successful
(DataSource)ctx.lookup("jdbc/SOMEDataSource")
(DataSource)ctx.lookup("java:comp/env/abc/jdbc/FooSource")
However the lookup
(DataSource)ctx.lookup("abc/jdbc/FooSource")
fails.
I've read a lot of docs, but unfortunately I have not really understood
why it fails.
Thanks for shedding some light ...
Rgds,
Bernhard
--
Painstaking Minds
IT-Consulting Bernhard Thalmayr
Herxheimer Str. 5, 83620 Vagen (Munich area), Germany
Tel: +49 (0)8062 7769174
Mobile: +49 (0)176 55060699
bernhard.thalmayr_at_painstakingminds.com - Solution Architect
http://www.xing.com/profile/Bernhard_Thalmayr
http://de.linkedin.com/in/bernhardthalmayr
This e-mail may contain confidential and/or privileged information.If
you are not the intended recipient (or have received this email in
error) please notify the sender immediately and delete this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.