Well, finally it works (using jboss-4.0.3SP1 and jboss-4.0.4.CR2 too)!! Here is the code:
@Local public interface EmployeeSessionLocal { ... } @Stateless ( name="Employee" ) public class EmployeeSessionBean implements EmployeeSessionLocal { @Resource ( mappedName="java:/jdbc/OracleERPDS" ) private DataSource ds; ... } public class Controller extends HttpServlet { public void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { InitialContext context = new InitialContext(); EmployeeSessionLocal session = (EmployeeSessionLocal) context.lookup( "ysf/Employee/local" ); ... } } Thanks to everybody!! José Luis. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937643#3937643 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937643 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user