Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

KM Schedule Task - Service User

Dear all,

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?

Kind regards.

J.

Message was edited by:

Joren Crauwels

Message was edited by:

Joren Crauwels

Former Member
Not what you were looking for? View more on this topic or Ask a question