]
R Searls updated FORGE-1215:
----------------------------
Attachment: service-promotion_Alpha12.zip
Switchyard service promotion issues
-----------------------------------
Key: FORGE-1215
URL:
https://issues.jboss.org/browse/FORGE-1215
Project: Forge
Issue Type: Bug
Components: Plugin API
Affects Versions: 2.0.0.Alpha12
Environment: Fedora 16
java 1.7.0
maven 3.1.0
Reporter: R Searls
Attachments: service-promotion_Alpha12.zip
This issue is in the plugin-switchyard code.
A created service can not be promoted until the service classes are compiled.
The underlying code does not see the service until it is compile. There is
code in the generated switchyard maven project pom.xml to introspect class files.
The generated XML in the switchyard.xml file of a promoted service is not
correct. A service element as a direct child of composite element is required,
but is not generated.
------- switchyard.xml contents that is generated for a promoted service -----------
<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.0">
<composite
xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
name="myProject"
targetNamespace="urn:switchyard:application:myProject">
<component name="SimpleListener">
<implementation.bean
xmlns="urn:switchyard-component-bean:config:1.0"
class="jbossesb.services.service.SimpleListenerBean"/>
<service name="SimpleListener">
<interface.java
interface="jbossesb.services.service.SimpleListener"/>
</service>
</component>
</composite>
</switchyard>
------- switchyard.xml contents that is needed for a promoted service --------------
<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.0">
<composite
xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
name="myProject"
targetNamespace="urn:switchyard:application:myProject">
<service name="SimpleListener"
promote="SimpleListener">
<binding.sca/>
</service>
<component name="SimpleListener">
<implementation.bean
xmlns="urn:switchyard-component-bean:config:1.0"
class="jbossesb.services.service.SimpleListenerBean"/>
<service name="SimpleListener">
<interface.java
interface="jbossesb.services.service.SimpleListener"/>
</service>
</component>
</composite>
</switchyard>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: