HI,
I'm trying to create a service assembly that configures the routing between
deployed service units using the connection tag in the jbi.xml. 
I use the jbiConnectionsFile optional parameters of the jbi plugin (I try
the plugin's version 3.1 and 3.2), but I have a namespace's problem in
merging the connections elements into the jbi.xml.

My jbiConnectionsFile contains:
<connections xmlns="urn:it.imolinfo.jbi4corba.test.webservice.generator">
<connection>
<consumer endpoint-name="EchoPort" service-name="xmlns:EchoService" />
<provider endpoint-name="EchoJBIPort" service-name="xmlns:Echo"/>
</connection>
</connections>

The connections element is merged in the jbi.xml but the correct namespace
(urn:it.imolinfo.jbi4corba.test.webservice.generator) is replaced by ns1
that is not declared in the jbi.xml.
Here is the jbi.xml produced by the plugin:
<?xml version="1.0" encoding="UTF-8"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi"; version="1.0">
  <service-assembly>
    ...
    <service-unit>
    ...
    </service-unit>
    <service-unit>
    ...
    </service-unit>
    <connections>
      <connection>
        <consumer service-name="ns1:EchoService" endpoint-name="EchoPort"/>
        <provider service-name="ns1:Echo" endpoint-name="EchoJBIPort"/>
      </connection>
    </connections>
  </service-assembly>
</jbi>

In the maven's log I read this:
[INFO] Picking up connections from
L:\JbiConnector\jbi4corba\corba-bc\integration-test\integration_test_OpenESB\test-simple\src\main\resources\jbi-connections.xml
Got Element nodeName:connections
namespaceUri:urn:it.imolinfo.jbi4corba.test.webservice.generator
localName:connections
Got Element nodeName:connection
namespaceUri:urn:it.imolinfo.jbi4corba.test.webservice.generator
localName:connection
Got Element nodeName:consumer
namespaceUri:urn:it.imolinfo.jbi4corba.test.webservice.generator
localName:consumer
Got Element nodeName:provider
namespaceUri:urn:it.imolinfo.jbi4corba.test.webservice.generator
localName:provider
http://java.sun.com/xml/ns/jbi=urn:it.imolinfo.jbi4corba.test.webservice.generator
is false
consumer=provider is false
Got Element nodeName:provider
namespaceUri:urn:it.imolinfo.jbi4corba.test.webservice.generator
localName:provider
[INFO] Found 1 connections


How I can merge a jbi-connections.xml into the jbi.xml without losing the
namespace used in the connections element?

Thanks

Amedeo
-- 
View this message in context: 
http://www.nabble.com/Problem-with-jbiConnectionsFile-optional-parameters-of-the-jbi-plugin-tf3227924s12049.html#a8967239
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Reply via email to