Um, last agent optimization can only work with ONE non-XA resource, since all but the last are told to prepare, so one of your non-XA resources will be told to prepare which it cannot do by definition.
[Message sent by forum member 'matterbury' (matterbury)]
http://forums.java.net/jive/thread.jspa?messageID=341211