Guys, the change I'm currently working on to add VAM to JDBCCacheLoader would need an
interface change. I haven't yet finished testing it to make sure that it's
certainly more performant.
The change is this:
org.jboss.cache.marshall.ObjectStreamFactory
public ObjectInputStream createObjectInputStream(InputStream in) throws IOException;
JavaObjectStreamFactory and JBossObjectStreamFactory would implement it.
VAM would add:
public Object objectFromInputStream(InputStream is) throws Exception
Finally, JDBCCacheLoader would call:
Object marshalledNode = getMarshaller().objectFromInputStream(is);
passing, InputStream is = rs.getBinaryStream(1); // ResultSet
Would you guys be happy for me to include this before finishing with
http://jira.jboss.com/jira/browse/JBCACHE-879?
Without this methods, I would have to loop through the InputStream to create a byte[]
containing this data which would a waste of time.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995031#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...