[switchyard-issues] [JBoss JIRA] (SWITCHYARD-586) Service and Reference promotions naming issue

Magesh Bojan (Created) (JIRA) jira-events at lists.jboss.org
Tue Dec 13 22:02:09 EST 2011


Service and Reference promotions naming issue
---------------------------------------------

                 Key: SWITCHYARD-586
                 URL: https://issues.jboss.org/browse/SWITCHYARD-586
             Project: SwitchYard
          Issue Type: Bug
          Components: component-camel, configuration
            Reporter: Magesh Bojan


When we change the name of the promotions to anything other than what is given in promote the Camel component is unable to setup the route properly. Say for example this:

<sca:service name="PromotedService" promote="PromoteMeService">
...
</sca:service>

and this:

<sca:reference name="PromotedReference" promote="PromoteMeReference">
...
</sca:reference>

when referenced in Camel route as:

<spring:to uri="switchyard://PromotedService"/>
or
<spring:to uri="switchyard://PromotedReference"/>
or
<spring:to uri="switchyard://PromoteMeService"/>
or
<spring:to uri="switchyard://PromoteMeReference"/>

always throws error

Caused by: org.switchyard.exception.SwitchYardException: Could find the service reference for 'PromoteMeService' which is referenced in To[switchyard://PromoteMeService?namespace=urn%3Aswitchyard-quickstart%3Atest%3A1.0]
        at org.switchyard.component.camel.deploy.CamelActivator.handleImplementation(CamelActivator.java:190)
        at org.switchyard.component.camel.deploy.CamelActivator.init(CamelActivator.java:115)
        at org.switchyard.deploy.internal.Deployment.deployServices(Deployment.java:323)
        at org.switchyard.deploy.internal.Deployment.doStart(Deployment.java:131)
        at org.switchyard.deploy.internal.AbstractDeployment.start(AbstractDeployment.java:191)
        at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:105)
        at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:86)
        ... 5 more
Caused by: org.switchyard.exception.SwitchYardException: Could find the service reference for 'PromoteMeService' which is referenced in To[switchyard://PromoteMeService?namespace=urn%3Aswitchyard-quickstart%3Atest%3A1.0]
        at org.switchyard.component.camel.deploy.CamelActivator.checkSwitchYardReferencedServiceExist(CamelActivator.java:211)
        at org.switchyard.component.camel.deploy.CamelActivator.handleImplementation(CamelActivator.java:181)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the switchyard-issues mailing list