Avoiding errors when creating a messaging engine with a file store or a data store by
Use different combinations of parameters can create a file store or a data store according the requirements. The outcome varies in server and cluster scopes.
For a detailed list of wsadmin command script attributes and examples for file store or data store of a messaging engine, refer to createSIBEngine command.
Server scope
When we add a server as a new bus member by using administrative commands (by specifying createSIBEngine -server) take note of the following:
- If we do not specify the type of message store, then a file store is created by default. If we specify -createDefaultDatasource or -dataSourceJndiName, then a data store is created.
- If we choose to use a file store (by specifying -filestore), then only file store attributes can be specified.
- If we choose to use a data store (by specifying -datastore):
- Only data store attributes can be specified.
- If we set -createDefaultDatasource to False then specify -dataSourceJndiName.
Cluster scope
When we add a cluster as a new bus member by using administrative commands (by specifying createSIBEngine -cluster) take note of the following:
- If we choose to use a file store (by specifying -filestore):
- We must not use the default log file, permanent store file and temporary store file directories because they are not suitable for cluster engines.
- Specify -logDirectory, -permanentStoreDirectory and -temporaryStoreDirectory to be at locations that all members of the cluster can access on the file system.
- If we choose to use a data store (by specifying -datastore):
- We must not specify -createDefaultDatasource because the default data source is not suitable for cluster engines.
- Specify -dataSourceJndiName, giving the name of an existing data source.
Reference topic