Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-15185

Jackson is not preferred for EJB JAR's if annotations are present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • REST
    • None
    • Workaround Exists
    • Hide

      Set the resteasy.preferJacksonOverJsonB context parameter to true.

      Show
      Set the resteasy.preferJacksonOverJsonB context parameter to true .

      With RESTEASY-1911 and WFLY-6459 JSON-B was changed to be the default serialization for JSON entities. Previously Jackson 2 was used. To keep backwards compatibility if a Jackson annotation was found on a REST endpoint, then Jackson was used over JSON-B. However, this only happens if the endpoint is in a WAR. For EJB JAR deployments this check is skipped preferring JSON-B for serialization.

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: