Skip to content

Commit ec0643d

Browse files
marschallbstansberry
authored andcommittedJan 6, 2014
WFLY-2693 list-active-jsf-impls missing reply type
The DMR operation "list-active-jsf-impls" of the JSF subsystem is missing a reply type. Therefore the operation will show up as "Void" in VisualVM and no result will be displayed. * set the reply type to list * set the reply value type to string * replace #withFlags with #setRuntimeOnly and #setReadOnly Issue: WFLY-2693 https://issues.jboss.org/browse/WFLY-2693
1 parent 5b332b9 commit ec0643d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎jsf/subsystem/src/main/java/org/jboss/as/jsf/subsystem/JSFImplListHandler.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
import org.jboss.as.controller.OperationFailedException;
2525
import org.jboss.as.controller.OperationStepHandler;
2626
import org.jboss.as.controller.SimpleOperationDefinitionBuilder;
27-
import org.jboss.as.controller.registry.OperationEntry;
2827
import org.jboss.as.jsf.deployment.JSFModuleIdFactory;
2928
import org.jboss.dmr.ModelNode;
29+
import org.jboss.dmr.ModelType;
3030

3131
/**
3232
* Defines and handles the list-active-jsf-impls operation.
@@ -37,7 +37,10 @@ public class JSFImplListHandler implements OperationStepHandler {
3737
public static final String OPERATION_NAME = "list-active-jsf-impls";
3838

3939
public static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(OPERATION_NAME, JSFExtension.getResourceDescriptionResolver())
40-
.withFlags(OperationEntry.Flag.READ_ONLY, OperationEntry.Flag.RUNTIME_ONLY)
40+
.setRuntimeOnly()
41+
.setReadOnly()
42+
.setReplyType(ModelType.LIST)
43+
.setReplyValueType(ModelType.STRING)
4144
.build();
4245

4346
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {

0 commit comments

Comments
 (0)
Please sign in to comment.