Hi,
I already asked this question on "users" mailing list and now forwarding it
to this list in hope to have a reply. Thanks in advance.
---------- Forwarded message ----------
From: Behrooz Nobakht <nobeh5_at_gmail.com>
Date: Thu, Apr 3, 2014 at 4:42 PM
Subject: Simultaneous use of Jersey 1.x and Jersey 2.x
To: users_at_jersey.java.net
Hello,
The situation that we're facing in a few of our modules is the following
that there a dependency between modules as:
- M1 depends on M2
- M1 depends on M3
M3 and M2 are more fundamental services that M1 is dependent upon. We've
been able to develop (migrate) M3 to Jersey 2.x. M3 also provides a JAX-RS
client that is also based on Jersey 2.x. On the other hand, migrating M2
from Jersey 1.x to 2.x requires a lot of effort with integration testing.
M2 also provides a JAX-RS client that is based on Jersey 1.x.
Now, the question is that M3 depends on the JAX-RS clients from M2 and M3
that use different versions of Jersey. Is this possible? Any known issues?
If OK to mix Jersey 1.x and 2.x, what are the necessary precautions or
notes that we need to make sure not to put functionality/performance of M1
at risk?
Thanks in advance,
Behrooz