Changeset 53 for trunk/src/main/java/omq/server/InvocationThread.java
- Timestamp:
- 06/20/13 16:57:39 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/server/InvocationThread.java
r49 r53 23 23 private static final Logger logger = Logger.getLogger(InvocationThread.class.getName()); 24 24 private RemoteObject obj; 25 private transient Serializer serializer; 25 26 private BlockingQueue<Delivery> deliveryQueue; 26 27 private boolean killed = false; 27 28 28 public InvocationThread(RemoteObject obj, BlockingQueue<Delivery> deliveryQueue ) {29 public InvocationThread(RemoteObject obj, BlockingQueue<Delivery> deliveryQueue, Serializer serializer) { 29 30 this.obj = obj; 30 31 this.deliveryQueue = deliveryQueue; 32 this.serializer = serializer; 31 33 } 32 34 … … 41 43 42 44 // Deserialize the json 43 Request request = Serializer.deserializeRequest(serializerType, delivery.getBody(), obj);45 Request request = serializer.deserializeRequest(serializerType, delivery.getBody(), obj); 44 46 // Log.saveLog("Server-Deserialize", delivery.getBody()); 45 47 … … 73 75 BasicProperties replyProps = new BasicProperties.Builder().appId(obj.getRef()).correlationId(props.getCorrelationId()).build(); 74 76 75 byte[] bytesResponse = Serializer.serialize(serializerType, resp);77 byte[] bytesResponse = serializer.serialize(serializerType, resp); 76 78 channel.basicPublish("", props.getReplyTo(), replyProps, bytesResponse); 77 79
Note: See TracChangeset
for help on using the changeset viewer.