Index: trunk/src/main/java/omq/client/listener/ResponseListener.java
===================================================================
--- trunk/src/main/java/omq/client/listener/ResponseListener.java	(revision 47)
+++ trunk/src/main/java/omq/client/listener/ResponseListener.java	(revision 49)
@@ -6,4 +6,6 @@
 import java.util.Map;
 import java.util.Properties;
+
+import org.apache.log4j.Logger;
 
 import omq.client.proxy.Proxymq;
@@ -26,4 +28,5 @@
  */
 public class ResponseListener extends Thread {
+	private static final Logger logger = Logger.getLogger(ResponseListener.class.getName());
 	private static ResponseListener rListener;
 
@@ -78,7 +81,7 @@
 				}
 			} catch (InterruptedException i) {
-				i.printStackTrace();
+				logger.error(i.toString(), i);
 			} catch (ShutdownSignalException e) {
-				e.printStackTrace();
+				logger.error(e.toString(), e);
 				try {
 					if (channel.isOpen()) {
@@ -92,11 +95,11 @@
 						Thread.sleep(milis);
 					} catch (InterruptedException e2) {
-						e2.printStackTrace();
+						logger.error(e2.toString(), e2);
 					}
 				}
 			} catch (ConsumerCancelledException e) {
-				e.printStackTrace();
+				logger.error(e.toString(), e);
 			} catch (Exception e) {
-				e.printStackTrace();
+				logger.error(e.toString(), e);
 			}
 		}
@@ -201,4 +204,5 @@
 	 */
 	public void kill() throws IOException {
+		logger.warn("Killing ResponseListener");
 		interrupt();
 		killed = true;
Index: trunk/src/main/java/omq/client/proxy/CallType.java
===================================================================
--- trunk/src/main/java/omq/client/proxy/CallType.java	(revision 47)
+++ 	(revision )
@@ -1,12 +1,0 @@
-package omq.client.proxy;
-
-/**
- * CallType is an enumeration with the call types you can do: synchronous calls
- * and asynchronous calls
- * 
- * @author Sergi Toda <sergi.toda@estudiants.urv.cat>
- * 
- */
-public enum CallType {
-	SYNC, ASYNC;
-}
Index: trunk/src/main/java/omq/client/proxy/Proxymq.java
===================================================================
--- trunk/src/main/java/omq/client/proxy/Proxymq.java	(revision 47)
+++ trunk/src/main/java/omq/client/proxy/Proxymq.java	(revision 49)
@@ -10,4 +10,6 @@
 import java.util.Map;
 import java.util.Properties;
+
+import org.apache.log4j.Logger;
 
 import omq.Remote;
@@ -44,4 +46,5 @@
 	 */
 	private static final long serialVersionUID = 1L;
+	private static final Logger logger = Logger.getLogger(Proxymq.class.getName());
 	private static Map<String, Object> proxies = new Hashtable<String, Object>();
 
@@ -132,8 +135,8 @@
 		// Publish the request
 		if (request.isAsync()) {
-			System.out.println("Publish async request -> " + request.getId());
+			logger.debug("Publish async request -> " + request.getId());
 			publishAsyncRequest(request);
 		} else {
-			System.out.println("Publish sync request -> " + request.getId());
+			logger.debug("Publish sync request -> " + request.getId());
 			response = publishSyncRequest(request, method.getReturnType());
 
@@ -186,6 +189,5 @@
 				return getResult(corrId, timeout, type);
 			} catch (TimeoutException te) {
-				System.out.println("Timeout exception catched " + te);
-				te.printStackTrace();
+				logger.error(te);
 			}
 			i++;
@@ -292,5 +294,4 @@
 	public static Object newProxyInstance(ClassLoader loader, Class<?>[] interfaces, Proxymq proxy) {
 		if (proxies.containsKey(proxy.getRef())) {
-			System.out.println("Proxy trobat");
 			return proxies.get(proxy.getRef());
 		}
