Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,11 @@ public synchronized void destroy(boolean preserverState) {
}
}

// destroy the managed mediators
for (ManagedLifecycle seq : getDefinedSequences().values()) {
seq.destroy();
}

//destroy sequence templates
for (TemplateMediator seqTemplate : getSequenceTemplates().values()) {
seqTemplate.destroy();
Expand All @@ -1611,6 +1616,11 @@ public synchronized void destroy(boolean preserverState) {
// from registry. Only un-deployment should remove task from registry. Ref product-ei#1206
endpoint.destroy(false);
}

// destroy the managed endpoints
for (Endpoint endpoint : getDefinedEndpoints().values()) {
endpoint.destroy();
}

// destroy the startups
for (ManagedLifecycle stp : startups.values()) {
Expand Down Expand Up @@ -1657,16 +1667,6 @@ public synchronized void destroy(boolean preserverState) {
for (API api : apiTable.values()) {
api.destroy();
}

// destroy the managed endpoints
for (Endpoint endpoint : getDefinedEndpoints().values()) {
endpoint.destroy();
}

// destroy the managed sequences
for (ManagedLifecycle seq : getDefinedSequences().values()) {
seq.destroy();
}
}

/**
Expand Down
Loading