1 Reply Latest reply on Nov 14, 2012 12:47 AM by jaikiran pai

    How to catch (authentication) errors from JBoss LoginModule in (remote) EJB Client

    Maxim Frolov Newbie

      My standalone client uses ConfigBasedEJBClientContextSelector to connect to a remote JBoss AS 7.1.3:



      EJBClientContext.setSelector(new ConfigBasedEJBClientContextSelector(clientConfiguration));




      During The EJBClientContext.setSelector() call the Server throws javax.security.sasl.SaslException which is not rethrown by setSelector();

      setSelector() returns without errors or any exceptions.

      If the client then calls someEjbMethod() the IllegalStateException is thrown.


      My client have to react on SaslException.


      Is it possible to catch SaslException or any other exceptions from the remote server?