Callback services are not taken into account when calculating the total number
of services and determining whether the service name should be included in the
URI
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: TUSCANY-1914
URL: https://issues.apache.org/jira/browse/TUSCANY-1914
Project: Tuscany
Issue Type: Bug
Components: Java SCA Core Runtime
Affects Versions: Java-SCA-1.0
Reporter: Simon Laws
Assignee: Simon Laws
Fix For: Java-SCA-Next
CompositeConfigurationBuilderImpl has the following code in the
configureComponents method.
// Initialize service bindings
* for (ComponentService componentService : component.getServices()) {
// Create default SCA binding
if (componentService.getBindings().isEmpty()) {
SCABinding scaBinding = createSCABinding();
componentService.getBindings().add(scaBinding);
}
// Set binding names and URIs
for (Binding binding : componentService.getBindings()) {
// Binding name defaults to the service name
if (binding.getName() == null) {
binding.setName(componentService.getName());
}
String bindingURI;
if (binding.getURI() == null) {
* if (componentServices.size() > 1) {
Note that the service collection size that is tested to determine what form of
URL to use (the last line) is a different collection compared to the outer loop
(the first list). The callback services are added into the
component.getServices() after componentServices has been calculated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]