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

