Database resource injection problem

Hi. I am having a problem getting a simple jdbc resource from my glassfish server. I am doing something like this:

@Resource(mappedName = "jdbc/sample")

protected static DataSource pool;

... in one of my classes but the pool is always null. I am sure the resource exists since it comes as a default resource in glassfish. Any ideas what could be happening?

Thanx in advance

[404 byte] By [rreyesa] at [2007-11-27 10:19:04]
# 1

This forum is for the Sun Java System Web Server, not the Sun Java System Application Server (glassfish). You will likely have better success by posting your question to the Application Server forum(s) at:

http://forum.java.sun.com/category.jspa?categoryID=109

wyb2005a at 2007-7-28 16:55:26 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

Thanx. I will...

rreyesa at 2007-7-28 16:55:26 > top of Java-index,Web & Directory Servers,Web Servers...