Modularity Among Applications with a Shared Module Project
This sample shows how modularity can be achieved among two application module projects and a shared module project.
Two scenarios in this sample show how a process in a shared module can be used by other application modules, without requiring changes to the contents of the shared module. The scenarios are demonstrated in the following projects:
Application Module Projects
- tibco.bw.sample.core.modularity.AppsWithSharedModule.App.HelloWorldConsumer
- tibco.bw.sample.core.modularity.AppsWithSharedModule.App.TimerEventComponent
Shared Module Project
Procedure
Scenario 1
Scenario 2
Result
Scenario 1
The following messages are written by the shared module and application module to the helloWorldServiceConsumer.log file at c:\tmp\AppsWithSharedModule location.
Scenario 2
The following messages are written by the shared module and application module to the timerEvent.log file at c:\tmp\AppsWithSharedModule location.
Understanding the Configuration
Scenario 1: The MainProcess included in the tibco.bw.sample.core.modularity.AppsWithSharedModule.App.HelloWorldConsumer application module, invokes the HelloWorldServiceProcess in the tibco.bw.sample.core.modularity.AppsWithSharedModule.SharedModule. The Write To File activity logs the output from the calling process, HelloWorldServiceProcess.
Scenario 2: The Process included in the tibco.bw.sample.core.modularity.AppsWithSharedModule.App.TimerEventComponent application module invokes the TimerEventProcess in the tibco.bw.sample.core.modularity.AppsWithSharedModule.SharedModule.