I would like to implement the following functionality - not sure how to do it in IS 4.6 - need advice.
I want to create a Java FlowService which will run once - (i.e. everytime the server starts or everytime the folder gets loaded). This JavaService will read a file which contains ErrorCodes and ErrorMessages. This service will then build a data structure (need help here with a data type… maybe a Record List), which will contain all ErrorCode/ErrorMessage combinations.
Here is the most important thing: I want this Java Service to build this data structure only once and then publish it into the Pipeline for all other Flow Services to use at anytime.
I want this data structure to ‘live’ in the Pipeline indefinitely (until the server is re-started) - so that all other Flow Services can contintue to use this Data Structure without re-loading it from file everytime… essentially a Singleton Pattern, but not sure how to implement it in IS 4.6 - Please help!