Open topic with navigation

TIBCO GridServer® 7.1.0

# Service Invocation Context

The `ServiceInvocationContext` class provides an interface for interacting with an invocation, such as getting the session and task IDs, while it is running on an Engine. This is an alternative to using, for example, the system properties when running a Java Service. Using this class enables immediate updating of invocation information. In contrast, setting the `INVOCATION_INFO` system property only updates at the end of the invocation.

The `ServiceInvocationContext` object can be reused; the method calls always apply to the currently executing Service Session and invocation. Make all method calls by a `service`, `update`, or `init` method; if not, the method call might throw an `IllegalStateException` or return invalid data. Note that you cannot call this method from a different thread; it fails if it is not called from the main thread.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO GridServer®
Subtopics

Copyright © 2001-2022. TIBCO Software Inc. All Rights Reserved.