The enbprfwas command enables a profile to enable 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=webspherev61_profile_name,groupAccess,nonFatalwhere profile_name is the run-as user i5/OS profile described above for the profile parameter.
cd app_server_root/bin wsadmin -conntype NONE -profileName was_profile, where was_profile is the WAS profile of the application server. set jvm [$AdminConfig getid /Server:server_name/JavaProcessDef:/JavaVirtualMachine:/] # where server_name, is the WAS Application Server name. set curargs [$AdminConfig showAttribute $jvm genericJvmArguments] set newargs [concat $curargs "-Xshareclasses:name=webspherev61_profile_name,groupAccess,nonFatal"] # where profile_name is the run-as user i5/OS profile. set attrs [subst {{genericJvmArguments $newargs}}] $AdminConfig modify $jvm $attrs $AdminConfig save exit