Hi,

Is the @Resource annotation supposed to work for POJOs also in Seam or is it an 
EJB-only thingie?

I got the picture that if I have a datasource with <jndi-name>Foo</jndi-name>, 
I could just use 

@Resource(mappedName="Foo") 
  | private DataSource ds;

and have it injected, however null is all I get. Or do I need some xml 
resource-refs also? Tried using name="Foo" an a combo of java:Foo, java:/Foo, 
java:/jdbc/Foo etc but still nulls.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095775#4095775

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095775
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to