You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by ga...@barclays.com on 2013/03/12 16:29:52 UTC

Camel BINDY FIXED - Short Record handling features

Hi,
Please advise if there is a feature available in Camel BINDY FIXED Format to handle the short record exceptions.

i.e) the file is Fixed Format of 80 Bytes, but it may also contain less than 80 on some records.

When I defined the Model Class with 80 Bytes, the processor is failing on those records where the record length is less than 80.

Currently I am making use of the following in the Model Class.

@FixedLengthRecord(length=80 ,paddingChar=' ',hasHeader=true, hasFooter=true)

Thanks
Ganesh


_______________________________________________

This message may contain information that is confidential or privileged. If you are not an intended recipient of this message, please delete it and any attachments, and notify the sender that you have received it in error. Unless specifically stated in the message or otherwise indicated, you may not uplicate, redistribute or forward this message or any portion thereof, including any attachments, by any means to any other person, including any retail investor or customer. This message is not a recommendation, advice, offer or solicitation, to buy/sell any product or service, and is not an official confirmation of any transaction. Any opinions presented are solely those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer and, if received from Barclays' Sales or Trading desk, the terms available at: www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you consent to the foregoing. Barclays Bank PLC is a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays group.

_______________________________________________

Re: Camel BINDY FIXED - Short Record handling features

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

I am not sure. There has been some issues with Bindy over the years as
people use it for many different wats than it initially supported.

Though in recent time Rich Newcomb and others have contributed to
camel-bindy to make it better.

Though as usually its often easier to provide a small unit test that
demonstrates the problem. Then raise that as a issue in the JIRA
tracker. Then we can use that test to help fix / improve the problem.

And for CSV / flat files there are alternatives as listed here
http://camel.apache.org/data-format.html

For example beanio is a pretty cool project that is active maintained.
Some of the others are not and has not been maintained for years.
Though they do the work as well..


On Tue, Mar 12, 2013 at 9:47 PM,  <ga...@barclays.com> wrote:
> Claus,
> I see your comment about improving the BINDY Fixed Length http://camel.465427.n5.nabble.com/Bindy-and-FixedLength-td5118749.html
>
> Is the below issue will get addressed as part of the fix?
>
> If the data is short record, then the padding is not happening to make it to match with the Model Length.
>
> Thanks
> Ganesh
>
> -----Original Message-----
> From: Kanagavel, Ganesh Kumar: CRES (NYK)
> Sent: Tuesday, March 12, 2013 11:34 AM
> To: users@camel.apache.org
> Subject: Camel BINDY FIXED - Short Record handling features
>
> Hi,
> Please advise if there is a feature available in Camel BINDY FIXED Format to handle the short record exceptions.
>
> i.e) the file is Fixed Format of 80 Bytes, but it may also contain less than 80 on some records.
>
> When I defined the Model Class with 80 Bytes, the processor is failing on those records where the record length is less than 80.
>
> Currently I am making use of the following in the Model Class.
>
> @FixedLengthRecord(length=80 ,paddingChar=' ',hasHeader=true, hasFooter=true)
>
> Thanks
> Ganesh
>
>
> _______________________________________________
>
> This message may contain information that is confidential or privileged. If you are not an intended recipient of this message, please delete it and any attachments, and notify the sender that you have received it in error. Unless specifically stated in the message or otherwise indicated, you may not uplicate, redistribute or forward this message or any portion thereof, including any attachments, by any means to any other person, including any retail investor or customer. This message is not a recommendation, advice, offer or solicitation, to buy/sell any product or service, and is not an official confirmation of any transaction. Any opinions presented are solely those of the author and do not necessarily represent those of Barclays.
>
> This message is subject to terms available at: www.barclays.com/emaildisclaimer and, if received from Barclays' Sales or Trading desk, the terms available at: www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you consent to the foregoing. Barclays Bank PLC is a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays group.
>
> _______________________________________________
> _______________________________________________
>
> This message may contain information that is confidential or privileged. If you are not an intended recipient of this message, please delete it and any attachments, and notify the sender that you have received it in error. Unless specifically stated in the message or otherwise indicated, you may not uplicate, redistribute or forward this message or any portion thereof, including any attachments, by any means to any other person, including any retail investor or customer. This message is not a recommendation, advice, offer or solicitation, to buy/sell any product or service, and is not an official confirmation of any transaction. Any opinions presented are solely those of the author and do not necessarily represent those of Barclays.
>
> This message is subject to terms available at: www.barclays.com/emaildisclaimer and, if received from Barclays' Sales or Trading desk, the terms available at: www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you consent to the foregoing. Barclays Bank PLC is a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays group.
>
> _______________________________________________



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

RE: Camel BINDY FIXED - Short Record handling features

Posted by ga...@barclays.com.
Claus,
I see your comment about improving the BINDY Fixed Length http://camel.465427.n5.nabble.com/Bindy-and-FixedLength-td5118749.html

Is the below issue will get addressed as part of the fix?

If the data is short record, then the padding is not happening to make it to match with the Model Length.

Thanks
Ganesh

-----Original Message-----
From: Kanagavel, Ganesh Kumar: CRES (NYK) 
Sent: Tuesday, March 12, 2013 11:34 AM
To: users@camel.apache.org
Subject: Camel BINDY FIXED - Short Record handling features

Hi,
Please advise if there is a feature available in Camel BINDY FIXED Format to handle the short record exceptions.

i.e) the file is Fixed Format of 80 Bytes, but it may also contain less than 80 on some records.

When I defined the Model Class with 80 Bytes, the processor is failing on those records where the record length is less than 80.

Currently I am making use of the following in the Model Class.

@FixedLengthRecord(length=80 ,paddingChar=' ',hasHeader=true, hasFooter=true)

Thanks
Ganesh


_______________________________________________

This message may contain information that is confidential or privileged. If you are not an intended recipient of this message, please delete it and any attachments, and notify the sender that you have received it in error. Unless specifically stated in the message or otherwise indicated, you may not uplicate, redistribute or forward this message or any portion thereof, including any attachments, by any means to any other person, including any retail investor or customer. This message is not a recommendation, advice, offer or solicitation, to buy/sell any product or service, and is not an official confirmation of any transaction. Any opinions presented are solely those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer and, if received from Barclays' Sales or Trading desk, the terms available at: www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you consent to the foregoing. Barclays Bank PLC is a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays group.

_______________________________________________
_______________________________________________

This message may contain information that is confidential or privileged. If you are not an intended recipient of this message, please delete it and any attachments, and notify the sender that you have received it in error. Unless specifically stated in the message or otherwise indicated, you may not uplicate, redistribute or forward this message or any portion thereof, including any attachments, by any means to any other person, including any retail investor or customer. This message is not a recommendation, advice, offer or solicitation, to buy/sell any product or service, and is not an official confirmation of any transaction. Any opinions presented are solely those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer and, if received from Barclays' Sales or Trading desk, the terms available at: www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you consent to the foregoing. Barclays Bank PLC is a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays group.

_______________________________________________

Camel BINDY FIXED - Short Record handling features

Posted by ga...@barclays.com.
Hi,
Please advise if there is a feature available in Camel BINDY FIXED Format to handle the short record exceptions.

i.e) the file is Fixed Format of 80 Bytes, but it may also contain less than 80 on some records.

When I defined the Model Class with 80 Bytes, the processor is failing on those records where the record length is less than 80.

Currently I am making use of the following in the Model Class.

@FixedLengthRecord(length=80 ,paddingChar=' ',hasHeader=true, hasFooter=true)

Thanks
Ganesh


_______________________________________________

This message may contain information that is confidential or privileged. If you are not an intended recipient of this message, please delete it and any attachments, and notify the sender that you have received it in error. Unless specifically stated in the message or otherwise indicated, you may not uplicate, redistribute or forward this message or any portion thereof, including any attachments, by any means to any other person, including any retail investor or customer. This message is not a recommendation, advice, offer or solicitation, to buy/sell any product or service, and is not an official confirmation of any transaction. Any opinions presented are solely those of the author and do not necessarily represent those of Barclays.

This message is subject to terms available at: www.barclays.com/emaildisclaimer and, if received from Barclays' Sales or Trading desk, the terms available at: www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays you consent to the foregoing. Barclays Bank PLC is a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays group.

_______________________________________________