How to handle LOB
"Xie, Jinpeng" <[email protected]> Fri, 9 Apr 2004 09:12:35 -0400
| Newsgroups | gmane.comp.java.sun.ejb.general |
|---|---|
| Message-ID | <[email protected]> |
In Oracle database, if I want to insert or update LOB, I have to use
Connection.setCommit(false);
ResultSet resultSet = Statement.executeQuery("select ... for
update");
Blob blob = resultSet.getBlob();
InputStream inputStream = blob.getInputStream();
...
Connection.commit();
How do I implement the above code in ejb because I can not run any
setCommit() or commit() in ejb container?
Jim
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[email protected] and include in the body of the message "help".