can not find Resource?
package testejb.session.stateless;
import javax.ejb.*;
import javax.sql.*;
import java.sql.*;
@Stateless
publicclass TestBeanimplements TestInterface{
@Resource(jndiName="java:/MYSQLDS",resourceType="javax.sql.DataSource")
public DataSource ds;
public String helloworld()
{
try{
Connection con=ds.getConnection();
DatabaseMetaData dma=con.getMetaData();
return dma.getDriverName();
}
catch(Exception x)
{
return"发生错误:"+x.getMessage();
}
}
}
when use ant to compile it says can not found class Resource
but if delete the code @Resource..., it can compiled succeed.
so where is Resource class?
it is not in the package javax.ejb?
I use jboss ejb3's lib , so puzzled with this, where can download the correct lib?

