I've done this by letting CXF configure Jetty for me. (Example at the
end). You then need to write code in your application to locate the
Jetty server and anything you need to connect up to it.
If you don't want to do that, I'd suggest configuring your CXF service
as a full webapp that deploys the CXFServlet and configures your
services with Spring. Then add an org.mortbay.jetty.WebAppContext to
your Jetty initialization stack, passing it a base URL and the pathname
of the web app (.war or unpacked). Endpoints would look like
"address="/blooie", and the result is to concatenate /blooie onto the
end of the context URL for the WebAppContext.
<httpj:engine-factory bus="cxf">
<httpj:engine port="8808">
<httpj:handlers>
<!--
<bean class="org.mortbay.jetty.handler.RequestLogHandler">
<property name="requestLog">
<bean class="org.mortbay.jetty.NCSARequestLog">
<property name="filename" value="jetty.log"/>
</bean>
</property>
</bean>
-->
<bean class="org.mortbay.jetty.webapp.WebAppContext">
<constructor-arg value="${jsunitPathname}"/>
<constructor-arg value="/jsunit"/>
</bean>
<bean class="org.mortbay.jetty.handler.ContextHandler">
<property name="contextPath" value="/${staticResourceBase}" />
<property name="handler">
<bean class="org.mortbay.jetty.handler.ResourceHandler">
<property name="baseResource">
<bean class="org.mortbay.resource.FileResource">
<constructor-arg value="${staticResourceURL}" />
</bean>
</property>
</bean>
</property>
</bean>
</httpj:handlers>
</httpj:engine>
</httpj:engine-factory>