JAX-RS Jersey Client on Websphere 8.5

前端 未结 2 1319
执念已碎
执念已碎 2020-12-19 21:06

I\'m trying to deploy jax-rs client application that use jersey on was 8.5.
I was hoping I won\'t need to pack jersey jars inside my war, because was will provide them.<

相关标签:
2条回答
  • 2020-12-19 21:56

    WebSphere 8.5 includes a JAX-RS implementation, but it's based on Apache Wink, not Jersey. So if you want to use what is already provided, I think you'll need to create a Wink client instead of a Jersey one.

    Or, you can disable the WAS JAX-RS implementation which I'd guess will allow you to use Jersey instead, either deployed in your application or as a shared library as zargarf suggests.

    0 讨论(0)
  • 2020-12-19 22:01

    You can create a shared library in the was admin console which point to a directory on the server. Then put your jar files in that directory. Associate the deployed application with the shared library. See: http://pic.dhe.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=%2Fcom.ibm.websphere.base.doc%2Finfo%2Faes%2Fae%2Ftcws_sharedlib.html

    0 讨论(0)
提交回复
热议问题