Ignore:
Timestamp:
09/27/13 17:50:41 (11 years ago)
Author:
stoda
Message:

Semaphores added and removed, ack error discovered and solutioned... Some tests added

Supervisor interface created and more things I'll do later...

TODO: supervisor!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/supervisor/src/main/java/omq/server/RemoteObject.java

    r84 r91  
    3838        private static final Logger logger = Logger.getLogger(RemoteObject.class.getName());
    3939
    40         private String UID;
    41         private Properties env;
    42         private transient Broker broker;
    43         private transient String multiQueue;
    44         private transient RemoteWrapper remoteWrapper;
    45         private transient Map<String, List<Class<?>>> params;
    46         private transient Channel channel;
    47         private transient QueueingConsumer consumer;
    48         private transient boolean killed = false;
     40        protected String UID;
     41        protected Properties env;
     42        protected transient Broker broker;
     43        protected transient String multiQueue;
     44        protected transient RemoteWrapper remoteWrapper;
     45        protected transient Map<String, List<Class<?>>> params;
     46        protected transient Channel channel;
     47        protected transient QueueingConsumer consumer;
     48        protected transient boolean killed = false;
    4949
    5050        private static final Map<String, Class<?>> primitiveClasses = new HashMap<String, Class<?>>();
     
    317317                 */
    318318
     319                boolean autoAck = false;
     320
    319321                // Declare a new consumer
    320322                consumer = new QueueingConsumer(channel);
    321                 channel.basicConsume(queue, true, consumer);
    322                 channel.basicConsume(multiQueue, true, consumer);
     323                channel.basicConsume(queue, autoAck, consumer);
     324                channel.basicConsume(multiQueue, autoAck, consumer);
    323325        }
    324326
Note: See TracChangeset for help on using the changeset viewer.