4 Replies Latest reply on Aug 15, 2008 9:37 AM by marklittle

    ESB 4.3 and MapMessage

    dahm

      Hi,

      its seems that JBoss ESB does not support Map messages!?
      When I sent a map message to a channel I get the following message:

       [PackageJmsMessageContents] Message type MapMessageProxy not supported - Message is ignored
      WARN [JmsGatewayListener] Action class method <process> returned a null object
      


      Looking into the code reveals:


       private void setESBMessageBody(Message fromJMSMessage, org.jboss.soa.esb.message.Message toESBMessage)
       throws JMSException, IOException, MessageDeliverException
       {
       byte bodyAsBytes[] = null;
       if(fromJMSMessage instanceof TextMessage)
       {
       ...
       } else
       if(fromJMSMessage instanceof BytesMessage)
       {
       ...
       } else
       if(fromJMSMessage instanceof ObjectMessage)
       {
       ...
       } else
       {
       log.warn((new StringBuilder()).append("Message type ").append(fromJMSMessage.getClass().getSimpleName()).append(" not supported - Message is ignored").toString());
       }
       }
      


      Where is the code for MapMessage?

      Cheers
      Markus

        • 1. Re: ESB 4.3 and MapMessage
          marklittle

          This is an oversight. Please create a JIRA feature request.

          • 2. Re: ESB 4.3 and MapMessage
            beve

            Hi Markus,

            you are correct that this is not supported but probably should be. I'll create a JIRA for this.

            In the mean time you can specify your own message composer implementation to accomplish. This can be specified by adding a property named 'composer-class' on the gateway listener.
            See the section 'How to change the Gateway Data Mappings' in the ProgrammersGuide for more information about how this works.

            Regards,

            /Daniel

            • 3. Re: ESB 4.3 and MapMessage
              scottdawson

              Should code to handle StreamMessage be added as well? Then all 5 JMS message types would be supported.

              Regards,
              Scott

              • 4. Re: ESB 4.3 and MapMessage
                marklittle

                Best to add two separate feature request JIRAs and we can manage them independently.