1 Reply Latest reply on May 25, 2005 8:46 PM by Adrian Brock

    possible improvement to setting up data sources

    Rajeev Sood Newbie

      I noticed while setting up a XADataSource in JBoss 4.0.2 that properties with lowercase names propagate through to function calls (i.e. if you set a xa-datasource-property named port, an attempt is made to call setport, not setPort).

      I took a look in org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory, and I noticed that when setting properties, you just pull them off the list. Would it be reasonable to make sure that the first letter of the property name is a capital letter, or more reasonable to add a note to the dtd that the first letter is case sensitive? I know that this seems like a trivial point, but a bean accessor/mutator should never be lowercase for the first letter following "set" or "get" anyway.