Package com.caucho.ejb.message

Examples of com.caucho.ejb.message.JmsResourceAdapter


  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,
View Full Code Here

TOP

Related Classes of com.caucho.ejb.message.JmsResourceAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.