usage of @resource annotation

2009-07-08 Thread alla winter
I can sucessfully access the DataStore using JNDI, but cannot access it when I am using @RESOURCE annotation. I do not use JPA. I though that I do not need JPA for @RESOURCE annotation Here it is the code: * private* @Resource (mappedName=jdbc/Cobra) DataSource ds; *public* DataSource

Re: usage of @resource annotation

2009-07-08 Thread Mark Thomas
alla winter wrote: TOMCAT 5.5.25; Windows XP, JDK 1.5.0_17. Currently I am trying to use Tomcat from IBM RAD What makes you think annotations are even supported with that combination? Hint: read the 2.4 Servlet spec. Mark

Re: usage of @resource annotation

2009-07-08 Thread alla winter
I would appreciate if you can tell me specifically what is wrong. thanks On Wed, Jul 8, 2009 at 1:04 PM, Mark Thomas ma...@apache.org wrote: alla winter wrote: TOMCAT 5.5.25; Windows XP, JDK 1.5.0_17. Currently I am trying to use Tomcat from IBM RAD What makes you think annotations are

RE: usage of @resource annotation

2009-07-08 Thread Caldarale, Charles R
From: alla winter [mailto:alla1.win...@gmail.com] Subject: Re: usage of @resource annotation I would appreciate if you can tell me specifically what is wrong. Is it too hard to read the servlet spec? Questions to ask yourself: 1) What servlet spec version supports use of annotations? 2

Re: usage of @resource annotation

2009-07-08 Thread alla winter
thanks On Wed, Jul 8, 2009 at 1:28 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: alla winter [mailto:alla1.win...@gmail.com] Subject: Re: usage of @resource annotation I would appreciate if you can tell me specifically what is wrong. Is it too hard to read