spec = new ActiveMQActivationSpec();
spec.setActiveMQDestination(destination);
}
public void start() throws ResourceException {
ExecutorFactory factory = broker.getContainer().getExecutorFactory();
executor = factory.createExecutor("flow.jca." + spec.getDestination());
BootstrapContext context = new SimpleBootstrapContext(new WorkManagerWrapper(executor));
ra.start(context);
spec.setResourceAdapter(ra);
ra.endpointActivation(endpointFactory, spec);
}