Tags

Berkeley DB XML and OxygenXML on Mac OSX (part 3)

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

  1. We create a folder to create an environment in.
    E.g. /dbxml2
  2. 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

    result in Finder
  3. we create a container

    create container

    result in Finder
  4. to do some CRUD operations now, work in transactional mode

    transactional mode
  5. E.g. Put an XML doc in the container

    PutDocument
    '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'.
  6. Commit the transaction

    commit

Connecting to this environment from OxygenXML

The only thing to do is adding a new connection.

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.

view on externally created environment


Comments