On 9/25/12, cyberstu <[email protected]> wrote:
> Hi,
>
> I am trying to use the Camel CXF proxy patter an described at
> http://camel.apache.org/cxf-proxy-example.html
> <http://camel.apache.org/cxf-proxy-example.html> . I have the example
> working locally however I am facing an issue when trying to deploy the
> solution within my organisation to our managed infrastructure.
>
> The issue is that our firewall configuration is strict, and only the ports
> used by the weblogic managed server are open for http traffic. Therefore,
> in
> order to expose web services they must be accessible over the managed
> servers address; including port number. In the context of the example, if
> is
> the ${proxy.port} property within the CXF endpoint that is the issue.
>
> I don't believe I can expose the CXF endpoint on the same port that the WLS
> manged server listens to for http traffic as we use the Jetty http
> component
> which requires a port that is not already in use.
>
> Could you please advise what options (if any) are available in order to
> expose the CXF endpoint on the existing WLS managed server port? I am
> reasonably happy with the current solution, so any options that don't
> require a total re-write would be appreciated.
>
> Thanks.
This config works for me with weblogic 10:
web.xml:
<servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
spring config:
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
<cxf:cxfEndpoint id="customerCurrentBalanceEndpoint"
address="/CustomerCurrentBalanceService"
serviceClass="ru.pensionsoft.schemas.rostelecom.ccstest.CustomerCurrentBalancePortType"
serviceName="ccs:CustomerCurrentBalanceService"
wsdlURL="classpath:/wsdl/ccstest.wsdl"/>
It's based on this thread
http://camel.465427.n5.nabble.com/How-to-config-cxf-in-project-td5000149.html
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-Weblogic-Using-CXF-Proxy-Pattern-and-Jetty-Component-tp5719976.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Regards,
Alex