Testing CXF with Autowiring using Spring
Here is how to create a test for a CXF web service implementation class. The test use spring-mock base classes and hereby support stuff like transactions and autowiring through annotations. Neat. I have a base class like this: One thing here: cxf.xml is loaded from classpath by the test code, but it resides in src/main/webapp/WEB-INF [...]
June 20, 2010
·
polesen ·
No Comments
Tags: cxf, Java, maven, spring, test · Posted in: Programming
CXF Method Not Found When Further Annotated
When using CXF and the JAXWS annotations to publish web services, like this: you can experience problems if you annotate the web service methods with something that spring-aop needs to process. Like when using perf4js nice @Profiled aspect, like this: This is due to the fact, that spring will produce a proxy of the @Profiled [...]
December 3, 2009
·
polesen ·
No Comments
Tags: aspect, cxf, spring, spring-aop, ws · Posted in: Programming
Making CXF Log RuntimeExceptions From Server Implementations
Here is a bit more on CXF logging. If you are using CXF to host web-service implementations (as opposed to using CXF as a client to consume web services with), you might wanna know about any un-caught RuntimeExceptions, your server-side implementation is throwing. CXF already catches and logs this for you, before sending them back [...]
February 28, 2008
·
polesen ·
No Comments
Tags: cxf, Java, log4j · Posted in: Programming
Viewing Inbound and Outbound Messages in CXF
When using CXF either as a client or to serve services, you can quickly get the wish to view the raw inbound and outbound messages sent and received. Turns out, it is rather easy to enable this. There are various ways to enable this, ranging from a pure programmatic approach, to various forms of configuration. [...]
January 30, 2008
·
polesen ·
2 Comments
Tags: cxf, Java, logging · Posted in: Programming
Configuring CXF Logging To Go Through Log4J
Apparently, CXF has chosen the JSE logging API as their API against logging. But you can make CXF log through Log4J quite easily. In the org.apache.cxf.common.logging package of the CXF apidocs, I found the Log4JLogger class, which is a specialization of the JSE logging api java.util.logging.Logger class, delegating logging to a Log4J implementation. Configuring Log4J [...]
January 30, 2008
·
polesen ·
34 Comments
Tags: cxf, Java, log4j, logging · Posted in: Programming
