Hello

I have a simple webservice defined in a Spring application:

  <jaxws:endpoint  implementor="com.myapp.MyServiceImpl"
  address="http://localhost:8000";>
    <jaxws:features>
      <cxf:logging />
    </jaxws:features>         
  </jaxws:endpoint>

and a JUnit test that's using <jaxws:client>:

    <httpj:engine-factory bus="cxf">  
      <httpj:engine port="8000">
        <httpj:sessionSupport>true</httpj:sessionSupport>
      </httpj:engine>
    </httpj:engine-factory>    
    
    <jaxws:client serviceClass="com.myapp.MyService"
    address="http://localhost:8000";>
        <jaxws:features>
            <cxf:logging />
        </jaxws:features>      
    </jaxws:client>

Jetty is being used automatically by CXF, which I assume is because it's
provided on the classpath by Maven during the test phase.

My question is, how do I inject the Jetty
org.eclipse.jetty.servlet.ServletContextHandler class into a bean so I
can get the ServletContext to set up an application, as one does with a
ServletContextListener defined in an application web.xl file?

Thanks


John

Reply via email to