Package org.jboss.modcluster

Examples of org.jboss.modcluster.ModClusterServiceMBean.enableContext()


                    context.completeStep(new OperationContext.RollbackHandler() {
                        @Override
                        public void handleRollback(OperationContext context, ModelNode operation) {
                            // TODO We're assuming that the context was previously enabled, but it could have been disabled
                            service.enableContext(webHost, webContext);
                        }
                    });
                }
            }, OperationContext.Stage.RUNTIME);
        }
View Full Code Here


                    }

                    context.completeStep(new OperationContext.RollbackHandler() {
                        @Override
                        public void handleRollback(OperationContext context, ModelNode operation) {
                            service.enableContext(webHost, webContext);
                        }
                    });
                }
            }, OperationContext.Stage.RUNTIME);
        }
View Full Code Here

                    final String webHost = VIRTUAL_HOST.resolveModelAttribute(context, operation).asString();
                    final String webContext = CONTEXT.resolveModelAttribute(context, operation).asString();

                    try {
                        service.enableContext(webHost, webContext);
                    } catch (IllegalArgumentException e) {
                        throw new OperationFailedException(new ModelNode().set(ModClusterLogger.ROOT_LOGGER.contextOrHostNotFound(webHost, webContext)));
                    }

                    context.completeStep(new OperationContext.RollbackHandler() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.