Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 6. Creating Web Service Applicat... > Sharing Data Between Handler Invocat...

6.14. Sharing Data Between Handler Invocations

6.14.1. Problem

You want to share data between invocations of your handlers within a chain during processing, but handler instances cannot rely on thread-local state.

6.14.2. Solution

Obtain the message context from the parameter to your handler, and add data to it. There are predefined properties you can set and access later, or you can add your own. These properties are exposed as a map.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial