Thanks,
I don't have XA drivers for Sybase handy, but I found that I could simplify the issue by splitting the code into 2 methods, one which was reading from Sybase, the other writing to Derby - that seemed to help.
[Message sent by forum member 'freddiefishcake' (freddiefishcake)]
http://forums.java.net/jive/thread.jspa?messageID=226853