I have succefully built and run the hello-world-se project.  In the project,
there are three java class:MyBootstrap,MyComponent and MyEndpoint. Now I add
a new class MyComponent1 to the project and modify MyComponent as follows:
    protected Class[] getEndpointClasses() {
        return new Class[] { MyEndpoint1.class,MyEndpoint.class};  
    }
The xbean.xml of my hello-world-su is:
<?xml version="1.0"?>
<beans xmlns:hw-se="http://ygc.helloworld.se/1.0"; 
        xmlns:hw="http://ygc/helloworld";> 
       <hw-se:endpoint service="hw:helloworld-service-1"
endpoint="testendpoint" /> 
</beans>

Now, when message is routed to service hw:helloworld-service-1, always the
class MyEndpoint is invoked.
How to config these project to select appropriate endpoint according to
config files?
-- 
View this message in context: 
http://www.nabble.com/A-question-about-Endpoint-selected-tf3664213s12049.html#a10238403
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to