users@jersey.java.net

[Jersey] Re: Jersey 1 client in Jersey 2 server

From: Jonas Bergström <luckyswede_at_gmail.com>
Date: Tue, 17 Jun 2014 09:24:37 +0200

Hello again,
Does anybody have any thoughts on this?
Is upgrading to Jersey 2 just not going to work if I have dependencies that
use the Jersey 1 client?

/ Jonas


2014-06-08 23:36 GMT+02:00 Jonas Bergström <luckyswede_at_gmail.com>:

> Hi,
> I'm upgrading my application from Jersey 1.x to Jersey 2.x and getting
> problems because a couple of my dependencies use the Jersey 1.x client and
> it seems impossible to run that one in a Jersey 2 server. I've tried
> removing the 1.x server jar but the client seems to depend on it somehow.
>
> Is there a workaround?
> Would it be possible to enhance Jersey 2 to allow 1.x on the path?
>
> My main reason for upgrading is to get async support (void method with
> @Suspended parameter). Are there any other ways of achieving that while
> staying on 1.x?
>
> Thanks / Jonas
>