3 Replies Latest reply on Dec 18, 2002 11:49 AM by davidjencks

    ManagedConnectionFactory Properties

    albupp

      Hello All,

      I've got a JCA which successfully deploys to JBoss v3.0.4. If I open the admin console, and click on the JCA service link I can see the list config-property triplets that I've configured in the ra.xml descriptor.

      However, I don't understand how these attributes are visible to my ManagedConnectionFactory class instance at runtime. I've looked through both the getting started doc and JBossBook, but haven't found the answer. Perhaps someone can explain how these properties become available to the ManagedConnectionFactory.

      Thanks in advance, Albert

        • 1. Re: ManagedConnectionFactory Properties
          davidjencks

          Until very recently there was a bug in all jboss 3 and 4 versions that caused these default values to be ignored, and only the values in the mbean configuration to be used. I think I have it fixed in all cvs versions so the default values from ra.xml are used unless overridden by values in the mbean configuration that actually deploys your ManagedConnectionFactory instance.

          I don't think this is in any binary releases yet.

          • 2. Re: ManagedConnectionFactory Properties
            albupp

            Humm, well OK, I'll check out the latest JBoss source. However, I'm still unclear on how the values from ra.xml become available to my ManagedConnectionFactory instance (in the debugged version). Does the deployer automatically call the corresponding set methods for each of these properties, or do I, as the creator of the ManagedConnectionFactory derived class have to do something to initialize them based on some system call, say in the class constructor?

            Cheers, Al

            • 3. Re: ManagedConnectionFactory Properties
              davidjencks

              The deployer sets values of all properties with values supplied in ra.xml or *-service.xml. Your adapter doesn't have to set anything itself.