Ignore:
Timestamp:
06/19/13 15:59:53 (11 years ago)
Author:
stoda
Message:

log4j added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main/java/omq/server/RemoteWrapper.java

    r44 r49  
    44import java.util.concurrent.BlockingQueue;
    55import java.util.concurrent.LinkedBlockingDeque;
     6
     7import org.apache.log4j.Logger;
    68
    79import com.rabbitmq.client.QueueingConsumer;
     
    1416 */
    1517public class RemoteWrapper {
     18        private static final Logger logger = Logger.getLogger(RemoteWrapper.class.getName());
     19
    1620        private RemoteObject obj;
    1721        private int numThreads;
     
    2529                deliveryQueue = new LinkedBlockingDeque<QueueingConsumer.Delivery>();
    2630
    27                 System.out.println("RemoteWrapper -> Object: " + obj.getRef() + ", numthreads listening = " + numThreads);
     31                logger.info("Object reference: " + obj.getRef() + ", numthreads listening = " + numThreads);
    2832
    2933                for (int i = 0; i < numThreads; i++) {
     
    3943
    4044        public void stopRemoteWrapper() {
     45                logger.warn("Stopping Invocation threads vinculed to " + obj.getRef());
    4146                for (InvocationThread thread : invocationList) {
    4247                        thread.interrupt();
Note: See TracChangeset for help on using the changeset viewer.