Request trust and roles
- Follow an incoming request through routing, authenticated session and application authorization.
Diagram phase
Select a component to trace its direct connections. Drag to pan · Ctrl + wheel or pinch to zoom.
- Ingress routes the browser request, WebLogic establishes the signed-in identity, and the application checks the requested WorkItem action. An inquiry-only user can sign in successfully and still lack approval rights.
- The error-route branch matters even during a valid session. A missing asset redirected through login can trigger a replacement session cookie.
Reading
- The interactive channel crosses an HTTPS ingress and WebLogic authentication boundary. Cookie scope governs browser delivery.
- WorkItem creation, inquiry and approval depend on their role checks. An authenticated principal can have different permissions for each action.
- A missing asset gets a static error response. The signed-in session survives the request.
- Recheck the requested action and item against the principal’s role. During role lookup failure, withhold privileged mutation and record the dependency error.
Where LCM work waits
Three paths compete for different resources
- A synchronous upload batch waits for a processing worker before invoking offer creation. A busy worker can be waiting on JDBC, a row lock or I/O.
- Async upload publishes a message. WebLogic schedules its message-driven bean (MDB) against container and Work Manager limits. The upload worker pool does not meter those consumers.
- Normal and retry Customer Power (CP) consumers use separate destinations and dispatch policies. Both can call the same partner operation and both contribute to partner concurrency.
Name the owner before setting a limit
| Owner | Unit to count | Signal during saturation |
|---|---|---|
| Upload processor | Workers actively processing synchronous batches | Oldest eligible batch grows while workers stay occupied |
| WebLogic Work Manager | Scheduled work and applicable thread constraints | Pending work, hogging threads, execution time |
| MDB deployment | Message deliveries in progress | Oldest message age, redelivery count, active beans |
| JDBC datasource | Connections borrowed and acquisition waiters | Borrow wait, transaction duration, DB lock waits |
| CP operation | Active remote attempts across producers and retries | Timeouts, unknown outcomes and retry backlog |
- A dispatch policy selects a Work Manager. Several Work Managers can use one self-tuning server thread pool. A named policy alone supplies no dedicated CPU or database sessions.
- The effective MDB concurrency depends on its pool settings, Work Manager constraints and available threads. Establish the binding per deployment and per server before increasing consumers.
- The suppression consumer descriptor declares a maximum free-pool size of one and selects a suppression Work Manager. The retry consumer has its own destination and dispatch policy. Resolve target membership, effective overrides and both deployments when counting calls.
Suppression MDB scheduling fieldsxml
<!-- Selected fields of one weblogic-ejb-jar.xml bean, with other elements
omitted. The queue alias, adapter binding and application target are
separate deployment inputs. -->
<weblogic-enterprise-bean>
<message-driven-descriptor>
<pool>
<max-beans-in-free-pool>1</max-beans-in-free-pool>
</pool>
<!-- Destination and adapter configuration omitted. -->
</message-driven-descriptor>
<dispatch-policy>CustomerPowerOfferSuppressionWM</dispatch-policy>
</weblogic-enterprise-bean>
Allocate a bounded fleet budget
Work a two-server example
- Assume 24 DB sessions remain for upload transactions after reserving capacity for online operations. Each admitted batch holds one connection. On each of two servers, allow four synchronous batches, six async batches and two retries. The maximum combined demand is 2 × (4 + 6 + 2) = 24 sessions.
- Separately assume CP permits 12 concurrent remote attempts. Four normal and two retry permits per CP member fit a two-member allocation. A waiting permit consumes the operation deadline. A retry with an uncertain prior effect still requires reconciliation.
- These figures are sizing inputs. A production target also needs observed hold times, CPU, memory, per-route distribution and the database or partner contract.
Worked fleet budget and rollout overlapjson
{
"kind": "IllustrativeBudget",
"unit": "concurrent work per participating server",
"assumptions": {
"servers": 2,
"dbSessionsAvailableToUploadFleet": 24,
"oneBorrowPerActiveUploadTransaction": true,
"providerConcurrentAttemptsForCpFleet": 12,
"providerHoldsPermitUntilAttemptEnds": true
},
"perServer": {
"syncUpload": 4,
"asyncUpload": 6,
"uploadRetry": 2,
"cpNormalAttempts": 4,
"cpRetryAttempts": 2
},
"rolloutCase": {
"serversDuringOverlap": 3,
"unchangedUploadDemand": 36,
"unchangedCpDemand": 18,
"resizeBeforeActivation": {"syncUpload": 3, "asyncUpload": 4, "uploadRetry": 1, "cpNormalAttempts": 3, "cpRetryAttempts": 1}
}
}
What changes when the fleet changes?
| Event | Consequence | Decision |
|---|---|---|
| Third server starts during rollout | Old allocations allow 36 DB borrows and 18 CP attempts | Repartition before enabling consumers. At three members, 3 + 4 + 1 upload slots and 3 + 1 CP slots per member fit the same limits. |
| One batch waits on a hot row | Its connection and worker can stay occupied while useful completions fall | Bound transaction time, inspect lock ownership and reduce new admission for that key. |
| CP service slows | More calls remain in flight and normal work competes with retries | Bound concurrent attempts and keep a finite retry share. Add a separate rate budget if the partner contract specifies requests per second. |
| One server stops accepting HTTP | Its MDBs and timers may keep taking work | Pause new delivery and claim acquisition separately, then wait for active work to finish. |
- Test saturating one path while measuring online inquiry latency and oldest eligible background work. Prefer a bounded local allocation when maximum active membership is enforced. A coordinated limiter adds an availability dependency and becomes useful when membership or the external contract makes a static allocation impractical.
- During rollback, lower new admission and drain active operations before switching owners. Confirm eligible queues can resume even while incoming business traffic is quiet.
Where a browser session is established
Where a browser session is established
Follow the interactive channel
- The UI reaches WebLogic through an ingress route. Ingress owns HTTPS routing and response-header policy, including HSTS. A browser learns HSTS over a valid secure connection.
- The interactive login servlet hands authentication to the container. WebLogic establishes the authenticated principal. A separate UI deployment declares identity assertion; bind the mechanism to the particular application and channel.
- The cookie domain is scoped to the intended application audience. The path must support legitimate navigation across the participating web contexts. Use a host-only cookie if the UI can operate on a single host.
Keep routing and session changes aligned
- A missing static asset can take an ingress error route into the interactive login flow. If that response issues another session cookie, a signed-in user can lose the intended session during ordinary navigation.
- Give static errors a dedicated response path. Apply the same transport policy to ordinary and error responses. Limit login redirects to requests for authenticated application resources.
- Review cookie scope, Secure, HttpOnly, SameSite compatibility, expiry and session identifier renewal with the channel owner. Shared-host navigation and federated callbacks may need different settings. Verify both sign-in and sign-out.
Authorize each WorkItem operation
Authorize each WorkItem operation
A valid session identifies the caller
- Creation, inquiry and approval each require applicable user/group/role resolution. The approval path can use directory-backed lookup according to the configured workflow policy.
- Resolve the authenticated principal, required action and work item together. A user authorized to inquire can still lack approval authority. The application owns the decision and state change.
- Treat a missing entitlement and a directory outage as separate outcomes in audit and operations. A privileged mutation must wait for a valid decision in either case.
Canary and recover the change
- Test legitimate cross-context navigation, static error handling, logout, role revocation and approval-denied cases with synthetic users and a disposable work item.
- Compare successful login continuation and valid work-item actions during the canary. Alert on unexpected session replacement and lookup failures by action and reason. Keep session IDs, PANs and raw credentials out of telemetry.
- An edge rollback restores the previous route configuration. Coordinate any cookie-scope migration explicitly because clients can retain cookies already issued. Preserve the action-level authorization check through rollback.
Session continuity and action authorization casesjson
{
"kind": "IllustrativeSessionAcceptanceCases",
"fixtures": "Synthetic users, a non-production application context and a disposable approval item",
"cases": [
{"action": "Complete interactive login", "expect": "An authenticated principal and a session identifier issued for the intended audience"},
{"action": "Navigate between the two approved application contexts", "expect": "Preserve the intended user session across the legitimate navigation path"},
{"action": "Request an absent static resource in the signed-in UI", "expect": "Static error response; session and approval state unchanged"},
{"action": "Attempt approval with inquiry-only role", "expect": "Deny approval and retain the work item state"},
{"action": "Attempt approval with an unresolved role lookup", "expect": "Withhold approval; record dependency error separately from ordinary denial"},
{"action": "Sign out and repeat an authenticated operation", "expect": "Require fresh authentication"}
]
}