[jboss-user] [JBoss Messaging] - Re: Jboss messaging - persistance issue for blob data
143564
do-not-reply at jboss.com
Fri Jan 25 10:28:28 EST 2008
Hi Andy Taylor
I downloaded the messging (jboss-messaging-1.3.0.GA-src) source code and modified some lines.
I followed these steps,
1. opened the org.jboss.messaging.core.plugin.JDBCPersistenceManager.java.
2. Modified the code at line no :2716 and 2760.
3.changes are:
i) // ps.setBinaryStream(columnIndex, is, bytes.length);
to
ps.setBlob(columnIndex, (Blob)is);
ii)
//InputStream i = rs.getBinaryStream(columnIndex);
to
InputStream i = (InputStream) rs.getBlob(columnIndex);
Now perfectly working.
Is this the right way?. if ok , Is there any changes are Still required ?.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123532#4123532
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123532
More information about the jboss-user
mailing list