Hello Petr Mates,
Did you tested those codes with JBoss AS 7.1.1 Final???
I always get bellow exception on the server during EJB client calling:
23:17:39,421 ERROR [org.jboss.ejb3.invocation] (EJB default - 4) JBAS014134: EJB Invocation failed on component SecuredR
emoteSession for method public abstract java.lang.String com.ybxiang.nms.server.ejb.session.ISecuredRemoteSession.getNam
e(): javax.ejb.EJBAccessException: JBAS014502: Invocation on method: public abstract java.lang.String com.ybxiang.nms.se
rver.ejb.session.ISecuredRemoteSession.getName() of bean: SecuredRemoteSession is not allowed
at org.jboss.as.ejb3.security.AuthorizationInterceptor.processInvocation(AuthorizationInterceptor.java:101) [jbo
ss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]