Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1955

XMBean Interceptor for InvokerAdaptorService to deal with NonSerializableExceptions

XMLWordPrintable

      This patch add a Interceptor to org.jboss.jmx.connector.invoker.InvokerAdaptorService besides AuthenticationInterceptor that is responsable for prevent remote clients to launch NonSerializable exception.

      The interception have 3 types of action: Invisible, Null and Wrapper.

      In the Invisible mode all NonSerializable fields are ignored so if you call getMBeanInfo all NonSerializable will be remove and returned to your remote client(twiddle, MC4J, etc). This mode is more tested so it is recommended.

      In the null mode NonSerializable fields are visible but always return Null.

      The wraper mode is not implemented, but the idea is replace the NonSerializable Class for another

      The interceptor is only a class. The tests are in the patch too. Only test for invisible mode. I´m still doing tests for the other modes.

      Any idea is very appreciated. I dont have sufficient time to work more in this code. But I hope to do soon.

              dandread1@redhat.com Dimitrios Andreadis
              fabcipriano_jira Fabiano C. de Oliveira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 3 hours
                  3d 3h