I've a class that contains an ArrayList of Strings. I'd thought that a
simple <collection ... /> element in the bindings file would suffice, and it
compiles ok. However, when I try to marshall the object into xml, I get the
following exception:

Collection item of type java.lang.String has no binding defined

Do i need to write a binding for String ??? Or am I just doing something
wrong ?

Here's the binding info:

 <mapping name="sync-req-message"
class="com.talent.data.replication.messages.SyncRequestMessage"
extends="com.talent.cruiser.messaging.CruiserMessage" >
 <structure map-as="com.talent.cruiser.messaging.CruiserMessage"/>
 <value name="action"    field="strAction"/>
 <value name="application"    field="strAppId"/>
    <value name="sync-policy"    field="syncPolicy"/>
    <value name="sync-type"    field="syncType"/>
    <collection field="tablenames" item-type="java.lang.String"/>
    </mapping>

Cheers,
Angel
O:]




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users
  • ... Άγγελος Καράντζαλης
    • ... Cameron Taggart
      • ... Άγγελος Καράντζαλης
        • ... Dennis Sosnoski
          • ... Άγγελος Καράντζαλης
            • ... Dennis Sosnoski

Reply via email to