2007-02-14

WebLogic Only Supports String Type in ActivationSpec

Unlike WebSphere and JBoss, WebLogic only supports java.lang.String type properties in ActivationSpec. WebLogic claims it always strictly follows J2EE specification. Developer can specify properties with wrapped primitive types on Resource Adaptor level in ra.xml:


<resourceadapter>
<resourceadapter-class>
mypackage.ResourceAdapterImpl
</resourceadapter-class>
<config-property>
<config-property-name>convertRate</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
<config-property-value>123</config-property-value>
</config-property>
……


Maybe it is true that this is the right way, but it is obviously inconvenient to specify only String type in ActivationSpec.

0 Comments:

Post a Comment

<< Home