问题
So I was trying to find any reference documentation or non-trivial examples for using the three.
The 'best' I found was:
- TomEE/OpenEJB JAXRS refactoring
- Some tips for TomEE and JAXRS config
The TomEE Documentation doesn't list Jax-RS at all, and I was only able to find some examples consisting of a single endpoint class
Where can I find a comprehensive reference of configuration options?
The main problem is that I'd know how to do most of the things I want when using standalone CXF, but I have hardly any idea how the JAX-RS integration in TomEE works.
At the very least - I want some documentation-grade resource for the info contained in blog posts above.
回答1:
JAX-RS isn't part of the base TomEE distribution because it isn't required in the web profile in Java EE 6, however, you can find it in the TomEE JAX-RS and TomEE Plus distributions (thanks David). It may not be with your specific implementations but take a look at http://www.jboss.org/jdf/quickstarts/jboss-as-quickstart/helloworld-rs/. Most of the quickstarts listed are built around the standard APIs and don't use anything proprietary so you should be able to get them to work on TomEE.
回答2:
There are several detailed examples here: http://tomee.apache.org/examples-trunk/index.html
David added a detailed post here http://www.tomitribe.com/blog/2014/06/apache-tomee-jax-rs-and-arquillian-starter-project/
And more documented code examples here (look for modules beginning with rest): https://svn.apache.org/repos/asf/tomee/tomee/trunk/examples
And finally the reference card here: http://tomee.apache.org/refcard/refcard.html
来源:https://stackoverflow.com/questions/17422126/tomee-cxf-configuration-reference