A CentraSite JAXR client can call XQJ (XQuery API for Java technology) functionality directly in order to access the registry data. JAXR itself also uses XQJ to access the registry. For more information about XQJ, please refer to the specification (JSR 225), which you can download from this URL: http://jcp.org/en/jsr/detail?id=225.
The CentraSite CentraSiteConnection
maintains
an XQConnection
object which it uses for its own
purposes as well as for direct client access. The client can get this object as
follows, assuming he already has a JAXR-based connection:
Connection jaxrCon = ...; XQConnection xqjCon = ((CentraSiteConnection)jaxrCon).getXQConnection();
As both the client and JAXR use the same XQJ connection, the following restrictions apply (assuming the client uses JAXR and XQJ in parallel):
The client must not call any JAXR-based
save...
method if he has an open transaction, because
JAXR performs the save...
methods as one atomic
operation based on an XQJ transaction.
The client should never close the XQJ connection. Instead, he must close the JAXR-based connection. This action cleans up anything else.