users@jersey.java.net

[Jersey] Jersey 2.x Client on Android

From: <williamrbowen_at_gmail.com>
Date: Fri, 30 May 2014 20:20:17 +0000 (UTC)

First time writing to the mailing list, let me first briefly say thank
you to all the Jersey contributors for their excellent work.

We have a Jersey 2.9 (newly upgraded) API running fine on Tomcat and a
Java SDK with Jersey client 2.9 that consumes it. In our web
application, everything works and life is good.

We're developing an Android app and wanted to re-use our Java SDK
because isn't that the whole point of Java? Well, long story short it
does not work. Android uses a different VM and we run into lots of
problems with classes in javax not being available, etc.

Google searching around the web, it seems like there are a few partial
workarounds with manually registering some of Jersey's services and
doing some excluding of packages via Maven, but they are all a few
years old and 1.x based. Not to mention very trite, theoretical
examples.

I am asking if anyone has had any success getting a fully-featured 2.x
Jersey client to work on Android and if they had any recipes they'd be
willing to share? Or am I completely wasting my time and should write
an entirely separate SDK?

Thanks,

William