Hi Gautham,
we are inserting a clob into an Oracle database using a Java service; here is an extraction from that service:
JDBCConnection Jconn = (JDBCConnection) IDataUtil.get( pipelineCursor, “conn” );
pipelineCursor.destroy();
Connection conn = (Connection) Jconn.getNativeConnection();
PreparedStatement ps = conn.prepareStatement("insert into " + tabName + " values (?,?,?,?,?)");
ps.setString(1,NmSrv);
ps.setString(2,EvtType);
ps.setTimestamp(3, new Timestamp(System.currentTimeMillis()));
ps.setLong(4, ID_IPROC);
ps.setCharacterStream(5,new StringReader(EvtData),EvtData.length());
ps.execute();
ps.close();
where “conn” is an object rapresenting a db connection arriving as parameters.
Hope this help.
Sandro
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods