Roberto Pellegrino wrote:
> DataSource defined on webApp context are accessed by similar url :
> java:comp/env/jdbc/dataSourceName.
> Now.
> Is't possible use with a url datasource that are only defined in
> GlobalNamingResources (in server.xml) using the name ???
In your META-INF/context.xml, a
t; <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Sent: Wednesday, December 05, 2007 5:13 AM
Subject: Re: Tomcat data source
> I have seen the documentatio many and many times...
> My question is clear? The response to my question is:
> "Isn't possible get dat
In my application is present a interface (visible only to admin) who
permit to specificate what kind of db connection use to make query:
- DataConnection --> url, user, pass, driver. If the data are correct it
work.
- DataSource --> If data source are defined on webApp context the name
is the l
> I have seen the documentatio many and many times...
> My question is clear? The response to my question is:
> "Isn't possible get dataSource reference if is not defined on webApp
> context"...
Yes, it is not possible.The reference should be defined
(either in context.xml, or in web.xml, but it s
I have seen the documentatio many and many times...
My question is clear? The response to my question is:
"Isn't possible get dataSource reference if is not defined on webApp
context"...
This is a limitation if application expose a method to make query in
varius and dinamic datasource
Only p
If you want to access a resource defined in GlobalNamingResources
from a webapp, the context description for the webapp must
contain a ResourceLink for the resource.
ResourceLink is what you use to "map" a server resource name to
the resource name expected by the application (so, is something
that
DataSource defined on webApp context are accessed by similar url :
java:comp/env/jdbc/dataSourceName.
Now.
Is't possible use with a url datasource that are only defined in
GlobalNamingResources (in server.xml) using the name ???
- Robert -
David Smith wrote:
Then you might want to incorporate
Then you might want to incorporate your own DBCP pool and a brief config
page in your webapp.
- Store config data in a properties file inside WEB-INF or somewhere else.
- Use a ServletContextListener to initialize the DataSource and store it
in the ServletContext.
- Implement a secured jsp or s
I have a particular application who make select query and show results.
The dataSource are dinamic and defined by the administrator, not know at
develop time.
I want to be able to use the tomcat dataSource to use the pool...
- Robert -
David Smith wrote:
I don't think you can just define a glo
I don't think you can just define a global datasource and not make a
reference to it in the context.xml file.
--David
Roberto Pellegrino wrote:
Hi all,
i use Tomcat *5.5.17 *my question is quite simple: it's possible to
use a dataSource that are not defined on webApp context???
I define the
Hi all,
i use Tomcat *5.5.17 *my question is quite simple: it's possible to use
a dataSource that are not defined on webApp context???
I define the dataSource on server.xml as follow:
maxActive="100" maxIdle="30" maxWait="1"
name="jdbc/DataSourceName"
password="pass" type="j
11 matches
Mail list logo