Hello,

The services in ServiceMix ESB are identified by a service name and an endpoint 
name, which have to comply with the WSDL (if you have one) service and port 
name. You can have twice the same endpoint name, as long as the service names 
are different, or twice the same service name as long as the endpoint names are 
different.

In your case, you have twice the service "xyz:helloWorld" with endpoint 
"helloWorld" and xyz have the same value in both your service. Therefore I 
think that service mix can't register them.

I am not expert in ServiceMix, so I don't know what an endpoint is exactly. You 
might find some answer by googling it. The idea of endpoint is not specific to 
ServiceMix though.

Ok you want to customize an SE. Do you mean by that you need to create specific 
code for a service inside ServiceMix? I never did that, but I think CXF SE 
could help you.


Regards,
Vivian




-----Message d'origine-----
De : youhaodeyi [mailto:[email protected]] 
Envoyé : mercredi 16 septembre 2009 13:20
À : [email protected]
Objet : RE: Anyone knows this error "specified for routing, but can't find it 
registered"


Hello,

Why do you think I have two different endpoints with the same names? I took the 
bridge demo as an example. If you look at the xbean.xml in bridge-http-su demo, 
you would see that it uses "endpoint" endpoint. And in bridge-eip-su, it uses 
the same endpoint "endpoint". I am new to ServiceMix.
What does this endpoint mean? 

I want to customize a SE. So which type should I use? 


Madesclair Vivian wrote:
> 
> Hello,
> 
> Don't you have an error at deployment?
> It seems to me that you have two different endpoints with the same names.
> That can't work in my opinion.
> 
> BTW, you should use the new http endpoint (cf smx documentation). 
> Also, I don't know what this hwse namespace you are using is. What SE 
> type is this? CXF SE?
> 
> I hope this helps
> Vivian
> 
> -----Message d'origine-----
> De : youhaodeyi [mailto:[email protected]] Envoyé : mercredi 16 
> septembre 2009 09:27 À : [email protected] Objet : Anyone 
> knows this error "specified for routing, but can't find it registered"
> 
> 
> I have two SU. One for Http-BC another for SE. The HTTP-BC xbean.xml is
> shown as below:
> 
> <beans xmlns:http="http://servicemix.apache.org/http/1.0";
>        xmlns:xyz="http://companyxyz.com";
>        xmlns="http://www.springframework.org/schema/beans";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xsi:schemaLocation="http://servicemix.apache.org/http/1.0
> http://servicemix.apache.org/schema/servicemix-http-3.2.3.xsd
>        http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
> 
>   <http:endpoint service="xyz:helloWorld"
>                  endpoint="helloWorld"
>                  role="consumer" 
>                  locationURI="http://localhost:8192/example/";
>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
>                  soap="true" />             
> 
> </beans>
> 
> The SE xbean.xml is shown as below:
> <beans xmlns:hwse="http://org.apache.servicemix.samples.helloworld.se/1.0"; 
>        xmlns:xyz="http://companyxyz.com";>
>   <hwse:endpoint service="xyz:helloWorld" endpoint="helloWorld"/> </beans>
> 
> Then, I write a javascript to send message to
> http://localhost:8192/example.
> The servicemix console print this error:
> WARN  - DefaultBroker                  - ServiceName
> ({http://companyxyz.com}helloWorld) specified for routing, but can't find
> it registered
> WARN  - DefaultBroker                  - ServiceName
> ({http://companyxyz.com}helloWorld) specified for routing, but can't find
> it registered
> --
> View this message in context:
> http://www.nabble.com/Anyone-knows-this-error-%22specified-for-routing%2C-but-can%27t-find-it-registered%22-tp25467299p25467299.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Anyone-knows-this-error-%22specified-for-routing%2C-but-can%27t-find-it-registered%22-tp25467299p25470333.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to