Thank you for answer.
Message profucer is created with:
messageProducer = session.createProducer(destination);
But unfortunately I also cannot change this code. This code is from jBPM product, that is naturally running on JBoss server. I'll try to write them.
[Message sent by forum member 'hazurek' (hazurek)]
http://forums.java.net/jive/thread.jspa?messageID=251330