[jboss-user] [Beginners Corner] - Remote client - @EJB

DGuralnik do-not-reply at jboss.com
Mon Jan 1 18:21:22 EST 2007


I've got a problem in my test remote appplication:

public class TerminalTest  {
	@EJB(name = "mcp/TerminalDao/remote")
	private TerminalDao terminalDao;

	public TerminalDaoTest() {
		//try {
		//	InitialContext ctx = new InitialContext();
		//	terminalDao = (TerminalDao) ctx.lookup("mcp/TerminalDao/remote");
		//} catch (Exception e) {

It is definition of TerminalDao:

public interface TerminalDao {

I cann't understand why terminalDao attribute is not inizialized by @EJB. All works well when I uncomment the code in the constructor.

Thank you.

Best regards,

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997142

More information about the jboss-user mailing list