3 Replies Latest reply on Mar 20, 2008 5:48 AM by kconner

    Example of jboss-esb.xml with JCA provider

    lafbarbosa

      Hi people,

      Please, does anybody have already seen an example of JCA provider into a jboss-esb.xml?

      I ask this because I've found (into the jbossesb-1.0.1.xsd) the following attributes for the jms-jca-provider tag:
      - adapter:the artifact containing the resource adapter; type string
      - endpointClass: the class name of the JCA endpoint; type string
      - messagingType: the class name of the messaging specific interface; type string
      - jcaBridge: the class name of the JCA Bridge; type string
      - transacted: the transacted flag; type boolean
      - providerAdapterJNDI: the JNDI location of an alternate provider adapter

      but, I haven't seen any example in quickstart samples.

      Thanks in advance!

      Regards,

      Luiz

        • 1. Re: Example of jboss-esb.xml with JCA provider
          kconner

          You do not need to do anything with these attributes unless you are overriding the current JCA configuration. The jms-jca-provider already provides default values for these.

          • 2. Re: Example of jboss-esb.xml with JCA provider
            lafbarbosa

            Hi Kevin,

            Ok, but if I don't use these attributes related above, which is the difference between use a jms-provider and a jms-jca-provider? Because it seems to be exactly the same.

            For example:

            <jms-provider name="CallbackQueue-JMS-Provider" connection-factory="ConnectionFactory">
            <jms-bus busid="jBPMCallbackBus">
            <jms-message-filter dest-type="QUEUE" dest-name="queue/CallbackQueue"/>
            </jms-bus>
            </jms-provider>
            <jms-jca-provider name="CallbackQueue-JMS-Provider" connection-factory="ConnectionFactory">
            <jms-bus busid="jBPMCallbackBus">
            <jms-message-filter dest-type="QUEUE" dest-name="queue/CallbackQueue"/>
            </jms-bus>
            </jms-jca-provider>


            Could you give me some idea about the usage of each one?

            Thanks in advance!

            Regards,

            Luiz

            • 3. Re: Example of jboss-esb.xml with JCA provider
              kconner

              The similarity in the configuration is intentional.

              The jca-jms-provider uses JCA to deliver the JMS messages into the ESB and can therefore take advantage of encompassing transactions, the jms-provider uses the normal JMS connections and is not transactional.

              You should be able to change a jms-provider into a jca-jms-provider is you wish to use a transactional context.