Topic
1 reply Latest Post - ‏2013-01-28T15:23:13Z by zhangyu
SystemAdmin
SystemAdmin
3556 Posts
ACCEPTED ANSWER

Pinned topic Share Data between SCA caling. Using ThreadLocal in J2EE.

‏2013-01-28T08:27:38Z |
Is there any possibilities, to share some context data between sca calling in the same transaction?
I think, ThreadLocal is not good idea, but i have no other variants.
Putting context in a SCA service method signature - also bad way for me.
WPS 6.1.2 Please help!
Updated on 2013-01-28T15:23:13Z at 2013-01-28T15:23:13Z by zhangyu
  • zhangyu
    zhangyu
    179 Posts
    ACCEPTED ANSWER

    Re: Share Data between SCA caling. Using ThreadLocal in J2EE.

    ‏2013-01-28T15:23:13Z  in response to SystemAdmin
    you can use wbi session spi to attach your context on sca message header:
    http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r1mx/topic/com.ibm.websphere.wbpmcore.javadoc.612.doc/web/spidocs/com/ibm/wsspi/session/package-summary.html