I wonder if doing the sending inside a Worker could enhance performance
What do you mean by that?
Does your worker send your messages to another node or application first, or you directly return your message to the Jboss?
I mean creating a Work (javax.resource.spi.work.Work) that performs the task of sending the message to the queue, so that the process that sends the message would only create a Work object and pass it to a WorkManager for executing it asynchronously in another thread, and continue its execution. I think this could reduce process execution time.
But I would like to know if there is a way of tunning jboss messaging to avoid high times on sending.
This question is completely impossible to answer since it is totally subjective and lacks any meaningful information.