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

Custom job with RabbitMq dependencies

    Details

    • Story Points:
      2
    • Rank (Obsolete):
      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

            • Assignee:
              Unassigned
              Reporter:
              mgervais GERVAIS Mickaël
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: