Hi,

You can't register two JBI endpoint with same servicename and endpointname.
You need edit PECService.wsdl, add another service with different service name 
and port address, then you can add another cxfbc consumer based on it. 
-------------
Freeman Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-10-11, at 下午6:40, Lorenzo Bolzani wrote:

> Hi,
> I have a cxf-se service unit that works fine. This is the cxf-se part
> 
> 
>    <cxfse:endpoint mtomEnabled="true" useJBIWrapper="false"
> service="PECService">
>        <cxfse:pojo>
>            <bean class="it.something.kdv.pec.PECService">
>                <property name="imapServer" value="myServer" />
>                <property name="imapConnection" value="PLAIN" />
>                [...]
>            </bean>
>        </cxfse:pojo>
>    </cxfse:endpoint>
> 
> and the http part
> 
>  <cxfbc:consumer wsdl="classpath:wsdl/PECService.wsdl"
>                  targetService="pec:PECService"
>                  targetInterface="pec:PECService"
>                  locationURI="http://0.0.0.0:8092/PECService/";
>                  mtomEnabled="true" useJBIWrapper="false"/>
> 
> Now, for another customer, I need another instance of this webserver that
> is just the same but with different configuration (static values and java
> injected dependencies).
> 
> So I tought that I could just duplicate the blocks above but when I add this
> 
>  <cxfbc:consumer wsdl="classpath:wsdl/PECService.wsdl"
>                  targetService="pec:PECServiceTwo"
>                  targetInterface="pec:PECServiceTwo"
>                  locationURI="http://0.0.0.0:8092/PECServiceTwo/";
>                  mtomEnabled="true" useJBIWrapper="false"/>
> 
> I get the following error:
> 
> More than one endpoint found in the SU for key: {
> http://www.something.it/kdv/pec/ws}PECService:PECServicePort</loc-message>
> <stack-trace><![CDATA[javax.jbi.management.DeploymentException: More than
> one endpoint found in the SU for key: {
> http://www.something.it/kdv/pec/ws}PECService:PECServicePort
> 
> The error makes sense, but is there a workaround for this?
> 
> 
> Thanks
> 
> Lorenzo

Reply via email to