Commit 12f82e87 authored by michael.simon's avatar michael.simon
Browse files

Version upgrade

Upgrade version to 2.5.11 and remove support for JBoss 7
parent 888eaeb8
......@@ -22,26 +22,26 @@
<parent>
<groupId>edu.kit.scc</groupId>
<artifactId>bwreg</artifactId>
<version>2.5.10</version>
<version>2.5.11</version>
</parent>
<dependencies>
<dependency>
<groupId>edu.kit.scc</groupId>
<artifactId>bwreg-jpa</artifactId>
<version>2.5.10</version>
<version>2.5.11</version>
<type>ejb</type>
</dependency>
<dependency>
<groupId>edu.kit.scc</groupId>
<artifactId>bwreg-service</artifactId>
<version>2.5.10</version>
<version>2.5.11</version>
<type>ejb</type>
</dependency>
<dependency>
<groupId>edu.kit.scc</groupId>
<artifactId>bwreg-webapp</artifactId>
<version>2.5.10</version>
<version>2.5.11</version>
<type>war</type>
</dependency>
......
......@@ -17,7 +17,7 @@
<parent>
<groupId>edu.kit.scc</groupId>
<artifactId>bwreg</artifactId>
<version>2.5.10</version>
<version>2.5.11</version>
</parent>
<dependencyManagement>
......
......@@ -17,7 +17,7 @@
<parent>
<artifactId>bwreg</artifactId>
<groupId>edu.kit.scc</groupId>
<version>2.5.10</version>
<version>2.5.11</version>
</parent>
<properties>
......@@ -30,7 +30,7 @@
<dependency>
<groupId>edu.kit.scc</groupId>
<artifactId>bwreg-jpa</artifactId>
<version>2.5.10</version>
<version>2.5.11</version>
<type>ejb</type>
<scope>provided</scope>
</dependency>
......@@ -112,12 +112,6 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-clustering-singleton</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-clustering-common</artifactId>
......
/*******************************************************************************
* Copyright (c) 2014 Michael Simon.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.service.timer;
import org.jboss.as.clustering.singleton.SingletonService;
import org.jboss.as.server.ServerEnvironment;
import org.jboss.as.server.ServerEnvironmentService;
import org.jboss.msc.service.DelegatingServiceContainer;
import org.jboss.msc.service.ServiceActivator;
import org.jboss.msc.service.ServiceActivatorContext;
import org.jboss.msc.service.ServiceController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ClusterSingletonServiceActivator implements ServiceActivator {
private final Logger logger = LoggerFactory.getLogger(ClusterSingletonServiceActivator.class);
@Override
public void activate(ServiceActivatorContext context) {
logger.info("ClusterSingletonService will be installed!");
ClusterSingletonTimerService service = new ClusterSingletonTimerService();
SingletonService<ClusterScheduler> singleton = new SingletonService<ClusterScheduler>(service, ClusterSingletonTimerService.SINGLETON_SERVICE_NAME);
singleton.build(new DelegatingServiceContainer(context.getServiceTarget(), context.getServiceRegistry()))
.addDependency(ServerEnvironmentService.SERVICE_NAME, ServerEnvironment.class, service.env)
.setInitialMode(ServiceController.Mode.ACTIVE)
.install();
}
}
......@@ -15,7 +15,7 @@
<parent>
<artifactId>bwreg</artifactId>
<groupId>edu.kit.scc</groupId>
<version>2.5.10</version>
<version>2.5.11</version>
</parent>
<packaging>war</packaging>
......@@ -29,14 +29,14 @@
<dependency>
<groupId>edu.kit.scc</groupId>
<artifactId>bwreg-jpa</artifactId>
<version>2.5.10</version>
<version>2.5.11</version>
<type>ejb</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>edu.kit.scc</groupId>
<artifactId>bwreg-service</artifactId>
<version>2.5.10</version>
<version>2.5.11</version>
<type>ejb</type>
<scope>provided</scope>
</dependency>
......
......@@ -13,7 +13,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>edu.kit.scc</groupId>
<artifactId>bwreg</artifactId>
<version>2.5.10</version>
<version>2.5.11</version>
<packaging>pom</packaging>
<name>bw Services Registration Webapp</name>
......@@ -149,22 +149,11 @@
<groupId>org.jboss.msc</groupId>
<artifactId>jboss-msc</artifactId>
<version>1.0.4.GA</version>
</dependency>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-clustering-singleton</artifactId>
<version>7.2.0.Final</version>
<exclusions>
<exclusion>
<artifactId>tools</artifactId>
<groupId>com.sun</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-clustering-common</artifactId>
<version>8.1.0.Final</version>
<version>8.2.0.Final</version>
<exclusions>
<exclusion>
<artifactId>jconsole</artifactId>
......@@ -175,7 +164,7 @@
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-clustering-singleton</artifactId>
<version>8.1.0.Final</version>
<version>8.2.0.Final</version>
</dependency>
<dependency>
<groupId>org.apache.jclouds.api</groupId>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment