r6918 - dumbhippo/trunk/server/src/com/dumbhippo/jms
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r6918 - dumbhippo/trunk/server/src/com/dumbhippo/jms
- Date: Thu, 15 Nov 2007 10:06:27 -0600 (CST)
Author: otaylor
Date: 2007-11-15 10:06:27 -0600 (Thu, 15 Nov 2007)
New Revision: 6918
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/jms/JmsProducer.java
Log:
Don't add a null property to a message when sending messages from the imbot,
this triggers a bug in our JBoss version (http://jira.jboss.com/jira/browse/EJBTHREE-570)
and an infinite loop.
Modified: dumbhippo/trunk/server/src/com/dumbhippo/jms/JmsProducer.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/jms/JmsProducer.java 2007-11-15 00:45:21 UTC (rev 6917)
+++ dumbhippo/trunk/server/src/com/dumbhippo/jms/JmsProducer.java 2007-11-15 16:06:27 UTC (rev 6918)
@@ -34,7 +34,8 @@
try {
JmsSession session = createSession();
Message message = session.createObjectMessage(payload);
- message.setStringProperty("sourceAddress", sourceAddress);
+ if (sourceAddress != null)
+ message.setStringProperty("sourceAddress", sourceAddress);
session.getProducer(getDestination()).send(message);
session.close();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]