|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Jtext Adapter : Delimited File |
« View previous topic :: View next topic » |
Author |
Message
|
kshah |
Posted: Wed Jul 19, 2006 4:45 am Post subject: Jtext Adapter : Delimited File |
|
|
Novice
Joined: 13 Jun 2005 Posts: 23
|
Concern...w.r.t Jtext adapter taking a tag delimited file.
I would like to process file lines that look like this:
Code:
dataA|dataB|dataC|dataD|dataE
dataA|dataB|dataC|dataD|dataE
dataA|dataB|dataC|dataD|dataE
dataA|dataB|dataC|dataD|dataE
dataA|dataB|dataC|dataD|dataE
dataA|dataB|dataC|dataD|dataE
First, I set up a datahandler which I called "MO_DataHandler_DefaultDelimitedConfig":
Code:
ClassName="com.crossworlds.DataHandlers.text.delimited"
CxBlank="CxBlank"
CxIgnore="CxIgnore"
Delimiter="|"
DummyKey="1" (also checked "Key")
Escape="\"
Then I set up my "MO_JTextConnector_Default" handler:
Code:
ArchiveDir="...my directory..."
DataEncoding="" (null)
DummyKey="dummykey"
EndBODelimiter="EOL"
EventDataHandler="MO_DataHandler_DefaultDelimitedConfig"
EventDir="...my directory..."
EventExt="txt"
FailArchiveExt="fail"
FileSeqEnabled="true"
IncludeEndBODelimiter="false"
OriginalArchiveExt="org"
OutputDataHandler="MO_DataHandler_DefaultDelimitedConfig"
OutputDir="...my directory..."
OutputExt="out"
OutputFileName="Native"
PartialArchiveExt="part"
StagingDir="" (null)
SuccessArchiveExt="success"
UnsubscribedArchiveExt="unsub"
I also have a generic "line" handler with one line in it, called "GL_Line":
Code:
Name=Line, Type=String, Key=Yes, Maximum Length=255
Then I have a generic "lines" handler with the above in it, called "GL_Lines":
Code:
Name=Lines, Type=GL_Line, Key=Yes, Cardinal=1
My Adapter refers to these items, in the "Supported Business Objects" tab:
Code:
Business Object Name, Message Set Id
"MO_DataHandler_DefaultDelimitedConfig", "1"
"GL_Lines", "2"
Now as i want to get a BO from this File...I wanted to know is there way we can directly do this in Jtext Adapter...or i will need ot modify custom data handler...
If somebody has a link for a simple delimited..file to BO..sample please do let meknow...
If i need to develop custom data handler...do let me know.. |
|
Back to top |
|
 |
PieterV |
Posted: Wed Jul 19, 2006 10:10 pm Post subject: |
|
|
Disciple
Joined: 04 Jan 2006 Posts: 164 Location: Belgium
|
Assuming you have the MB,
why don't you take in the entire message into a flow and have your message parsed there? |
|
Back to top |
|
 |
kshah |
Posted: Thu Jul 20, 2006 3:48 am Post subject: |
|
|
Novice
Joined: 13 Jun 2005 Posts: 23
|
We have to do achieve this via adapter only...as requirement is such...
Thanks for the reply though |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|