// Path: src/main/java/br/fatea/simplebank/model/jms/converters/PaymentMessageConverter.java
// @Component
// public class PaymentMessageConverter implements MessageConverter {
// 	
// 	@Autowired private JSONMapperTemplate jsonMapperTemplate;
// 
// 	@Override
// 	public Object fromMessage(Message message) throws JMSException, MessageConversionException {
// 		return jsonMapperTemplate.mapToObject(message, PaymentMessage.class);
// 	}
// 
// 	@Override
// 	public Message toMessage(Object object, Session session) throws JMSException, MessageConversionException {
// 		return jsonMapperTemplate.mapToMessage(object, session);
// 	}
// }


import java.util.UUID;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.scheduling.annotation.EnableScheduling;
import br.fatea.simplebank.model.jms.converters.PaymentMessageConverter;
package br.fatea.simplebank.config;




@Configuration
@EnableScheduling
@PropertySource("classpath:configuration/jms.properties")
public class JMSConfig {

// Path: src/main/java/br/fatea/simplebank/model/jms/converters/PaymentMessageConverter.java
// @Component
// public class PaymentMessageConverter implements MessageConverter {
// 	
// 	@Autowired private JSONMapperTemplate jsonMapperTemplate;
// 
// 	@Override
// 	public Object fromMessage(Message message) throws JMSException, MessageConversionException {
// 		return jsonMapperTemplate.mapToObject(message, PaymentMessage.class);
// 	}
// 
// 	@Override
// 	public Message toMessage(Object object, Session session) throws JMSException, MessageConversionException {
// 		return jsonMapperTemplate.mapToMessage(object, session);
// 	}
// }


// Path: src/main/java/br/fatea/simplebank/config/JMSConfig.java
import java.util.UUID;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.scheduling.annotation.EnableScheduling;
import br.fatea.simplebank.model.jms.converters.PaymentMessageConverter;

package br.fatea.simplebank.config;




@Configuration
@EnableScheduling
@PropertySource("classpath:configuration/jms.properties")
public class JMSConfig {

	@Autowired private PaymentMessageConverter paymentMessageConverter;