The enbprfwas command enables a profile to allow an application server to run under it and optionally changes the group profile to QEJBSVR.
It is an alternative to using iSeries™ Navigator to do the same thing. To run this script, your user profile must have *ALLOBJ authority.
enbprfwas -profile <user profile> [-chggrpprf]
The following options are available for the enbprfwas command:
-Xshareclasses:name=webspherev70_profile_name,groupAccess,nonFatalwhere profile_name is the run-as user profile that is described above for profile parameter, click OK.
cd app_server_root/bin wsadmin -conntype NONE -profileName was_profile # where was_profile is the profile of the application server. set jvm [$AdminConfig getid /Server:server_name/JavaProcessDef:/JavaVirtualMachine:/] # where server_name, is the application server name. set curargs [$AdminConfig showAttribute $jvm genericJvmArguments] set newargs [concat $curargs "-Xshareclasses:name=webspherev70_profile_name,groupAccess,nonFatal"] # where profile_name is the run-as user profile. set attrs [subst {{genericJvmArguments $newargs}}] $AdminConfig modify $jvm $attrs $AdminConfig save exit