Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support invalidating connections when related local entry changed #2115

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

malakaganga
Copy link
Contributor

Purpose

I introduced an enhancement to the way we handle connections in relation to local entries.
A mechanism was established where the key associated with a localEntry is passed from the InvokeMediator
to the TemplateMediator then further propagated to the TemplateContext, ensuring that the specific localEntry is accessible from the connection handling code.

With the availability of the localEntry key, each active connection(dynamic/static) has been bound to its respective localEntry in a map.

So when a localEntry is undeployed or removed, this change is detected by the Synapse Observer, and the connections associated with that specific localEntry are invalidated.

Fixes: wso2/micro-integrator#3002

I introduced an enhancement to the way we handle connections
 in relation to local entries.A mechanism was established where the key
 associated with a localEntry is passed from the InvokeMediator
 to the TemplateMediator then further propagated to the TemplateContext,
 ensuring that the specific localEntry is accessible from connection handling code.

 With the availability of the localEntry key, each active connection(dynamic/static) has been
 bound to its respective localEntry in a map.

 So when a localEntry is undeployed or removed, this change is detected by
 the Synapse Observer, and the connections associated with that specific localEntry
 are invalidated.

 Fixes: wso2/micro-integrator#3002
@malakaganga malakaganga merged commit d4e884f into wso2:master Nov 10, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Local entry is not getting changed after modifying the connection parameters
2 participants