cf0 = (ConnectionFactory)ic0.lookup("/ConnectionFactory");
cf1 = (ConnectionFactory)ic1.lookup("/ConnectionFactory2");
sourceQueueFactory = new JNDIDestinationFactory(props0, "/queue/sourceQueue");
sourceQueue = (Queue)sourceQueueFactory.createDestination();
targetQueueFactory = new JNDIDestinationFactory(props1, "/queue/targetQueue");
targetQueue = (Queue)targetQueueFactory.createDestination();
sourceTopicFactory = new JNDIDestinationFactory(props0, "/topic/sourceTopic");
sourceTopic = (Topic)sourceTopicFactory.createDestination();
localTargetQueueFactory = new JNDIDestinationFactory(props0, "/queue/localTargetQueue");
localTargetQueue = (Queue)localTargetQueueFactory.createDestination();
}
finally
{