Apache CFX can do the task.But i would like to combine it without any spring depedencides.Thank you in advance !
Asked
Active
Viewed 777 times
2
-
It should be possible with CFX — it does have some support for non-Spring usage — but why would you want to do that when the majority of documentation is for doing so _with_ Spring? (For the record, I've got an app that does JAX-WS and JAX-RS together, but it's CFX over Spring so I don't know if my experiences will help you.) – Donal Fellows Oct 31 '12 at 09:06
-
And the tricky part is that you describe your webapp in completely different ways in the two architecture styles. You might be able to share one or two methods if you're lucky I suppose… – Donal Fellows Oct 31 '12 at 09:08
1 Answers
5
Both JAX-WS and JAX-RS are part of Java EE 6. So you can build an application that exports both JAX-WS and JAX-RS interfaces without using Spring. For an introduction see the Java EE 6 Tutorial.
Note: JAX-WS and JAX-RS implement very different concepts. While JAX-WS is basically SOAP, JAX-RS is an implementation of the REST concept. I recommend to not mix both concepts as far as APIs are concerned. SOAP is about method calls while REST is about Resources and Representations.

Community
- 1
- 1