2 Replies Latest reply on Jan 21, 2008 3:47 PM by kurtstam

    JDBC Datasource

    kdunki

      I have a really simple question.
      Where can a JDBC datasource be configured in order to be used in a Service.

        • 1. Re: JDBC Datasource
          kdunki

          I have configured a Datasource in management-ds.xml and it's working, but I still don't know if this is the right place to configure a datasource.

          • 2. Re: JDBC Datasource
            kurtstam

            The best place would be to package it up with your custom.esb archive that deploys your Service. To make sure the ds gets deployed before the service starts processing you can add a dependency in the deployment.xml like so:

            <depends>jboss.jca:service=DataSourceBinding,name=JbpmDS</depends>
            


            See also the jbossesb natives esb archives.

            --Kurt