// resource adapters only work with a geronimo transaction manager
if (!(transactionManager instanceof GeronimoTransactionManager)) {
throw new OpenEJBException("The use of a resource adapter requires a Geronimo transaction manager");
}
GeronimoTransactionManager geronimoTransactionManager = (GeronimoTransactionManager) transactionManager;
// create a thead pool
int threadPoolSize = getIntProperty(serviceInfo.properties, "threadPoolSize", 30);
if (threadPoolSize <= 0) throw new IllegalArgumentException("threadPoolSizes <= 0: " + threadPoolSize);
Executor threadPool = Executors.newFixedThreadPool(threadPoolSize, new ResourceAdapterThreadFactory(serviceInfo.id));