private AbstractEjbBeanManager<X>
deployJmsServer(EjbManager ejbManager,
EjbLazyGenerator<X> lazyGenerator)
throws ClassNotFoundException
{
JmsResourceAdapter ra
= new JmsResourceAdapter(getEJBName(), _jmsActivationConfig);
JmsActivationSpec spec
= new JmsActivationSpec();
ra.setAcknowledgeMode(_acknowledgeMode);
ra.setMessageSelector(_messageSelector);
ra.setSubscriptionName(_subscriptionName);
if (_jmsActivationConfig.getMaxPoolSize() > 0)
ra.setConsumerMax(_jmsActivationConfig.getMaxPoolSize());
else
ra.setConsumerMax(getEjbContainer().getMessageConsumerMax());
return deployMessageServer(ejbManager,
getModuleName(),
lazyGenerator,
ra,