|
next
|
 Subject: Extracting XML from a database using Java Author: Steven Fancher Date: 04 Nov 2006 05:57 PM
|
Within the 2007 IDE I have a .rdbxml adapter that I use to attach to an Oracle database and extract data into an XML doc. Works fine, very fast, etc.
I'd like to do this same task outside of the IDE, but I have been having a series of problems.
After reading the forums, the docs, the Deployment Adapter PDF and the java code that an Xquery doc using said adapter generates, I am completely stuck.
Within the IDE I can run both the db:///blah adapter and also a simple XQuery: '<doc>{.}</doc>' where the scenerio specifies the db:/// adapter as input and everything works, I get the expected XML doc as a result. (Note: this is only true if I run the Xquery using the built-in processor. If I use SAXON or the DataDirect processors, they run out of heap, but I'll leavethat problem for a later discussion...)
What I really need is a chunk of Java code that _just_ reads the database through the db URL and returns the XML doc. I can handle the post-processing externally. It seems like this must be possible. Can anyone help, send a code fragment or tell me I why this idea is completely braindead?
Thanks in advance!
Steven Fancher
|
|
|
|