camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
Subject Re: Camel & Weblogic Using CXF Proxy Pattern and Jetty Component
Date Thu, 27 Sep 2012 07:23:28 GMT
Just quick note, if you are using CXF 2.5.x, you don't need to specify the below line in your
spring configuration file
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>




-- 
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang 
Weibo: willemjiang





On Wednesday, September 26, 2012 at 4:13 AM, alex kasko wrote:

> On 9/25/12, cyberstu <cyberstu007@yahoo.co.uk (mailto:cyberstu007@yahoo.co.uk)>
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 (http://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 (http://Nabble.com).
> 
> 
> 
> Regards,
> Alex




Mime
View raw message