Folks,
I am really loving the RESTEasy JS generation. There is one glitch that I am not quite sure how to get around. It appears that the servlet path (rest-js) is only populated with content after I make an initial AJAX request to the JAX-RS application. Until such a request is made, the JS servlet path returns an empty document.
I have tried setting load on startup in my web.xml but it does not seem to help.
{code}
<servlet>
<servlet-name>RESTEasy JSAPI</servlet-name>
<servlet-class>org.jboss.resteasy.jsapi.JSAPIServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>RESTEasy JSAPI</servlet-name>
<url-pattern>/rest-js</url-pattern>
</servlet-mapping>
{code}
How can I make the servlet return content immediately without having to fake a request?
Thanks.
-Raj