Java Code Examples for org.springframework.jms.support.converter.MappingJackson2MessageConverter#setTypeIdPropertyName()
The following examples show how to use
org.springframework.jms.support.converter.MappingJackson2MessageConverter#setTypeIdPropertyName() .
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: Application.java From Spring with Apache License 2.0 | 5 votes |
@Bean // Serialize message content to json using TextMessage public MessageConverter jacksonJmsMessageConverter() { final MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter(); converter.setTargetType(MessageType.TEXT); converter.setTypeIdPropertyName("_type"); return converter; }
Example 2
Source File: SpringJMSITest.java From java-specialagent with Apache License 2.0 | 5 votes |
@Bean public MessageConverter jacksonJmsMessageConverter() { final MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter(); converter.setTargetType(MessageType.TEXT); converter.setTypeIdPropertyName("_type"); return converter; }
Example 3
Source File: ProductMsgProducer.java From Cloud-Native-Applications-in-Java with MIT License | 5 votes |
@Bean public MessageConverter jacksonJmsMessageConverter() { MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter(); converter.setTargetType(MessageType.TEXT); converter.setTypeIdPropertyName("_type"); return converter; }
Example 4
Source File: ProductUpdListener.java From Cloud-Native-Applications-in-Java with MIT License | 5 votes |
@Bean // Serialize message content to json using TextMessage public MessageConverter jacksonJmsMessageConverter() { MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter(); converter.setTargetType(MessageType.BYTES); converter.setTypeIdPropertyName("_type"); return converter; }
Example 5
Source File: JMSSpringConfiguration.java From promregator with Apache License 2.0 | 5 votes |
@Bean // Serialize message content to json using TextMessage public MessageConverter jacksonJmsMessageConverter() { MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter(); converter.setTargetType(MessageType.TEXT); converter.setTypeIdPropertyName("_type"); return converter; }
Example 6
Source File: JMSConfig.java From ElementVueSpringbootCodeTemplate with Apache License 2.0 | 5 votes |
@Bean public MessageConverter jacksonJmsMessageConverter() { MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter(); converter.setTargetType(MessageType.TEXT); converter.setTypeIdPropertyName("_type"); return converter; }
Example 7
Source File: JmsMessageBrokerConfiguration.java From piper with Apache License 2.0 | 5 votes |
@Bean public MessageConverter jacksonJmsMessageConverter(ObjectMapper aObjectMapper) { MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter(); converter.setObjectMapper(aObjectMapper); converter.setTargetType(MessageType.TEXT); converter.setTypeIdPropertyName("_type"); return converter; }
Example 8
Source File: JMSApplicationConfig.java From POC with Apache License 2.0 | 5 votes |
@Bean public MessageConverter jacksonJmsMessageConverter() { final MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter(); converter.setTargetType(MessageType.TEXT); converter.setTypeIdPropertyName("_type"); return converter; }