|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (6)
View Page Historyh2. Provider Domain A
For the provider domain, it is necessary to both declare define a Consumes SU and a transport listener in at the component level.
h3. Consumes SU
</jbi:services>
</jbi:jbi>{code}
{code}
Here we see we chose to use the authentication name {{UniquelySharedBetweenA&B}} and the consumer domain will need to know this information.
{warning}The authentication name is +NOT+ meant to introduce security in the use of the Gateway BC: for that it is necessary to use [SSL|#ssl]!{warning}
{tip}The elements defined inside {{consumer-domain}} in an SU accept placeholder values.{tip}
h3. Component's Transport Listener
{code}
Here we can see we chose the port {{7500}} and the consumer domain will need to know this information.
h2. Consumer Domain B
For the consumer domain, it is only necessary to define a Provides SU based on the previously gathered information (authentication name, port) and hostname of the provider domain BC Gateway.
The Provides SU deployed on the Domain B is as follow:
{code:lang=xml}
<jbi:jbi version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:cdk="http://petals.ow2.org/components/extensions/version-5" xmlns:g="http://petals.ow2.org/components/petals-bc-gateway/version-1.0">
<jbi:services binding-component="true">
<g:provider-domain id="domainA">
<g:remote-ip>domainA-hostname</g:remote-ip>
<g:remote-port>7500</g:remote-port>
<g:remote-auth-name>UniquelySharedBetweenA&B</g:remote-auth-name>
</g:provider-domain>
</jbi:services>
</jbi:jbi>
{code}
{tip}The elements defined inside {{provider-domain}} in an SU accept placeholder values.{tip}
h2. Service Propagations
If we start with one container for A and one container for B without anything on them and after:
* deploying the Gateway BC on each of the container of A and B.
* adding the transport listener on the Gateway BC of A.
* deploying the Consumes SU on the Gateway BC of A and the Provides SU on the Gateway BC of B.
{tip}The order of deployment is not very important as by default, the Provides SU will try to reconnect until it succeeds{tip}.
We can see that no endpoints have been deployed on B: this is expected because A will only propagate existing endpoints.
{petalslink}add other cases{petalslink}
The Provides SU deployed on the Domain B is as follow:
{code:lang=xml}
<jbi:jbi version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:cdk="http://petals.ow2.org/components/extensions/version-5" xmlns:g="http://petals.ow2.org/components/petals-bc-gateway/version-1.0">
<jbi:services binding-component="true">
<g:provider-domain id="domainA">
<g:remote-ip>domainA-hostname</g:remote-ip>
<g:remote-port>7500</g:remote-port>
<g:remote-auth-name>UniquelySharedBetweenA&B</g:remote-auth-name>
</g:provider-domain>
</jbi:services>
</jbi:jbi>
{code}
{tip}The elements defined inside {{provider-domain}} in an SU accept placeholder values.{tip}
h2. Service Propagations
If we start with one container for A and one container for B without anything on them and after:
* deploying the Gateway BC on each of the container of A and B.
* adding the transport listener on the Gateway BC of A.
* deploying the Consumes SU on the Gateway BC of A and the Provides SU on the Gateway BC of B.
{tip}The order of deployment is not very important as by default, the Provides SU will try to reconnect until it succeeds{tip}.
We can see that no endpoints have been deployed on B: this is expected because A will only propagate existing endpoints.
{petalslink}add other cases{petalslink}
{anchor:ssl}
h1. Using SSL to authenticate and encrypt exchanges between domains
h1. Using SSL to authenticate and encrypt exchanges between domains