NOTE: I'm using XFire Version: 1.2.6 on Java 1.4 with Aegis Bindings

A service is passing a Map back to an XFire dynamic client.  The
client is working well except that it always creates Maps as instances
of HashMap.  I need XFire to create LinkedHashMap instances to
preserve the order of the map entries.  I hoped to do something in my
aegis.xml file like

<mappings>
  <mapping>
    <property name="requiredActivationAttributes"
class="java.util.LinkedHashMap" keyType="java.lang.String"
componentType="java.lang.String" />
  </mapping>
</mappings>

When that didn't work I tried:

<mappings>
  <mapping>
    <property name="requiredActivationAttributes" keyType =
"#requiredAttributeMap" componentType="#requiredAttributeMap" />
    <component name="requiredAttributeMap"
class="java.util.LinkedHashMap" keyType="java.lang.String"
componentType="org.ihc.imass.domain.AttributeMetadata"  />
  </mapping>
</mappings>

I imagine if I weren't on Java SE 1.4 I'd be able to use CXF and my
problems could be solved.  Since SE 1.4 is a requirement, I'm using
XFire 1.2.6.

Any help is appreciated!

Scott

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to