KM Scheduler Task
I created a scheduled task in the NWDS and deployed the par and configured the time table for it. The task is running every minute, so it's all working. Now i'm wondering, is it possible to set the user that executes the task somewhere? like in a service user or so.
I played around a bit in the portalapp.xml and it now looks like:
<?xml version="1.0" encoding="utf-8"?> <application> <application-config> <property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal,SAPJ2EE::sap.com/ear~test"/> <property name="SecurityArea" value="Netweaver.portal"/> <property name="Vendor" value="sap.com"/> </application-config> <components/> <services> <service name="RFServiceWrapper"> <service-config> <property name="className" value="com.sap.netweaver.rf.wrapper.RFServiceWrapper"/> <property name="startup" value="true"/> <property name="SafetyLevel" value="low_safety"/> </service-config> </service> </services> </application>
In the run(..) method, i call an ejb, and in the ejb i print the username that's executing it. Sometimes it says it's executed by Guest (most of the times), and sometimes it says it's executed by Administrator...
What user is used for running the scheduled task? can it be a fixed user, as in "serviceUserX" for example? How do i configure that?
Message was edited by: