private ActiveMQActivationSpec spec;
private Executor executor;
public Connector(ActiveMQDestination destination, MessageListener listener, boolean transacted) {
ra = new ActiveMQResourceAdapter();
ra.setConnectionFactory(connectionFactory);
SingletonEndpointFactory ef = new SingletonEndpointFactory(listener, transacted ? getTransactionManager() : null);
ef.setName(INBOUND_PREFIX + broker.getContainer().getName());
endpointFactory = ef;
spec = new ActiveMQActivationSpec();
spec.setActiveMQDestination(destination);
}