Posted: Wed Dec 29, 2010 4:47 am Post subject: MQ binding - Business object with array of child BOs
Newbie
Joined: 25 Mar 2010 Posts: 6
Hello,
I am trying to develop an MQ to MQ scenario in WPS 6.2.
I am trying to fetch the data from input queue with one header and array of line items. for eg. There is a customer business object that contains customer ID and customer name as message header and a list of "City" business objects which containts name of the city as line items.
Line items are dynamically added and should be handled during runtime.
The Message that I am going to put into the queue looks like this,
CU01John02London
CU01 is cusomter ID
John is customer Name
02 is total no of line items
Newyork - should be parsed as first element of child BO
I have configured mq binding-export with fixed width datahandler.
In fixed width data handler, below is my settings,
It is working fine, if I dont specify child BO as array.
If I specify it as array I am getting the below error message
commonj.connector.runtime.DataHandlerException: The input data has more elements than 4 which is the number of entries in the field width property. and listener is getting stopped.
also If I try to add one more line item like below
CU01John02LondonAthens
I am getting below error message commonj.connector.runtime.DataBindingException: java.lang.StringIndexOutOfBoundsException.
Please note that i have also configured the metadata property for child BO as below
metadata:BOPropertyNameASI
xmlns:metadata="http://www.ibm.com/wbiserver/datahandlers/metadata">
<metadata:propertyNameForCount>LineCnt</metadata:propertyNameForCount>
</metadata:BOPropertyNameASI>
can anyone please help me configuring datahandler/binding to support the array of child BOs.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum