*
* @param packet
* @throws MessagingException
*/
public void doRouting(MessageExchangeImpl me) throws MessagingException{
ComponentNameSpace id=me.getRole()==Role.PROVIDER?me.getDestinationId():me.getSourceId();
ComponentConnector cc=broker.getRegistry().getComponentConnector(id);
if(cc!=null){
// let ActiveMQ do the routing ...
try{
String componentName=cc.getComponentNameSpace().getName();
String destination = "";
if (me.getRole() == Role.PROVIDER){
destination = INBOUND_PREFIX + componentName;
}else {
destination = INBOUND_PREFIX + id.getContainerName();
}
Queue queue=inboundSession.createQueue(destination);
ObjectMessage msg=inboundSession.createObjectMessage(me);
queueProducer.send(queue,msg);
}catch(JMSException e){