You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by "angel.ortiz" <ao...@gmail.com> on 2009/09/28 18:44:49 UTC

Installing a CXF BC in a server with fixed IP address

Hi,

I want to install a Service Assembly in a physical server using the
ServiceMix Console (war) deployed in JBoss.

My SA receives SOAP requests, does some tasks and in the end sends an Email.

  CXF BC (consumer) ---> [other SUs] ---> Mail SU

The problem I have is when I deploy the SA I cannot find the WSDL of my CXF
BC. I tested my SA locally using this configuration and works just fine:

    CXF BC:

    <cxfbc:consumer wsdl="classpath:SMXMailSender.wsdl"
        service="ge:SMXMailSender" 
	useJBIWrapper="true" 
	synchronous="true"
	useSOAPEnvelope="true" 
	targetService="ge:MailSenderServiceEngine"
	timeout="10000" />

    WSDL:

    <wsdl:service name="SMXMailSender">
		<wsdl:port binding="tns:SMXMailSenderSOAP"
			name="SMXMailSenderSOAP">
			<soap:address location="http://localhost:8192/SMXMailSender/" />
		</wsdl:port>
	</wsdl:service>
		
When I try to deploy this to my server I have to change the localhost value
with something else, right? I first tried with the server IP address, then
with localhost and finally with 0.0.0.0, these didn't seem to work because I
can't find the wsdl file anywhere... it seems like jetty is not exposing the
WSDL in the address specified in the WSDL.

Do you know what is the right way to do this?

Thanks and regards,
A noob

-- 
View this message in context: http://www.nabble.com/Installing-a-CXF-BC-in-a-server-with-fixed-IP-address-tp25648807p25648807.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Installing a CXF BC in a server with fixed IP address

Posted by "angel.ortiz" <ao...@gmail.com>.

Thanks Freeman, that makes more sense. 
I will try that way.

Angel


Freeman Fang wrote:
> 
> Hi,
> 
> When you deploy cxf bc into servlet server, you need modify  
> locationURI as follows
> locationURI="/whateveryouwant"
> 
> then you can access the wsdl from
> http://localhost:8080/apache-servicemix-web-3.3.1/services/whateveryouwant?wsdl
> 
> I assume your servlet container use 8080 port and you need use smx 3.3.1
> 
> Freeman
> On 2009-9-29, at 上午12:44, angel.ortiz wrote:
> 
> 

-- 
View this message in context: http://www.nabble.com/Installing-a-CXF-BC-in-a-server-with-fixed-IP-address-tp25648807p25672500.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Installing a CXF BC in a server with fixed IP address

Posted by "angel.ortiz" <ao...@gmail.com>.

Freeman, changing the location URI as you mention works fine. I have another
question though. I have some other components in my SA with 'localhost'
addresses. How should I adjust these values when deploying to a Servlet
container?

JMS + Active MQ:

        <bean name="amqConnectionFactory" id="connectionFactory"
	 class="org.apache.activemq.spring.ActiveMQConnectionFactory">
		<property name="brokerURL" value="vm://localhost"/>
	</bean>
        ...
        <bean class="org.apache.activemq.broker.jmx.ManagementContext"
id="amqManagementContext">
		<property name="connectorPort" value="2011"/>
		<property name="jmxDomainName" value="tcp://localhost:0"/>
	</bean>

At this moment my messages are not reaching the queue. 

Angel


Freeman Fang wrote:
> 
> Hi,
> 
> When you deploy cxf bc into servlet server, you need modify  
> locationURI as follows
> locationURI="/whateveryouwant"
> 
> then you can access the wsdl from
> http://localhost:8080/apache-servicemix-web-3.3.1/services/whateveryouwant?wsdl
> 
> I assume your servlet container use 8080 port and you need use smx 3.3.1
> 
> Freeman
> On 2009-9-29, at 上午12:44, angel.ortiz wrote:
> 
> 

-- 
View this message in context: http://www.nabble.com/Installing-a-CXF-BC-in-a-server-with-fixed-IP-address-tp25648807p25688906.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Installing a CXF BC in a server with fixed IP address

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

When you deploy cxf bc into servlet server, you need modify  
locationURI as follows
locationURI="/whateveryouwant"

then you can access the wsdl from
http://localhost:8080/apache-servicemix-web-3.3.1/services/whateveryouwant?wsdl

I assume your servlet container use 8080 port and you need use smx 3.3.1

Freeman
On 2009-9-29, at 上午12:44, angel.ortiz wrote:

>
> Hi,
>
> I want to install a Service Assembly in a physical server using the
> ServiceMix Console (war) deployed in JBoss.
>
> My SA receives SOAP requests, does some tasks and in the end sends  
> an Email.
>
>  CXF BC (consumer) ---> [other SUs] ---> Mail SU
>
> The problem I have is when I deploy the SA I cannot find the WSDL of  
> my CXF
> BC. I tested my SA locally using this configuration and works just  
> fine:
>
>    CXF BC:
>
>    <cxfbc:consumer wsdl="classpath:SMXMailSender.wsdl"
>        service="ge:SMXMailSender"
> 	useJBIWrapper="true"
> 	synchronous="true"
> 	useSOAPEnvelope="true"
> 	targetService="ge:MailSenderServiceEngine"
> 	timeout="10000" />
>
>    WSDL:
>
>    <wsdl:service name="SMXMailSender">
> 		<wsdl:port binding="tns:SMXMailSenderSOAP"
> 			name="SMXMailSenderSOAP">
> 			<soap:address location="http://localhost:8192/SMXMailSender/" />
> 		</wsdl:port>
> 	</wsdl:service>
> 		
> When I try to deploy this to my server I have to change the  
> localhost value
> with something else, right? I first tried with the server IP  
> address, then
> with localhost and finally with 0.0.0.0, these didn't seem to work  
> because I
> can't find the wsdl file anywhere... it seems like jetty is not  
> exposing the
> WSDL in the address specified in the WSDL.
>
> Do you know what is the right way to do this?
>
> Thanks and regards,
> A noob
>
> -- 
> View this message in context: http://www.nabble.com/Installing-a-CXF-BC-in-a-server-with-fixed-IP-address-tp25648807p25648807.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com