CXF

From Resin 3.0

Revision as of 19:19, 23 January 2008 by Emil (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CXF and Resin

Resin features easy creation and deployment of CXF web services and clients, avoiding the need for complicated configuration.

(The following has been tested with Resin 3.1.5 and CXF 2.0.3)

  1. Download Resin from http://www.caucho.com/download
  2. Unzip Resin into /usr/local/share/resin
  3. Create the CXF webapp directory structure:
    /usr/local/share/resin/webapps/cxf/WEB-INF/lib/
    /usr/local/share/resin/webapps/cxf/WEB-INF/classes/test/
  4. Download CXF from http://incubator.apache.org/cxf/
  5. Unzip CXF
  6. Copy all the jars included the CXF lib/ directory to
    /usr/local/share/resin/webapps/cxf/WEB-INF/lib/
  7. Create the file /usr/local/share/resin/webapps/cxf/WEB-INF/resin-web.xml
    <web-app xmlns="http://caucho.com/ns/resin">
      <servlet-mapping url-pattern='/StrLenTest' servlet-class='demo.StrLenTest'/>
    
      <servlet-mapping url-pattern='/StrLen/*' servlet-class='demo.StrLenImpl'>
        <protocol type="cxf"/>
      </servlet-mapping>
    
      <remote-client class="demo.StrLen" name="StrLenClient">
        <url>cxf:http://localhost:8080/cxf/StrLen/StrLenImpl</url>
      </remote-client>
    </web-app>
    
  8. Start Resin with java -jar /usr/local/share/resin/lib/resin.jar
Personal tools