Menu

#130 Wrap JavaToEChartsMachine.getInstance() in ContainerAdapter

open
sipservlet (76)
5
2012-05-09
2012-02-02
Tom Smith
No

JavaToEChartsMachine.getInstance() retrieves an SAS attribute, so this should be protected as well.

Discussion

  • Tom Smith

    Tom Smith - 2012-02-10

    This is not straightforward. WlssContainerAdapter should allow this without issue; however IBMContainerAdapter uses the AsynchronousWorkAPI, which restricts return values to be Serializable. JavaToEChartsMachine currently is not Serializable.

    The issue is that JavaToEChartsMachine contains a FeatureBox, which is not Serializable. The FeatureBox is used for putEvent(). A workaround would be to make the FeatureBox transient, and restore it if needed to putEvent(). JavaToEChartsMachine knows its SipApplicationSession ID, so it could retrieve the FeatureBox from the SipApplicationSession.

     
  • Tom Smith

    Tom Smith - 2012-05-09
    • priority: 7 --> 5
     

Log in to post a comment.