Hi,

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:

@Remote
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,
Dmitry

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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to