Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Interest »

How to handle LOB in ejb

Xie, Jinpeng

2004-04-09

Replies:

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 listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".
©2008 junlu.com - Jax Systems, LLC, U.S.A.