Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Apache CXF?

I am a new to Java EE Services. In my project they will be using JAX-WS with Apache CXF. I want to know what is Apache CXF? I can use plain JAX-WS to create Web Services. Why should I use Apache CXF?

like image 998
Sandeep Avatar asked Apr 28 '13 07:04

Sandeep


People also ask

What does Apache CXF stand for?

Apache CXF is the product of two projects, Celtix and XFire , hence the name CXF . Celtix , an open source Java-based Enterprise Service Bus (ESB) project, is a product of ObjectWeb consortia that delivers open source middleware solutions.

What is Apache Camel CXF?

In Apache Camel, the Camel CXF component is the key to integrating routes with Web services. You can use the Camel CXF component to create a CXF endpoint, which can be used in either of the following ways: Consumer — (at the start of a route) represents a Web service instance, which integrates with the route.

Is Apache CXF a JAX-RS?

JAX-RS: Java API for RESTful Web Services is a Java programming language API that provides support in creating web services according to the Representational State Transfer (REST) architectural style. CXF supports JAX-RS 2.1 (JSR-370), 2.0 (JSR-339) and 1.1 (JSR-311).

What is the difference between Apache CXF and Axis2?

CXF has SOAP, REST/HTTP, and its Data Bindings support JAXB 2.0,Aegis, by default it use JAXB 2.0 and more close Java standard specification.. Axis2 supports a wider range of data bindings, including XMLBeans, JiBX, JaxMe and JaxBRI as well as its own native data binding, ADB.


1 Answers

Apache CXF is just one of the implementations of JAX-WS API. There are other implementations, such as JAX-WS RI (reference implementation) that is included in Java and part of Metro framework (which includes some other things also, like WSIT).

Your question is - what are the reasons to choose Apache CXF? There are plenty of them, for example:

  1. support for RESTful services (becoming more and more popular)
  2. easy integration with Spring (if that matters to you)
  3. WS-* support (i.e., support for many important WS-specifications like WS-Security)
  4. maturity (thanks @sourcedelica)

References:

  • Why CXF?
like image 104
Miljen Mikic Avatar answered Nov 15 '22 15:11

Miljen Mikic