2 Replies Latest reply on Aug 1, 2013 12:38 PM by howardl815

    EJBClientContext.setSelector throwing SecurityException

    howardl815

      Hi,

       

      I have two servers running in domain mode. (with different port offset in one physical machine). We are trying to load jboss-ejb-client.properties in start up bean (using @Startup) by using PropertiesBasedEJBClientConfiguration, ConfigBasedEJBClientContextSelector and set the selector from EJBClientContext.setSelector(). But it's throwing SecurityException: EJB client context selector may not be changed. I've followed Pai's EJB invocations from a remote server instance, but I'm still getting the same exception. It seems that the doc is written for a stand alone server not for servers in domain mode. How do I do this for servers running in domain mode? I've included domain.xml and host.xml.

       

      Thank you very much!