PEtALS


The petals-bc-jms component can expose as a JBI ServiceEndpoint an external JMS Queue or JMS Topic. This is done by deploying a Service Unit on it.

When a message is received from the JBI environment, it is transform into a JMS TextMessage and sent or published on the Queue or Topic.

[]Caution

Due to the JMS paradigm, you can only send In or RobustIn messages to this component.

[]Caution

The external Queue or Topic referenced by the Service Unit has to be available before you start the Service Unit.

The Service Unit descriptor file ( jbi.xml ) looks like this :

<jbi version="1.0"
     xmlns='http://java.sun.com/xml/ns/jbi'
     xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
     xmlns:petals="http://petals.objectweb.org/"
     xmlns:extensions="http://petals.objectweb.org/extensions/"
     xmlns:keyvalue="http://petals.objectweb.org/extensions/key-value/">

  <services binding-component="true">
    <provides interface-name = "SendOnDestination"
            service-name = "petals:SendOnTopic"
            endpoint-name = "SendOnTopicEndpoint">

      <extensions:extensions>
       <keyvalue:extension>
        <address>scn://localhost:26400#myTopic</address>
        <initial-context-factory>fr.dyade.aaa.jndi2.client.NamingContextFactory</initial-context-factory>
        <connection-factory>myConnectionFactory</connection-factory>
        <user>root</user>
        <password>false</password>
        <transacted>false</transacted>

        <wsdl>myserviceDefinition.wsdl</wsdl>
       </keyvalue:extension>
      </extensions:extensions>
    </provides>
  </services>
</jbi>

JMS communication attributes :


Extra attributes :



The petals-bc-jms component can listen to an external JMS Queue or JMS Topic and send the message to a JBI ServiceEndpoint. We say that the component consumes the JBI service.

When a message is received from the JMS server (the component listens to the JMS Queue or has subscribed to a JMS Topic), it is transform into a JBI Message and sent to the JBI ServiceEndpoint configure in the Service Unit.

[]Caution

Due to the JMS paradigm, only In messages are sent.

[]Caution

The external Queue or Topic referenced by the Service Unit has to be available before you start the Service Unit.

The Service Unit descriptor file ( jbi.xml ) looks like this :

<jbi version="1.0"
     xmlns='http://java.sun.com/xml/ns/jbi'
     xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
     xmlns:petals="http://petals.objectweb.org/"
     xmlns:extensions="http://petals.objectweb.org/extensions/"
     xmlns:keyvalue="http://petals.objectweb.org/extensions/key-value/">

  <services binding-component="true">
    <consumes interface-name = "SomeJBIServiceInterface"
              service-name = "SomeJBIService"
              endpoint-name = "SomeJBIServiceEndpoint">

      <extensions:extensions>
        <keyvalue:extension>
          <address>scn://localhost:26400#myTopic</address>
          <initial-context-factory>fr.dyade.aaa.jndi2.client.NamingContextFactory</initial-context-factory>
          <connection-factory>myConnectionFactory</connection-factory>
          <user>root</user>
          <password>false</password>
          <transacted>false</transacted>
        </keyvalue:extension>
      </extensions:extensions>
    </consumes>
  </services>
</jbi>

JMS communication attributes :


Extra attributes :

no extra attribute for this component