Bugs item #518896, was opened at 2002-02-17 14:49
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=518896&group_id=22866

Category: JBossMX
Group: v2.4 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Marc Prud'hommeaux (mprudhom)
Assigned to: Nobody/Anonymous (nobody)
Summary: config-property-type in ra.xml be primat

Initial Comment:
In 2.4.4, if my ra.xml file contains a config-property
like:

        <config-property>
            <description>the minimum number of
connections in the connection pool</description>
           
<config-property-name>MinPool</config-property-name>
           
<config-property-type>java.lang.Integer</config-property-type>
           
<config-property-value>3</config-property-value>
        </config-property>


then I get warnings when I try to deploy my .rar file:

[WARN,jdoConnectionFactory] Using default value '3' for
config property 'MinPool'
[WARN,jdoConnectionFactory] Unable to find a
PropertyEditor for class 'class java.lang.Integer' of
property 'MinPool' - skipping property


Note that setting it to "int" won't work, since
Class.forName ("int") dosen't work. Line 570 of
ConnectionFactoryLoader.java should check for primitive
Object types (like Integer.class) and replace it with 
primitive class type (int.class) so
PropertyEditorManager.findEditor (Class) can locate them.

Note that this isn't seen in jbosspool-jdbc.rar, since
it only uses String properties.

A fixed ConnectionFactoryLoader.java is attached
(although I haven't tested it, nor is it terribly elegant).








----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=518896&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to