Prerequisites described in Berkeley DB XML and OxygenXML on Mac OSX (part 1).
Important
OxygenXML always connects to a Berkeley DBXML environment in
transactional mode.
If one is using the dbxml shell application, it defaults to non-transactional mode.
So to get the 2 applications work in a compatible way we need to make sure we use the shell application in transactional mode.
Procedure with the Berkeley DBXML Shell
- We create a folder to create an environment in.
E.g. /dbxml2
- we create the environment by running from the shell
dbxml -c -h /dbxml2 -t
| argument |
explanation |
| -h |
to define the directory to be used as database environment |
| -c |
to create a new environment in the folder defined with -h |
| -t |
to specify the transactional mode |

- we create a container


- to do some CRUD operations now, work in transactional mode

- E.g. Put an XML doc in the container

'Apples.xml' becoming the name of the document within Berkeley DBXML and 'f' as indicator that we load a file as opposed to 's' for indicating 'load as string'.
- Commit the transaction

Connecting to this environment from OxygenXML
The only thing to do is adding a new connection.

This time we indicated to 'join an existing environment' taking over all settings set externally.
Now we have access to the externally created environment and containers from within OxygenIDE.

Comments