Sharing state between different CordApps

(Andreas Mark Yvgeny) #1

Is it possible to share a state between different CordaApps running in the some node? Just to know if it’s possible to modularize an application.


Share IOU state with other CordApps
(Richard Green) #2

Absolutely it is. For example, our “Cash” state is used in a number of demonstration CordApps.

(Andreas Mark Yvgeny) #3

Thanks @richg!

But suppose, for example, I want to share IOU state from CordappTutorial with another CordApp. In that case, I would only need to put the state class in a separate JAR and use it in both projects, or do I need to implement a specific interface or something like that?