I\'m having trouble trying to use the @Resource annotation with Java EE 6 and Glassfish 3.1 (embedded). I want to look up a JNDI datasource, so I\'m trying to get it workin
As a test, can you try "jdbc/__default" as the lookup string? For my datasources I look them up using a jndi name I have specified, always with the pattern "jdbc/MyDataSourceName".
@Resource(lookup="jdbc/MyDataSourceName") works well. Never tried to look up the default ds, particularly not through the java:global namespace.