Page 1 of 1
VL Web library list on IBM i
Posted: Sat Nov 19, 2016 1:46 pm
by atostaine
I have a WAM Application that changes the library list based on the user that is entered on the web signon. The user ID's are not valid IBM i user profiles, they are kept in a table.
I have converted the WAM to VL Web. I can see the library list changing when the users signs on. I also change the library list in every server routine, but it doesn't seem to be working.
What is the correct way for setting a library list for a web job dynamically? I keep OAM's in the partition library, but the tables are duplicated in two libraries.
For instance, user JOE needs a library list like EAST, COMMON, QGPL, QTEMP. User LINDA will have WEST,COMMON,QGPL,QTEMP
Re: VL Web library list on IBM i
Posted: Mon Nov 21, 2016 8:57 am
by dannyoorburg
Hi,
There is very little difference between a Server Module running a Server Routine and a WAM running a Web Routine. They run in the exact same environment.
I'm not sure how to best implement your requirements, there will be other people better placed to comment on that, I'm just very surprised that the same code doesn't give you the same result.
Danny
Re: VL Web library list on IBM i
Posted: Tue Nov 22, 2016 4:59 am
by atostaine
Thanks for the reply. I have the CALL to set the library list working now. I would like to know how other people are solving this problem.
Art
Re: VL Web library list on IBM i
Posted: Tue Nov 22, 2016 9:43 am
by HamadSheikh
You just need to make sure that you set the library list for the actual job that you are using.
i.e. setting the *LIBL for a different job will obviously not help the server module execution.
You have already verified that CALL works fine, you could also test the use of EXEC_OS400.
Re: VL Web library list on IBM i
Posted: Tue Nov 22, 2016 9:53 am
by MarkD
If you are using VLF-ONE an approach to library list management is suggested here
http://docs.lansa.com/14/en/lansa048/in ... d%20in.htm
That approach probably applies equally to non-VLF applications.
If you are using VLF-ONE then this new feature and example suggest how the logon validation program can determine the correct library list for the user and then make it available to every server module subsequently called within the session:
http://docs.lansa.com/14/en/lansa048/in ... 8_6725.htm
Re: VL Web library list on IBM i
Posted: Tue Nov 22, 2016 2:07 pm
by atostaine
Thank you Mark. Great examples.