-
Language:
English
-
Language:
English
Red Hat Training
A Red Hat training course is available for Red Hat JBoss Data Virtualization
F.2. Registering CND Files via Configuration
In addition to using the hierarchical database public API as described above, it is possible to configure a repository to import, at startup, one or more CND files using the following format:
{ "name" : "Repository with node types", "storage" : { "transactionManagerLookup" : "org.infinispan.transaction.lookup.DummyTransactionManagerLookup" }, "workspaces" : { "predefined" : ["ws1", "ws2"], "default" : "default", "allowCreation" : true }, "node-types" : ["cnd/cars.cnd", "cnd/aircraft.cnd"] }
where the
node-types
attribute accepts an array of strings, representing paths to CND files, accessible at runtime.
Note
If CND files are configured to be imported at repository startup, they will overwrite each time any pre-existing node types with the same name that have been registered previously.