Ignore:
Timestamp:
07/02/13 11:50:11 (11 years ago)
Author:
stoda
Message:

Multi problem solved

Location:
trunk/src/main/java/omq/client/proxy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main/java/omq/client/proxy/MultiProxymq.java

    r70 r75  
    44import java.lang.reflect.Method;
    55import java.util.Properties;
     6
     7import org.apache.log4j.Logger;
    68
    79import com.rabbitmq.client.AMQP.BasicProperties;
     
    2022 */
    2123public class MultiProxymq implements InvocationHandler {
     24        private static final Logger logger = Logger.getLogger(MultiProxymq.class.getName());
    2225        private static final String multi = "multi#";
    2326
     
    3740                Properties env = broker.getEnvironment();
    3841                replyQueueName = env.getProperty(ParameterQueue.RPC_REPLY_QUEUE);
    39                 exchange = multi + env.getProperty(ParameterQueue.RPC_EXCHANGE);
     42                exchange = multi + uid;
    4043                serializerType = env.getProperty(ParameterQueue.SERIALIZER_NAME, Serializer.JAVA);
    4144        }
     
    5558                broker.getChannel().basicPublish(exchange, routingkey, props, bytesRequest);
    5659
     60                logger.debug("Proxymq: " + uid + " invokes " + methodName + ", corrID" + corrId + ", exchange: " + exchange + ", replyQueue: " + replyQueueName
     61                                + ", serializerType: " + serializerType + ", multi call: " + request.isMulti() + ", async call: " + request.isAsync());
     62
    5763                return null;
    5864        }
  • trunk/src/main/java/omq/client/proxy/Proxymq.java

    r72 r75  
    9090                env = broker.getEnvironment();
    9191                exchange = env.getProperty(ParameterQueue.RPC_EXCHANGE);
    92                 multiExchange = multi + exchange;
     92                multiExchange = multi + uid;
    9393                replyQueueName = env.getProperty(ParameterQueue.RPC_REPLY_QUEUE);
    9494
Note: See TracChangeset for help on using the changeset viewer.