We need to improve how we can interact with the TransactionManager which would otherwise timeout the thread fetching the primary ids.
Some discussion started on: http://lists.jboss.org/pipermail/hibernate-dev/2013-December/010784.html