Author: jleroux
Date: Mon Apr 11 07:21:56 2011
New Revision: 1090956
URL:
http://svn.apache.org/viewvc?rev=1090956&view=revLog:
Changes a verbose log to info and improves the related error message. Useful when trying to use a jms-service.
Modified:
ofbiz/trunk/framework/service/src/org/ofbiz/service/jms/JmsListenerFactory.java
Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/jms/JmsListenerFactory.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/jms/JmsListenerFactory.java?rev=1090956&r1=1090955&r2=1090956&view=diff==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/jms/JmsListenerFactory.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/jms/JmsListenerFactory.java Mon Apr 11 07:21:56 2011
@@ -83,13 +83,13 @@ public class JmsListenerFactory implemen
if (Debug.verboseOn()) Debug.logVerbose("[ServiceDispatcher] : Loading JMS Listeners.", module);
for (int i = 0; i < nodeList.getLength(); i++) {
Element element = (Element) nodeList.item(i);
+ StringBuilder serverKey = new StringBuilder();
for (Element server: UtilXml.childElementList(element, "server")) {
try {
String listenerEnabled = server.getAttribute("listen");
if (listenerEnabled.equalsIgnoreCase("true")) {
// create a server key
- StringBuilder serverKey = new StringBuilder();
serverKey.append(server.getAttribute("jndi-server-name") + ":");
serverKey.append(server.getAttribute("jndi-name") + ":");
@@ -104,7 +104,7 @@ public class JmsListenerFactory implemen
listeners.put(serverKey.toString(), listener);
}
} catch (GenericServiceException gse) {
- Debug.logVerbose("Cannot load message listener (" + gse.toString() + ").", module);
+ Debug.logInfo("Cannot load message listener " + serverKey + " error: (" + gse.toString() + ").", module);
} catch (Exception e) {
Debug.logError(e, "Uncaught exception.", module);
}