Is this issues faced using the same sample initially provided by you?
It seems that you are using hornetq as a HT engine but it should not be a problem.
I think the task is not getting claimed by user. There are possible reasons for it.
One of them beging you somehow creating multiple entity manager.
Also refer link https://community.jboss.org/thread/197824