Hello there,

is this a known bug in Tuscany 1.6? Couldn't find it in JIRA,
but maybe my search was not good.

A service with an RMI binding cannot be promoted, because when
the binding for the promoted service is processed, the Tuscany
CompositeActivatorImpl attempts to start the RMIServiceBindingProvider
a second time, which leads to the DefaultRMIHost wanting to bind the 
service under the same name in the RMI registry, which produces an 
AlreadyBoundException.

Here's a snippet from the composite.xml:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"; 
xmlns:ts="http://tuscany.apache.org/xmlns/sca/1.0"; name="logger_composite" 
targetNamespace="http://ps.softwareag.com/";>
  <component name="SLF4JAdapterComponent">
    <implementation.java 
class="com.softwareag.ps.platform.logadapter.impl.SLF4JAdapterImpl"/>
    <service name="LogAdapterService">
      <interface.java 
interface="com.softwareag.ps.platform.logadapter.LogAdapterService"/>
      <binding.sca/>
      <ts:binding.rmi host="localhost" port="1099" 
serviceName="LogAdapterServiceRMI"/>  <!-- *** -->
    </service>
  </component>
  <service name="SLF4JLogAdapterService" 
promote="SLF4JAdapterComponent/LogAdapterService"/> <!-- *** -->
</composite>

-- Sebastian
 

Reply via email to