apache.org
Sent: Thu, June 17, 2010 6:37:56 PM
Subject: Re: Resource Annotation has no effect but JNDI Lookup works (JDBC
Resource)
@gurkan & Chris: actually I don't want to use the resource directly in a
servlet or JSP - due to architectural reasons - so is there a way to inject
resour
@gurkan & Chris: actually I don't want to use the resource directly in a
servlet or JSP - due to architectural reasons - so is there a way to inject
resources into plain java classes?
@Pid: Thanks for the Information. I will check out the spec and hope that it
is not too much to read ;-)
And tha
List
Sent: Thu, June 17, 2010 2:37:05 AM
Subject: Re: Resource Annotation has no effect but JNDI Lookup works (JDBC
Resource)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gurkan,
On 6/16/2010 10:44 AM, Gurkan Erdogdu wrote:
> Please define some servlet and try with it,
>
> class
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gurkan,
On 6/16/2010 10:44 AM, Gurkan Erdogdu wrote:
> Please define some servlet and try with it,
>
> class TestClass extends HttpServlet{
>
> private @Resource(name="jdbc/TestDb") DataSource datasource;
>
> @PostConstruct
> public
On 16/06/2010 23:13, marble4u wrote:
>
> Thank you, that helped a lot! I am new to j2ee... I have a lot of application
> logic that will be used without representation as a jsp or a servlet:
>
> objects that extend TimerTask and register at a timer objekt. they execute
> code which accesses a dat
Thank you, that helped a lot! I am new to j2ee... I have a lot of application
logic that will be used without representation as a jsp or a servlet:
objects that extend TimerTask and register at a timer objekt. they execute
code which accesses a database (importer classes that collect data from
di
tConstruct(){
//Check datasource here
}
}
--Gurkan
From: marble4u
To: users@tomcat.apache.org
Sent: Wed, June 16, 2010 11:27:24 AM
Subject: Resource Annotation has no effect but JNDI Lookup works (JDBC Resource)
Hello everybody,
I have been struggel
Hello everybody,
I have been struggeling a long time with this problem, but didn't solve it.
I have a tomcat server 6.0.24 and try to use the resource annotation to get
ms sql database access. It works fine if i do a jndi lookup without
annotations, but if I try to use resource injection my Data