Author |
Message
|
sarasu |
Posted: Mon Dec 03, 2007 2:49 pm Post subject: Question on workflow API & webclient!! |
|
|
Master
Joined: 02 Feb 2006 Posts: 229
|
Hi..We are suing MQWF 3.5.0.5..with webclient. We have our application like this ...webapplication --> Business Component --> Workflow Engine.
We are using the user authentication from application to the Business component and from there to workflow engine using Java Api.
My question here is :: will the workflow server creates a session internally for every logon(), queryworkitems(), etc..using the same user ID?
webapplication --> Business Component --> Workflow Engine
---- Authentication()---> logon()----------> session1
execusion server.query()------->session2
etc...
Is this suggestable, what if a user logon() 100 times separately?
Are there any pros & cons using this?
One mroe question is if i have 100 users in the workflow engine. Is it possible to use a single USERID to connect to the workflow engine from the Business component layer? I mean every user id belongs to the workfloe engine must connect through this USERID only.
Any problems with this?
Replies are greatly appreciated!! |
|
Back to top |
|
 |
vennela |
Posted: Mon Dec 03, 2007 10:08 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
One mroe question is if i have 100 users in the workflow engine. Is it possible to use a single USERID to connect to the workflow engine from the Business component layer? I mean every user id belongs to the workfloe engine must connect through this USERID only. |
I think so |
|
Back to top |
|
 |
sarasu |
Posted: Tue Dec 04, 2007 9:11 am Post subject: |
|
|
Master
Joined: 02 Feb 2006 Posts: 229
|
Ok..but is it a good practice to create a separate session of each logon() of the same user ? |
|
Back to top |
|
 |
jmac |
Posted: Tue Dec 04, 2007 12:53 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
You should try to avoid:
logon()
do someting
logoff()
I am not certain I am following exactly what you are asking. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
sarasu |
Posted: Wed Dec 05, 2007 8:29 am Post subject: |
|
|
Master
Joined: 02 Feb 2006 Posts: 229
|
we would like to know how the business component layer will maintain the workflow session for each userID who login?
Thanks |
|
Back to top |
|
 |
hos |
Posted: Thu Dec 06, 2007 4:30 am Post subject: |
|
|
Chevalier
Joined: 03 Feb 2002 Posts: 470
|
I assume with business component layer you mean web client - right?
A session has - like any other MQWF object - a unique ID. This ID is maintained by the web client and reused for every API call that the logged-on user performs. So each physically logged-on user has exactly one MQWF session.
Quote: |
execusion server.query()------->session2 |
does not reflect the correct picture. A query call returns a list of objects. All of these objects belong to session1. No additional sessions are created.
Hope this helps. You can find more info about MQWF session handling in the Programming Guide. |
|
Back to top |
|
 |
|