Aspect4CXF: An aspect framework for CXF

The following has beed developped and tested under:

  • Eclipse Java EE IDE for Web Developers - Juno Release
  • tomcat 7.0.27
  • CXF 2.5.3
  • JDK 1.7.0
  • AJDT 2.2.0.e42x-RELEASE-20120703-2200 - AspectJ version:

For information about installation and configuration of the environment, please refer to Petter Graff's Blog




Compilation and Execution

To execute the precompilation step, type the following command:

java -jar pai.jar path ressourcesPath matchingEngineURL baseProtocol thePackage

where each parameter is:

  • path: the path of the application to be analyzed (example: /workspace/myProject/com/mysite/)
  • ressourcesPath: the ressources path. PAI compiler creates some WSDL under the ressources path (example: /workspace/myProject/ressources/)
  • matchingEngineURL: the address (host and port) of the matching engine (example: http://localhost:8080/MatchingEngine/services/)
  • baseProtocol: the protocol representing the base program in our internal format language (example: /workspace/myProject/base.xml/)
  • thePackage: all new classes created by the compiler are placed in this package (example: com.mysite)

This step will generate all necessary files for the application to function properly. The next step is to run the Matching Engine. And then deploy and start the application

Back to top
start/aspect4cxf.txt · Last modified: 2013/08/06 18:11 by rcherrueau