Author |
Message
|
kishoreraju |
Posted: Thu Jun 02, 2005 5:40 am Post subject: |
|
|
Disciple
Joined: 30 Sep 2004 Posts: 156
|
I working on windows platform
and CCSID that i am using is 437
It not the problem with JText Adapter configuration.because we have Jtext adapter in another 10 senarios where we did't have any problem. |
|
Back to top |
|
 |
vennela |
Posted: Thu Jun 02, 2005 6:54 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
I don't understand what is being done here.
Is JText adapter configured for WBIMB ?
You should explain your configuration little better. |
|
Back to top |
|
 |
kishoreraju |
Posted: Thu Jun 02, 2005 8:21 am Post subject: |
|
|
Disciple
Joined: 30 Sep 2004 Posts: 156
|
I configured JText adapter with Message Broker
My scenario is
I have a JText adapter at the source side, which picks a message from a file and places it in a queue. From that the message flow will process that message and writes it on to a destination queue. Again from the destination queue Jtext adapter will pick that message writes it on to a target directory.
When I am using a Passthrough MessageFlow(SET OutputRoot=InputRoot) in ESQL.) i did't have any problem.It writing the file at the target directory without any problem.
But In my actual scenario
I getting the Content of the file in a single string form the source system. on the target side i have to write to a file in which each line should contain only 80 characters,For that I am Adding CR and LF in the ESQL after every 80 characters(you can see the code that i am using to add CR and LF in my previous postings).By using the above code i am getting LF only . i don't know why iam not able get CR in the output file. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jun 02, 2005 8:57 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The fact that you are getting LF only sounds very much like the JText Adapter is set up to convert the data into Java/Unix line separators, which is just LF. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kishoreraju |
Posted: Fri Jun 03, 2005 4:28 am Post subject: |
|
|
Disciple
Joined: 30 Sep 2004 Posts: 156
|
It is not the broblem with the Jtext adapter.because adapter will send what ever the data that we have given to the target directory. |
|
Back to top |
|
 |
kishoreraju |
Posted: Wed Jun 08, 2005 11:37 am Post subject: <CR><LF> Problem fixed |
|
|
Disciple
Joined: 30 Sep 2004 Posts: 156
|
Finally i got the solution to this problem
I have Cahnged the message domain from MRM to XMLNS
I have added 
 to the content the fo the file when even <CR><LF> is required
and i Applied .(XML.AsisElementContent) to that xmlns attribute
THe below is sample code.
SET OutputRoot.XMLNS.q3:FileContent1.q3:FileContent.(XML.AsisElementContent)=Environment.FileContent;
Thanks for ur help to solve this problem |
|
Back to top |
|
 |
|