ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Jtext Adapter : Delimited File

Post new topic  Reply to topic
 Jtext Adapter : Delimited File « View previous topic :: View next topic » 
Author Message
kshah
PostPosted: Wed Jul 19, 2006 4:45 am    Post subject: Jtext Adapter : Delimited File Reply with quote

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
View user's profile Send private message
PieterV
PostPosted: Wed Jul 19, 2006 10:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
kshah
PostPosted: Thu Jul 20, 2006 3:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Jtext Adapter : Delimited File
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.