this is my SU xbean.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:tcpip="http://companyxyz.com";  xmlns:test="http://test";>
  <tcpip:consumer service="test:tcpipbc" endpoint="rdexEndpoint"
targetService="test:MyStaticRoutingSlipService"
targetEndpoint="myStaticRoutingSlipSu" />
</beans>

this is my BC xbean.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:tcpip="http://companyxyz.com"; xmlns:test="http://test"; >
<tcpip:consumer service="test:tcpipbc"
                 endpoint="rdexEndpoint"
                 targetService="test:MyStaticRoutingSlipService"
                 targetEndpoint="myStaticRoutingSlipSu"
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                 defaultOperation="test:processThis"
                 bean="#myBean" />
  <bean id="myBean"
class="com.softechnics.softretail.integration.dex.bc.MyConsumerEndpoint"/>
</beans>

this is my 'target' SE xbean.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:eip="http://servicemix.apache.org/eip/1.0";
xmlns:test="http://test";>
   <eip:static-routing-slip service="test:MyStaticRoutingSlipService"
endpoint="myStaticRoutingSlipSu">
   <eip:targets>
      <eip:exchange-target service="test:MyS1PojoService"
endpoint="myS1PojoSu"/>
      <eip:exchange-target service="test:MyS2PojoService"
endpoint="myS2PojoSu"/>
   </eip:targets>
   </eip:static-routing-slip>
</beans>


kai0411 wrote:
> 
> 
> I created a TCP BC, wrapped in SA. But got the error when I deploy this
> SA. I did have the service in xbean.xml, seems I need to call a function
> to register my service. Which function to call?
> 
> 2008-04-23 08:39:51,140 WARN  - DefaultBroker                  
> - ServiceName ({urn:test}tcpipbc) specified for routing, but can't find it
> registered
> 2008-04-23 08:39:51,140 DEBUG - DeliveryChannelImpl            
> - Exception processing: ID:172.18.128.83-1197b811758-2:0 in
> DeliveryChannel{rdex-tcpip-bc}
> communicateToRdex: ex Could not find route for exchange: InOut[
>   id: ID:172.18.128.83-1197b811758-2:0
>   status: Active
>   role: provider
>   service: {urn:test}tcpipbc
> ] for service: {urn:test}tcpipbc and interface: null
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-register-my-service--tp16851006p16852439.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Reply via email to