Results 1 to 2 of 2

Thread: Sending and Receiving Messages/Objects

  1. #1

    Question Sending and Receiving Messages/Objects

    I'm trying to perform asynchronous message exchanges, but I'm getting the following error:
    java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: failed to convert to serialized Message content
    Anyone know how to correctly receive and convert the message?

    I've setup a MessageListenerAdapter to delegate the 'onMessage' event.

    Below are the message sender and receiver.

    Sender:
    Code:
    	
    rabbitTemplate.convertAndSend(msgQueue.getName(), new HashMap<String, String>(2) {
            {
            ...
            }
    });
    Receiver:
    Code:
     public void notify(Map msg) { ... }

  2. #2

    Default

    Could you show the configuration of your rabbitTemplate? Seems you are missing the configuration for your converter..

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •