Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Using HttpClient from Web Application

Hi,

On Wed, Jan 6, 2016 at 6:43 PM, Ross Sargant <rsargant@xxxxxxxx> wrote:
> Hi,
>    I have Jetty launching a web application from which I'd like to use the
> Jetty HttpClient in some background jobs started by the web app.
>
> I have activated the "client" module in my start.ini. I have used
> --list-classpath to
> confirm the presence of jetty-client-9.2.14.v20151106.jar  in the classpath
> built by start.jar.

You should not do this. The client module is for use of other server
modules such as the proxy module, not for use within webapps.

You just need to put the jetty-client jar and its dependencies in your
webapp's WEB-INF/lib and it's done.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top