users@glassfish.java.net

Re: CLOB for LONG String values and OracleConnection from a DataSource

From: <glassfish_at_javadesktop.org>
Date: Tue, 01 Jul 2008 10:38:42 PDT

Hi again

I've already got the way to update the content of clob object.

                   try {
                        clob = createClob(cn);
                        Writer wr = clob.setCharacterStream(0);
                        wr.write(xml);
                        wr.flush();
                        wr.close();
                        psUpd.setClob(2, clob);
                    } catch (Exception gg) {
                        gg.printStackTrace();
                    }

Best regards
Aniceto Perez
[Message sent by forum member 'aperezymadrid' (aperezymadrid)]

http://forums.java.net/jive/thread.jspa?messageID=283729