2 Replies Latest reply on Jul 25, 2004 4:57 AM by jain_anuj

    Exception message propogation issue

    jain_anuj

      Hi,
      I am using JAAS based authentication in my application, but if some exception condition occurs in server side login module and i set some message in the login exception, then i don`t recieve the exception message in EJB client.

      Also is it possible to throw customLoginException in the server side login module so that i can show the correct error message to my remote desktop client.

      Any help will be highly appreciated
      Thanks,
      Anuj

        • 1. Re: Exception message propogation issue
          starksm64

          No, the current security interface for the authentication contract does not throw an exception on failure. It simply provides a true/false response to the question of whether the user is authenticated. There should be an accessor for any exception information so that it can be propagated back to clients.

          • 2. Re: Exception message propogation issue
            jain_anuj

            Thanks for the answer. Can you provide some sample code or pointers on how to implement the accessor to propogate the exception information to client
            - Anuj