Accessing Module Properties from Java Global Instance
You can access module properties from Java Global Instance so that at the time of deployment, these properties can be configured.
To access the
ActiveMatrix BusinessWorks Module Properties in a user-defined Java code referenced in Java Global Instance, follow these steps:
- Procedure
- In the
ActiveMatrix BusinessWorks 6.x
module, specify a dependency on the package "com.tibco.bw.palette.shared.java" using
Import-Package.
- Double-click Dependencies located under . This opens BW Manifest Editor.
- In the Imported Packages section, click the Add tab to add the dependency on the com.tibco.bw.palette.shared.java package.
- Add the
@ModuleProperties annotation to the method that accepts only one parameter of type
java.lang.HashMap.
Through this HashMap you can access the name or value pair of ActiveMatrix BusinessWorks module properties.