Skip to main content
Version: 2.17.x.x LTS

Global Initialization Section

The Global Initialization section defines a list of DataObjects. DataObjects are used to implement functionality to be shared between multiple other plugin instances (e.g., connections pools). DataObjects in the Global Initialization section are instantiated when the initialization call is done (see Export Section). The following global init section initializes a JDBCConnectionPool and an LDAPConnectionPool.

<init>
<object type="JDBCConnectionPool" name="dataSource">
<dp:paraVal name="connectionUrl" value="jdbc:oracle:thin:@hispano:49185:ESAU"/>
<dp:paraVal name="username" value="dev"/>
<dp:paraVal name="password" value="password"/>
<dp:paraVal name="driver" value="oracle.jdbc.OracleDriver"/>
</object>
<object type="LDAPConnectionPool" name="initalContext">
<dp:paraVal name="connectionUrl" value="ldaps://aldvia.adnovum.ch"/>
<dp:paraVal name="username" value="cn=admin,cn=users,dc=durg,dc=local"/>
<dp:paraVal name="password" value="password"/>
</object>
</init>

When running nevisDataPorter as a daemon, the instances are created when the daemon is started. For every nevisDataPorter in the worker pool a local set of DataObjects is created.