> ...
> I am using tomcat JNDI for getting databse connection in my application
[quoted text clipped - 6 lines]
> Cannot create PoolableConnectionFactory (Unknown database 'myDB')
> ...
To me this seems to be a misconfiguration of the remote database. Are you
sure you have 'myDB' on the remote machine?
Changing the IP address as in your example should work, normally.
Andreas
Roedy Green - 25 Oct 2005 02:12 GMT
On Tue, 25 Oct 2005 01:02:05 +0200, "Andreas Thiele"
<nospam@nospam.com> wrote, quoted or indirectly quoted someone who
said :
>To me this seems to be a misconfiguration of the remote database. Are you
>sure you have 'myDB' on the remote machine?
Often "can't find" problems are actually spelling errors. In Java,
presume everything is case sensitive and you won't get in trouble.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
Rahul - 25 Oct 2005 06:07 GMT
I am absolutely sure about that. since I am using same script for
creating database on local machine as well as on remote machine
Rahul - 27 Oct 2005 06:53 GMT
Finally I figured out the problem
Actually the context file which tomcat creates for every application
in conf/<engine>/<application> folder was not getting updated.
It was having the localhost settings instead of remote server.
After correcting this file my application is working perfectly.
Thanks for the help