return new ActiveMQMessageProducer(connection, producer, jbd, session, options); } catch (ActiveMQException e) { throw JMSExceptionHelper.convertFromActiveMQException(e);
@Override public MessageProducer createProducer(final Destination destination) throws JMSException { if (destination != null && !(destination instanceof ActiveMQDestination)) { throw new InvalidDestinationException("Not an ActiveMQ Artemis Destination:" + destination); } try { ActiveMQDestination jbd = (ActiveMQDestination) destination; if (jbd != null) { checkDestination(jbd); } ClientProducer producer = session.createProducer(jbd == null ? null : jbd.getSimpleAddress()); return new ActiveMQMessageProducer(connection, producer, jbd, this, options); } catch (ActiveMQException e) { throw JMSExceptionHelper.convertFromActiveMQException(e); } }
@Override public MessageProducer createProducer(final Destination destination) throws JMSException { if (destination != null && !(destination instanceof ActiveMQDestination)) { throw new InvalidDestinationException("Not an ActiveMQ Artemis Destination:" + destination); } try { ActiveMQDestination jbd = (ActiveMQDestination) destination; if (jbd != null) { checkDestination(jbd); } ClientProducer producer = session.createProducer(jbd == null ? null : jbd.getSimpleAddress()); return new ActiveMQMessageProducer(connection, producer, jbd, this, options); } catch (ActiveMQException e) { throw JMSExceptionHelper.convertFromActiveMQException(e); } }
return new ActiveMQMessageProducer(connection, producer, jbd, session, options); } catch (ActiveMQException e) { throw JMSExceptionHelper.convertFromActiveMQException(e);
return new ActiveMQMessageProducer(connection, producer, jbd, session, options); } catch (ActiveMQException e) { throw JMSExceptionHelper.convertFromActiveMQException(e);