Note that there are some explanatory texts on larger screens.

plurals
  1. POObtaining WorklistContext and Querying Tasks in Weblogic Integration
    primarykey
    data
    text
    <p>In order to get the Weblogic initial context to query the task database i am doing the following: </p> <pre><code>Properties h = new Properties(); h.put(Context.SECURITY_PRINCIPAL, "weblogic"); h.put(Context.PROVIDER_URL, "t3://localhost:17101"); h.put(Context.SECURITY_CREDENTIALS, "weblogic"); h.put(Context.SECURITY_AUTHENTICATION, "simple"); WLInitialContextFactory test = new WLInitialContextFactory(); test.getInitialContext(h); Context ctx = null; ctx = getInitialContext(); WorklistContext wliContext = WorklistContextFactory.getRemoteWorklistContext(ctx, "MyTaskApplication"); </code></pre> <p>I then get the TaskQuery interface with the following code:</p> <pre><code>WorklistTaskQuery taskQuery = wliContext.getInterfaceForTaskQuery(); </code></pre> <p>and to get the tasks i do: </p> <pre><code>taskQuery.getTasks(query); </code></pre> <p>where query is com.bea.wli.worklist.api.TaskQuery object.</p> <p>Please note that this code is running inside the domain running the tasks. </p> <p>Unfortunally i am getting the following error when i call the getTasks methods:</p> <pre><code>java.lang.SecurityException: [WLI-Worklist:493103]Access denied to resource /taskplans /Manual:1.0. Applicable policy: Query Caller: principals=[] Method: com.bea.wli.worklist.security.WorklistSecurityManager.assertTaskAccessAllowed </code></pre> <p>It seems Weblogic is ignoring the user set on the new initial context and trying to use the one coming from the browser. It so happens that i might need to do query searchs in background workers that don't have a browser session(obviously).</p> <p>Can anyone help with this?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload