Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Bug 1144146 - Messaging queue and subscriber runtime is not exposed
Browse files Browse the repository at this point in the history
Added 2 new resource types to AS7 plugin (for Standalone and Managed server)
with supportsMissingAvailabilityType="true", because runtime-queues and
topic subscribers will likely appear and disappear.

BaseComponent#getAvailability() was fixed to support
supportsMissingAvailabilityType=true whenever it is defined in resource
type.
  • Loading branch information
Libor Zoubek committed Oct 2, 2014
1 parent c0ea3f2 commit 1b5f736
Show file tree
Hide file tree
Showing 2 changed files with 422 additions and 0 deletions.
Expand Up @@ -155,6 +155,12 @@ public AvailabilityType getAvailability() {
if (res != null && res.isSuccess()) {
return AvailabilityType.UP;
}
if (context.getResourceType().isSupportsMissingAvailabilityType()) {
if (res != null && res.isRolledBack() && res.getFailureDescription().startsWith("JBAS014807")) {
getLog().info("Reporting MISSING resource: " + getPath());
return AvailabilityType.MISSING;
}
}
if (res != null && res.isTimedout()) {
return AvailabilityType.UNKNOWN;
}
Expand Down

0 comments on commit 1b5f736

Please sign in to comment.