Commit 238c37d6 authored by Andre Freyssinet's avatar Andre Freyssinet

Allows to fix the JMS MessageID prefix through the property (overload the

predefined value in ConnectionFactory).
parent 8adaba5e
......@@ -40,6 +40,9 @@ public class Producer {
ConnectionFactory cf = (ConnectionFactory) ictx.lookup("cf");
String prefix = System.getProperty("JMSMessageID.prefix");
if (prefix != null)
System.setProperty("org.objectweb.joram.client.jms.messageid.prefix", prefix);
Connection cnx = cf.createConnection();
Session sess = cnx.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = sess.createProducer(dest);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment