org.springframework.jms.core.JmsOperations Java Examples

The following examples show how to use org.springframework.jms.core.JmsOperations. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JMSMain.java    From Project with Apache License 2.0 5 votes vote down vote up
public static void main(String[] args) {
  ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("META-INF/spring/messaging.xml");
  JmsOperations jms = context.getBean(JmsOperations.class);
  for(int i=0; i< 10; i++) {
  jms.convertAndSend("hello.queue", "Hello");
  }
  context.close();
}
 
Example #2
Source File: EventRegistryJmsConfiguration.java    From flowable-engine with Apache License 2.0 5 votes vote down vote up
@Bean
public JmsChannelModelProcessor jmsChannelDefinitionProcessor(JmsListenerEndpointRegistry endpointRegistry, JmsOperations jmsOperations) {
    JmsChannelModelProcessor jmsChannelDeployer = new JmsChannelModelProcessor();
    jmsChannelDeployer.setEndpointRegistry(endpointRegistry);
    jmsChannelDeployer.setJmsOperations(jmsOperations);

    return jmsChannelDeployer;
}
 
Example #3
Source File: AlertServiceImpl.java    From Project with Apache License 2.0 4 votes vote down vote up
public AlertServiceImpl(JmsOperations jmsOperations) {
  this.jmsOperations = jmsOperations;
}
 
Example #4
Source File: JmsOperationsOutboundEventChannelAdapter.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
public JmsOperationsOutboundEventChannelAdapter(JmsOperations jmsOperations, String destination) {
    this(jmsOperations, destination, (event, session) -> session.createTextMessage(event));
}
 
Example #5
Source File: JmsOperationsOutboundEventChannelAdapter.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
public JmsOperationsOutboundEventChannelAdapter(JmsOperations jmsOperations, String destination, JmsMessageCreator<String> messageCreator) {
    this.jmsOperations = jmsOperations;
    this.destination = destination;
    this.messageCreator = (event, session) -> session.createTextMessage(event);
}
 
Example #6
Source File: JmsOperationsOutboundEventChannelAdapter.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
public JmsOperations getJmsOperations() {
    return jmsOperations;
}
 
Example #7
Source File: JmsOperationsOutboundEventChannelAdapter.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
public void setJmsOperations(JmsOperations jmsOperations) {
    this.jmsOperations = jmsOperations;
}
 
Example #8
Source File: JmsChannelModelProcessor.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
public JmsOperations getJmsOperations() {
    return jmsOperations;
}
 
Example #9
Source File: JmsChannelModelProcessor.java    From flowable-engine with Apache License 2.0 4 votes vote down vote up
public void setJmsOperations(JmsOperations jmsOperations) {
    this.jmsOperations = jmsOperations;
}
 
Example #10
Source File: JmsApplicationEventsImpl.java    From dddsample-core with MIT License 4 votes vote down vote up
public void setJmsOperations(JmsOperations jmsOperations) {
  this.jmsOperations = jmsOperations;
}