You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by "Millies, Sebastian" <Se...@ids-scheer.com> on 2010/09/20 13:09:33 UTC
Bug: RMI cannot be promoted
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