Skip to content

Commit

Permalink
Add instruction to enable JSONP in WildFly
Browse files Browse the repository at this point in the history
  • Loading branch information
nekop committed Nov 26, 2014
1 parent 58ea62b commit bb1a335
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jaxrs/docbook/reference/en/en-US/modules/Json.xml
Expand Up @@ -151,6 +151,16 @@ GET /resources/stuff?callback=processStuffResponse
processStuffResponse(<nomal JSON body>)
</programlisting>
This supports the default behavior of <ulink url="http://api.jquery.com/jQuery.ajax/">jQuery</ulink>.
To enable JacksonJsonpInterceptor in WildFly, you need to import annotations from <literal>org.jboss.resteasy.resteasy-jackson-provider</literal> module using jboss-deployment-structure.xml:
<programlisting><![CDATA[
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="org.jboss.resteasy.resteasy-jackson-provider" annotations="true"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
]]></programlisting>
</para>
<para>
You can change the name of the callback parameter by setting the callbackQueryParameter property.
Expand Down

0 comments on commit bb1a335

Please sign in to comment.