use of org.springframework.jms.support.converter.MappingJackson2MessageConverter in project cas by apereo.
the class JmsTicketRegistryConfiguration method jacksonJmsMessageConverter.
@Bean
public MessageConverter jacksonJmsMessageConverter() {
final MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter();
converter.setTargetType(MessageType.TEXT);
converter.setTypeIdPropertyName("_type");
new AbstractJacksonBackedStringSerializer<Object>() {
private static final long serialVersionUID = 1466569521275630254L;
@Override
protected Class getTypeToSerialize() {
return Object.class;
}
@Override
protected ObjectMapper initializeObjectMapper() {
final ObjectMapper mapper = super.initializeObjectMapper();
converter.setObjectMapper(mapper);
return mapper;
}
};
return converter;
}
use of org.springframework.jms.support.converter.MappingJackson2MessageConverter in project av-service by dvoraka.
the class JmsFileCommonConfig method messageConverter.
@Bean
public MessageConverter messageConverter() {
MappingJackson2MessageConverter messageConverter = new MappingJackson2MessageConverter();
messageConverter.setTypeIdPropertyName("typeId");
return messageConverter;
}
use of org.springframework.jms.support.converter.MappingJackson2MessageConverter in project POC by rajadilipkolli.
the class JMSApplicationConfig method jacksonJmsMessageConverter.
/**
* <p>jacksonJmsMessageConverter.</p>
*
* @return a {@link org.springframework.jms.support.converter.MessageConverter} object.
*/
@Bean
public MessageConverter jacksonJmsMessageConverter() {
final MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter();
converter.setTargetType(MessageType.TEXT);
converter.setTypeIdPropertyName("_type");
return converter;
}
use of org.springframework.jms.support.converter.MappingJackson2MessageConverter in project av-service by dvoraka.
the class JmsFileCommonConfig method messageConverter.
@Bean
public MessageConverter messageConverter() {
MappingJackson2MessageConverter messageConverter = new MappingJackson2MessageConverter();
messageConverter.setTypeIdPropertyName("typeId");
return messageConverter;
}
Aggregations