Results 1 to 5 of 5

Thread: Does spring integration support Jackson 2.x?

Hybrid View

  1. #1

    Default Does spring integration support Jackson 2.x?

    I'm trying to use an object-to-json-transformer (and it's counterpart) to play with SI's AMQP support. I've added Jackson 2.1.2 to my classpath, however when the application starts up I get the old java.lang.NoClassDefFoundError: org/codehaus/jackson/map/ObjectMapper error.

    I've even defined an object mapper bean (in the new com.fasterxml namespace) and set the transformers to use it, but that does not seem to work.

    Am I stuck with the 1.x line for now?

    Thanks.

  2. #2
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    632

    Default

    Hi!

    Yes, it is: you still should use 1.x
    We have a open issue on the matter: https://jira.springsource.org/browse/INT-2831
    However AMQP should supprt it too. So, you're free to raise similar JIRA here: https://jira.springsource.org/browse/AMQP

    I think we're going to take care of Jackson 2 on the 3.0 timeline.

    Cheers,
    Artem

  3. #3

    Default

    I was looking at using the Metrics library from Codehale (http://metrics.codahale.com/). They have Jackson 2.1 as a dependency. Any idea if I can use 2.1 an 1.9 in the same project because their artifacts and namespaces are completely different?

    There's doesn't seem to be a big rush right now to get SI up to 2.1 while the rest of the Spring stack seems to be moving forward with it. This might cause some problems for developers.

  4. #4
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    632

    Default

    Any idea if I can use 2.1 an 1.9 in the same project
    Why just don't try it ?
    You'll get several jars with different packages: Spring will use 1.9 and Metrics 2.1.
    At a glance we'll have support both Jacksons in the Spring Integration and Spring AMQP.

  5. #5

    Default

    Quote Originally Posted by Cleric View Post
    Why just don't try it ?
    You'll get several jars with different packages: Spring will use 1.9 and Metrics 2.1.
    At a glance we'll have support both Jacksons in the Spring Integration and Spring AMQP.
    I'm going to give it a shot. Just curious if anyone else had and if it was really possible before dedicating the time.

Posting Permissions

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