Changeset 49 for trunk/src/main/java/omq/client/proxy
- Timestamp:
- 06/19/13 15:59:53 (11 years ago)
- Location:
- trunk/src/main/java/omq/client/proxy
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/client/proxy/Proxymq.java
r47 r49 10 10 import java.util.Map; 11 11 import java.util.Properties; 12 13 import org.apache.log4j.Logger; 12 14 13 15 import omq.Remote; … … 44 46 */ 45 47 private static final long serialVersionUID = 1L; 48 private static final Logger logger = Logger.getLogger(Proxymq.class.getName()); 46 49 private static Map<String, Object> proxies = new Hashtable<String, Object>(); 47 50 … … 132 135 // Publish the request 133 136 if (request.isAsync()) { 134 System.out.println("Publish async request -> " + request.getId());137 logger.debug("Publish async request -> " + request.getId()); 135 138 publishAsyncRequest(request); 136 139 } else { 137 System.out.println("Publish sync request -> " + request.getId());140 logger.debug("Publish sync request -> " + request.getId()); 138 141 response = publishSyncRequest(request, method.getReturnType()); 139 142 … … 186 189 return getResult(corrId, timeout, type); 187 190 } catch (TimeoutException te) { 188 System.out.println("Timeout exception catched " + te); 189 te.printStackTrace(); 191 logger.error(te); 190 192 } 191 193 i++; … … 292 294 public static Object newProxyInstance(ClassLoader loader, Class<?>[] interfaces, Proxymq proxy) { 293 295 if (proxies.containsKey(proxy.getRef())) { 294 System.out.println("Proxy trobat");295 296 return proxies.get(proxy.getRef()); 296 297 }
Note: See TracChangeset
for help on using the changeset viewer.