Announcement Announcement Module
Collapse
No announcement yet.
Is Spring Integration DirectChannel thread safe as an instance variable? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is Spring Integration DirectChannel thread safe as an instance variable?

    One of my coworker defines a DirectChannel as an instance variable of a spring bean singleton. The instance variable DirectChannel is then used by MessagingTemplate defined in a method of that singleton to send and receive message. By default, instance variable is not thread safe, does spring DirectChannel implementation make it thread safe? I search through whole spring integration api, the document doesn't mentions the thread safety concern for this and some other components.
    ‚Äč
    Generally speaking, are Spring integration components, like Channels, Endpoints thread safe to be defined as a bean's instance variable?

    Any help is highly appreciated.
Working...
X