hmm, so maybe the name is wrong. In glassfish default JNDI name of remote interface is remote interface's class name. I think this should work:
new InitialContext().lookup(TwoEjbRemote.class.getName())
[Message sent by forum member 'sasol' (sasol)]
http://forums.java.net/jive/thread.jspa?messageID=334979