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 » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » When to shutdown PEA

Post new topic  Reply to topic
 When to shutdown PEA « View previous topic :: View next topic » 
Author Message
mqwhelp
PostPosted: Fri Jul 12, 2002 4:03 am    Post subject: When to shutdown PEA Reply with quote

Voyager

Joined: 20 Dec 2001
Posts: 85
Location: TCS

Hi All,

I have to shutdown the PEA for the user once the execution of program is done
and before logoff method being called.

I am doing the following in my application.

1.I am login in MQWF
2.Start the PEA,If PEA is already running don't start PEA
3.Start the WorkItem
4.log off

The above thing happens in a single transaction...

So where I should call for PEA shutdown??
How I will know whether the activity is executed successfully..
(Ofcourse,I can find the state of workitem but it may give running state also)

I thought of shutdown PEA before log off is called .If I do the same
then workitem may remain in running state forever if activity was running
when PEA shutdown was called.

Shall I wait in a loop until and exit only when there is no workitem in state=running for this user
Then call shutdown PEA and then logoff method.

Can I go ahead with this logic or is there any standard way of doing it

Please suggest
Back to top
View user's profile Send private message Send e-mail
jmac
PostPosted: Fri Jul 12, 2002 5:00 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

I am not sure I understand why you think the pea might be busy. The "start" of a workitem is synchronous.

1. LOGON to MQWF.
2. START Pea
3. Process for this User, i.e run activities, start instances etc.
4. User indicates they are done
5. Stop Pea
6. LOGOFF MQWF.
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
mqwhelp
PostPosted: Fri Jul 12, 2002 5:45 am    Post subject: Reply with quote

Voyager

Joined: 20 Dec 2001
Posts: 85
Location: TCS

Hi John,


I could not understand the meaning of synchronous in this context.

Let me clarify my scenario...

Scenario 1
----------


1.Say USER1 has logged on to MQWF
2.Now PEA will be started for USER1
3. Now USER1 call for start() of the WorkItem
4.WorkItem goes in RUNNING state
5. Now I call for PEA shutdown using service object
even program is Still running.(please let me know should I call PEA shut down here)
The result will be::: PEA will be shutdown no matter whether execution of program is successful or not
6.Logoff from MQWF


Answer Required for below queries
---------------------------------

1.What will happen for the state of workitem ?

I have found the status as RUNNING when user
login once again..


2.As per standards,is it necessary to call PEA shutdown..if PEA is started up for the user?


Scenario 2
----------


1. Also what happen when two user logged with same USERID but there will be same PEA for
both.Now if first user start the workitem and close the PEA and logoff whereas the second user
just started the workitem before the first user could shutdown the PEA..
The workitem for second user will found PEA for short time but program might not be completed as after sometime it was stopped by first user and hence the activity will remain
in RUNNING state.


Also as you have suggested me that for automatic activities invocation I have to go for UPES...
As per my requirement I have just one activity program which will be shared for many activities..If I start the PEA for some dummy user manually and leave forever then Also I must not go ahead with starting PEA manually..



Waiting for your reply
Back to top
View user's profile Send private message Send e-mail
jmac
PostPosted: Fri Jul 12, 2002 10:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

Scenario 1:

Quoting from you:

4.WorkItem goes in RUNNING state
5. Now I call for PEA shutdown using service object
even program is Still running.(please let me know should I call PEA shut down here)

You CANT issue the PEA shutdown at this time, your program will not get control back from the Start until the app returns.


It is my opinion that you should always shutdown PEA prior to Logoff.

Scenario 2

WHY would you have 2 users login with the same ID?

Also, IF you did alow this, they would be running on separate machines right? the PEA is going to run on the machine that the user is running on.
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » When to shutdown PEA
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.