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 » WebSphere Message Broker (ACE) Support » interval for JText to serve the Request processing

Post new topic  Reply to topic
 interval for JText to serve the Request processing « View previous topic :: View next topic » 
Author Message
chinst
PostPosted: Wed Jun 06, 2007 1:40 am    Post subject: interval for JText to serve the Request processing Reply with quote

Newbie

Joined: 06 Mar 2006
Posts: 3
Location: Malaysia

Hi,

I am new to JText Adaptor. Here is a scenario:
1) Sorce application send messages to Broker, Broker will transform and route to an output queue
2) JText Adaptor will be configure to get the message from the output queue and write to text file in the interval of 2 seconds.
eg. I have 6 messages in the output queue at 10:01:00AM. At 10:01:02 Jtext active and get the first message and write to a text01.txt. At 10:01:04, Jtext pick up the second message in the output queue and write to text02.txt. The file creation of the text01.txt and text02.txt must have different of 2 second.

Can I achieve the result stated above using JText? how? (I knew that we can configure the delay for Poll frequency but I can't find any info on how to control the interval for the Request Processing)

Thank in advance.
_________________
Warmest regards
ST
Back to top
View user's profile Send private message Yahoo Messenger
mvarghese
PostPosted: Thu Jun 07, 2007 3:55 pm    Post subject: Reply with quote

Centurion

Joined: 27 Sep 2006
Posts: 141

Hi ST,
May i know more about ur query..U want to achieve
1)Jtext processing tiem fast or file name created by Jtext need to change.
or
2.Do u mean request processing is..Jtext request processing?...What i know is Request processing is based on JText processing time..ie more or less always same depnds on the size of file or may be the time to write to a directory from a Q.
But if u looking naming change.in the Jext created fiel in folder..do it on esql coding..the way u wants...and configure Jtext accordingly.
I am not sure I answered ur question.
_________________
Jain Varghese
Back to top
View user's profile Send private message
vk
PostPosted: Thu Jun 07, 2007 4:49 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

mvarghese,

I could not understand what you explained in your post.

chinst,

I dont think you can configure the adapter to check the request queue only at particular intervals. It will continuosly keep checking the request queue for incoming requests. Only event polling can be timed (based on the properties - Poll Quantity and Poll Frequency).

There is a property jms.NumConcurrentRequests. You can set this to one to make the adapter process only one request at a time. By default, this property has a value of 10.

If possible, try inducing a 2 second delay in the message flow \ other application which puts the messages into the request queue.

Regards,
VK.
Back to top
View user's profile Send private message
chinst
PostPosted: Thu Jun 07, 2007 5:57 pm    Post subject: interval for JText to serve the Request processing Reply with quote

Newbie

Joined: 06 Mar 2006
Posts: 3
Location: Malaysia

Jain,
I guess you have misunderstood my question.

vk,
I think you right. I have read through the Jtext user guide and i can't find any property for me to set the interval for request processing.

My problem: The target application not able to process files created within same second in the right order.

Inducing the delay in the message flow do not solve my problem. for eg, if Jtext Adaptor stop 1 hour due to connectivity error to MQ. Once the error resolve, JText will immediately process all the messages stuck in the queue and generate the files. we might have many files created within the same second.

my team has come up with an idea whereby we have 2 instances of JText running.

The first one to do the Request processing and generate files in to a temp folder whenever the message arrive in the output queue.

The second instance of the adaptor will do the polling with 1 file at 2 second interval. the archive file will be written to the application input folder(this will be the folder where the target application pick up the file for processing). A dummy queue which set to hold the messages generated by the second adaptor will be set toi expire itself.

Do you think this is a good design? please share with me if you have better idea.

Thanks
_________________
Warmest regards
ST
Back to top
View user's profile Send private message Yahoo Messenger
vk
PostPosted: Thu Jun 07, 2007 8:46 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

chinst,

Your design will definitely work. But it is definitely not a good way of doing. Following are the cons that I could think -

1. Additional instance of the adapter - I will use the adapter only if it is absolutely necessary. Error handling and identification of issues with the adapters is sometimes more difficult and time consuming than that for the broker.

2. An additiaonl instance would mean one more point of failure for the message. This can be a cause of concern with respect to end to end transactionality of the message.

3. Does your end application have any requirement of the filename or extension? When the adapter archives a file, it will put the current date ana time along with extension as the result of the poll.

4. Polling need not always be successful. If these is an issue, then the adapter can archive incorrect or incomplete files having extesions .fail, .partial, .damage etc. Can the end application be configured to ignore files having these extensions?

Having said these, I can suggest the following changes. But you need to check if any of them is applicable for you.

1. Change the end application to process files based on the timestamp in the file name from folder1.

2. Adapter writes to folder 1. Have a script to copy the files one by one to fiolder 2 with a delay of 1 second between successive files. End application can pick up messages from folder 2.

Regards,
VK.
Back to top
View user's profile Send private message
chinst
PostPosted: Thu Jun 07, 2007 10:13 pm    Post subject: Reply with quote

Newbie

Joined: 06 Mar 2006
Posts: 3
Location: Malaysia

VK,

Thanks for the advice. Will further discuss with my team base on your input.

Thank you.
_________________
Warmest regards
ST
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » interval for JText to serve the Request processing
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.