Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-3720

Custom job with RabbitMq dependencies

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • 2
    • 9223372036854775807

    Description

      Hi,

      I've develop a custom Job which have to publish message on RabbitMq when it's finished.

      To develop this module, I'veto include this libraries:

      • com.rabbitmq:amqp-client:jar
      • org.springframework.amqp:spring-rabbit:jar
      • org.springframework.amqp:spring-amqp:jar

      My job use this writer: org.springframework.batch.item.amqp.AmqpItemWriter

      I've this error log:

       support.DefaultAmqpHeaderMapper - skipping header 'amqp_deliveryMode' since it is not of expected type [class org.springframework.amqp.core.MessageDeliveryMode], it is [class org.springframework.amqp.core.MessageDeliveryMode]
      

      This is typically due to a library loaded several times.

      What is the solution to resolve this?

      I'd like to use the same libraries has RabbitMq Source/Sink or the transport bus.

      Does module classloader isolated from others?

      Thanks

      Mickaël

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgervais GERVAIS Mickaël
            Archiver:
            tmarshall Trevor Marshall

            Dates

              Created:
              Updated:
              Archived: