2 Replies Latest reply on Jul 23, 2007 8:50 AM by xaleyba

    JCA Datasource parameter doubts

    xaleyba


      Hi

      I've developed a JCA RA and need to pass some parameters to it.

      So I ask: It's possible to get parameters inside my JCA from the datasource file ? I mean, data added to the mydatasourse-ds.xml.

      Also, inside the mydatasourse-ds.xml file I receive the number referred to the max connection pool size. Could I get such parameter from inside my JCA ?


      By last, I wonder wich is the expected way of pool to work. If I define a min of 10 connection and max of 30, when JBoss starts, it will use my JCA to create 10 connections ?


      Thanks in advance

      C





        • 1. Re: JCA Datasource parameter doubts

           

          "xaleyba" wrote:

          Hi

          I've developed a JCA RA and need to pass some parameters to it.

          So I ask: It's possible to get parameters inside my JCA from the datasource file ? I mean, data added to the mydatasourse-ds.xml.


          Yes. If by JCA you mean your ManagedConnectionFactory javabean properties.


          Also, inside the mydatasourse-ds.xml file I receive the number referred to the max connection pool size. Could I get such parameter from inside my JCA ?


          No. The pooling parameters are used to configure the ... wait for it ... pool. :-)


          By last, I wonder wich is the expected way of pool to work. If I define a min of 10 connection and max of 30, when JBoss starts, it will use my JCA to create 10 connections ?


          No, unless you configure it to "prefill".

          If you want better answers then ask better questions, or better yet
          try reading the docs before asking questions already answered there.

          • 2. Re: JCA Datasource parameter doubts
            xaleyba

            Adrian

            Thanks for your reply.

            May be my questions were so newbie but be sure I know how to make questions. I´ve asked what I want to know and your answers were useful and "on topic".


            Problem solved.

            Thank you again

            J