users@jaxb.java.net

Storing JAXB structured XML in Oracle

From: William Saxton <saxton_at_gmail.com>
Date: Wed, 16 May 2007 10:36:04 -0400

Hi all,

  Fairly new JAXB user here with a question.

  What is the best way to store XML data handled by JAXB objects?
Currently, I marshal the object to a string, use XMLType.createXML to
convert it to an XMLType, then store it as an object using stmt.setObject().
Is this the right approach?

  I also have the context path somewhat "hard-coded" in the java code in
order to marshal/unmarshall the data. Do you think I should also save this
in the database along with the XML or read it from a config file?

  Thanks.

-Bill