jms-spec
  1. jms-spec
  2. JMS_SPEC-24

Clarify classloader used in ObjectMessage.getObject() and/or provide new method getObject(ClassLoader classLoader)

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      It is specified neither in the spec nor in the API JavaDoc which ClassLoader is to be used, when the object gets deserialized in ObjectMessage.getObject().
      This omission lead to different implementations (and bugs) among JMS providers, as can be seen here:
      http://www-01.ibm.com/support/docview.wss?uid=swg1IC72855
      http://www.coderanch.com/t/313402/EJB-JEE/java/Exception-receiving-ObjectMessage-JMS
      http://forums.oracle.com/forums/thread.jspa?threadID=738545
      http://community.jboss.org/message/437144#437144

      Alternatively, if it isn't possible to specify the class loader, add a method "Serializable getObject(ClassLoader classLoader) to ObjectMessage.

        Activity

        F.Degenaar created issue -
        Nigel Deakin made changes -
        Field Original Value New Value
        Tags pd20-forreview
        Nigel Deakin made changes -
        Summary Clarify, which ClassLoader to use when invoking ObjectMessage.getObject() Clarify classloader used in ObjectMessage.getObject() or provide new method getObject(ClassLoader classLoader)
        Nigel Deakin made changes -
        Summary Clarify classloader used in ObjectMessage.getObject() or provide new method getObject(ClassLoader classLoader) Clarify classloader used in ObjectMessage.getObject() and/or provide new method getObject(ClassLoader classLoader)
        Nigel Deakin made changes -
        Tags pd20-forreview pd20-forreview pd20-forreview-minor
        Nigel Deakin made changes -
        Tags pd20-forreview pd20-forreview-minor pd20-forreview-minor

          People

          • Assignee:
            Unassigned
            Reporter:
            F.Degenaar
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: