Author |
Message
|
roobas |
Posted: Fri Apr 04, 2003 4:26 am Post subject: automatic activity in load balancing |
|
|
 Novice
Joined: 03 Dec 2002 Posts: 11 Location: bangalore
|
i'm using the clustering in mqwf. 2 wf server's are there pointing to a single database. so, 2 servers under a single server group.
one of my program activity is 'mail'. it uses of java program to send mail. its an automatic activity(start/exit). so, do i need to specify a person for that activity? NO then.. ??? (below comes the real problem)
Here, i have logged in as ADMIN to one server. For the 'mail' to start, i need the ADMIN PEA. Here the load is balanced and either of the server can run. Now the server to which i have logged in is not running the 'mail'. This server dont have an ADMIN PEA. How this automatic program activity will start? How will i overcome this?OR How can i start any automatic program activity which requires a pea, in either servers when load balanced?
I added one more user ADMIN1. Both ADMIN and ADMIN1 have the right for that automatic activity. In one server i logged in as ADMIN and in the other as ADMIN1. Is this the only solution for this..?? _________________ Thanks,
Roobas Oliyath
IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
jmac |
Posted: Fri Apr 04, 2003 5:51 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Why are you using a PEA as opposed to a UPES for an automatic activity?
UPES would be the recommended way to go. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
vennela |
Posted: Fri Apr 04, 2003 9:37 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
UPES is definitely the recommended way. PEA in my opinion is obsolete.
You are talking about load balancing. I am a bit confused by what you mean by this. If you want load balancing then you have to have two PEAs running on the two boxes right, and that's how each box will share the load.
If you want always the second box to execute your automated activity no matter to which system the request comes, I think you have to run two PEAs(both PEAs on the same box). One for system1 and one for system2 and that should take care of it.
Also what do you mean by logon. You logging into workflow using standard fat client?
But again, UPES is what you should be looking forward to.
-------
Venny |
|
Back to top |
|
 |
manoj |
Posted: Sat Apr 05, 2003 7:14 am Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
if u use UPES and if u 've multiple application servers the best way to load balance u r application is to define the UPES server queue on the application servers boxes and shared those queues(all the application servers will 've the same queue name ) in cluster. this way the workflow UPES will put messages in to appropriate application server queues depending on load.
thx _________________ -manoj |
|
Back to top |
|
 |
roobas |
Posted: Mon Apr 07, 2003 3:58 am Post subject: |
|
|
 Novice
Joined: 03 Dec 2002 Posts: 11 Location: bangalore
|
But i need to run a java program in that program activity. Thats why i went for PEA. Now i want to clarify my idea of using UPES. If i use UPES for activity implementations i have to run a trigger monitor in each of the server m/c which picks up messages from UPESQ and triggers a java program. Hope am in right direction. But how can i make use of activity implementation details in that java program?
Thanks,
Roobas |
|
Back to top |
|
 |
vennela |
Posted: Mon Apr 07, 2003 5:59 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
You are going in the right direction regarding UPES.
All workflow does for an activity implementation by UPES is PUTs a message to the Queue you specify on the QMGR you specify. If the activity implementation is synchronous Workflow waits for a reply and based on the return code it deems whether the activity is finished or not or whatever. If it's asynchronous once it puts the message to the queue, it considers the activity is finished.
You can set a trigger if you want to process the messages on the queue.
These messages are in XML format and they have the info needed for an activity implementation like container data, etc.
Quote: |
If i use UPES for activity implementations i have to run a trigger monitor in each of the server m/c which picks up messages from UPESQ and triggers a java program. |
You can ask MQWF to put a message to queue hosted by either of the QMGRs. You will need just one trigger monitor.
Hope this helps.
-------
Venny |
|
Back to top |
|
 |
manoj |
Posted: Mon Apr 07, 2003 4:10 pm Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
You can use a Message driven bean which listen to the Queue. _________________ -manoj |
|
Back to top |
|
 |
roobas |
Posted: Mon Apr 07, 2003 8:34 pm Post subject: |
|
|
 Novice
Joined: 03 Dec 2002 Posts: 11 Location: bangalore
|
Quote: |
You can ask MQWF to put a message to queue hosted by either of the QMGRs. You will need just one trigger monitor. |
in this case how can i manage load balancing and fail over? for load balancing i think we can share UPESQ in the cluster but in case of fail over? if the server where the trigger monitor is running is down then?
thanks,
roobas |
|
Back to top |
|
 |
amittalekar |
Posted: Tue Apr 08, 2003 5:09 am Post subject: |
|
|
 Disciple
Joined: 03 Apr 2002 Posts: 166 Location: VA, USA
|
If trigger monitor is down , WF system will be down... that means there must be something terribly wrong with ur system...
Also whatever logic u have written in java program for program act , u can use the same in UPES activity implementation.... what's the problem?? |
|
Back to top |
|
 |
|