Im using
@Autowired
RabbitTemplate temp;
temp.convertAndSend("aQueue", msg);
for sending and
@Autowired
RabbitTemplate temp;
return temp.receiveAndConvert("aQueue");
for receving messages from rappid mq Now I would like to use a listener something like :
@Component
public class MessengerListener implements MessageListener{
@Override
public void onMessage(Message arg0) {
}
}
The problem is that the on onMessage listener works with Messages is it possible to receive simple serializable objects in similar fasion ?