|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
display owner first and last name in listviewer.jsp |
« View previous topic :: View next topic » |
Author |
Message
|
pingwf |
Posted: Wed Dec 03, 2003 9:14 am Post subject: display owner first and last name in listviewer.jsp |
|
|
Novice
Joined: 09 Dec 2002 Posts: 23
|
I want to display workitem owner full name instead of displaying owner userID. What would be the best way to do this?
I am getting person object of workitem
and then getting first and last name. Then i am displaying it on JSP.
Code: |
ExecutionService service = ReqContext.getExecutionService();
Person per = service.persistentPerson(userID);
firstName = per.firstName();
lastName = per.lastName(); |
It works fine, but I have issues with performance. it takes 15 - 16 sec to load 200 workitem. where as with out this code it takes 2 - 3 sec to load same number workitems.
Any ideas how to do this with more efficient way?
Thanks in advance!!!
pingwf _________________ IBM Certified Solutions Expert - MQSeries Workflow |
|
Back to top |
|
 |
jmac |
Posted: Thu Dec 04, 2003 5:00 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
This is not going to perform well at all, you are doing way too many client-server calls. The only way to possibly improve this would be to keep a table that relates the owners to their First & Last Names _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
MQRR |
Posted: Tue Mar 16, 2004 8:35 pm Post subject: |
|
|
Centurion
Joined: 10 Aug 2003 Posts: 110
|
Hi jmac,
is this still the solution that you recommend or are there any other options that have come up since this has been posted last time.
And one more question if I am trying to retrive the the process starter that the workitem belongs to, I am getting authorization error if i am not logged in as the process starter. (by the way I am trying to display the process starter for each workitem, on the jsp using the person object ). My question is, is there any way I can get the process starter ID even if I am logged in as different user.
Thanks in advance.
This is open question if anyone have suggestions I will be more than happy to take them
MQRR |
|
Back to top |
|
 |
jmac |
Posted: Thu Mar 18, 2004 5:49 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
MQRR wrote: |
I am trying to retrive the the process starter that the workitem belongs to, I am getting authorization error if i am not logged in as the process starter. |
I really don't have all the information to be sure so I am assuming that you mean you are trying to retrieve the Person object of the Process Starter. If this is the case, you can only retrieve a person object other than your own if you have Staff authorization. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|