有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java从SpringWeb服务获取Jetty实例

我正在使用spring+jetty+cxf创建一个web服务,使用以下方法:

<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<jaxws:endpoint id="helloWorld" implementor="com.test.EndpointImp" address="http://localhost:9002/test">
</jaxws:endpoint>

这一切都像预期的那样运行良好。现在我需要“服务”一些服务员。我是否可以访问为此创建的jetty服务器实例,以便添加servlet?我不想在另一个端口上为我需要使用的servlet创建另一个Jetty实例

如有任何信息,将不胜感激


共 (0) 个答案