I found some other posts dating back some time but none of them seem to have a solution either
http://community.jboss.org/message/147049#147049
http://community.jboss.org/message/156429#156429
The first post seems to suggest that adding a configured identity to the connection factory configuration may get around this issue. Does that mean I can set a reference to a login-module on the connection factory ?