I dont know if it is required, but do you have a resource-ref
entry in your web.xml, something like this?
resource-ref
descriptionmySQL Datasource/description
res-ref-namejdbc/myAPP/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
where
database connection from
rem ote machine using JNDI
I dont know if it is required, but do you have a resource-ref
entry in your web.xml, something like this?
resource-ref
descriptionmySQL Datasource/description
res-ref-namejdbc/myAPP/res-ref-name
res-typejavax.sql.DataSource/res-type
: problem in getting database connection from
rem ote machine using JNDI
In your deploy XML you should have somethink like this:
ResourceLink global=jdbc/global name=jdbc/myApp
type=javax.xml.DataSource/
Where jdbc/global is defined in the Data Sources of the tomcat server.
Jan
rahul
the remote DB have a schema called myDB?
Andoni.
- Original Message -
From: rahul
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Tuesday, October 25, 2005 10:08 AM
Subject: RE: ASKING AGAIN: problem in getting database connection from rem
ote machine using JNDI
Thanks for help Jan,
But how
To: Tomcat Users List
Subject: Re: ASKING AGAIN: problem in getting database connection from
rem ote machine using JNDI
In your deploy XML you should have somethink like this:
ResourceLink global=jdbc/global name=jdbc/myApp
type=javax.xml.DataSource/
Where jdbc/global
[mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. Oktober 2005 11:32
An: Tomcat Users List
Betreff: Re: ASKING AGAIN: problem in getting database connection from
rem ote machine using JNDI
Hello,
I am looking at this error message you are getting:
Cannot create PoolableConnectionFactory (Unknown
@tomcat.apache.org
Subject: RE: ASKING AGAIN: problem in getting database connection from
rem ote machine using JNDI
Inspired by the last mail: Have you configured your remote database to
listen
to the ip-adress of your client. Does your databse accept connections from
there?
And is there a user