Commit 7d23cee8 authored by shake's avatar shake
Browse files

IMS glassfish 3 compatibility

git-svn-id: https://subversion.umiacs.umd.edu/ace/trunk@176 f1b3a171-7291-4a19-a512-95ad0ad9394a
parent 0966ad2a
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>ace</artifactId>
<groupId>edu.umiacs.ace</groupId>
<version>1.7.1-SNAPSHOT</version>
</parent>
<packaging>ear</packaging>
<groupId>edu.umiacs.ace</groupId>
<artifactId>ace-ims-ear</artifactId>
<name>ace-ims-ear</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<netbeans.hint.deploy.server>gfv3ee6</netbeans.hint.deploy.server>
</properties>
<dependencies>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk16</artifactId>
<version>1.45</version>
</dependency>
<dependency>
<groupId>edu.umiacs.ace</groupId>
<artifactId>ace-ims-ejb</artifactId>
......@@ -28,32 +37,32 @@
<type>war</type>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>edu.umiacs.ace</groupId>
<artifactId>ace-ims-server</artifactId>
<version>${project.version}</version>
<type>jar</type>
</dependency>
</dependencies>
<build>
<finalName>ace-ims</finalName>
<plugins>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<defaultLibBundleDir>lib</defaultLibBundleDir>
<modules>
<jarModule>
<groupId>edu.umiacs.ace</groupId>
<artifactId>ace-ims-server</artifactId>
<includeInApplicationXml>true</includeInApplicationXml>
</jarModule>
<jarModule>
<webModule>
<groupId>edu.umiacs.ace</groupId>
<artifactId>ace-common</artifactId>
<includeInApplicationXml>true</includeInApplicationXml>
</jarModule>
<!-- <ejbModule>
<artifactId>ace-ims-war</artifactId>
<contextRoot>/ace-ims</contextRoot>
<unpack>true</unpack>
</webModule>
<ejbModule>
<groupId>edu.umiacs.ace</groupId>
<artifactId>ace-ims-ejb</artifactId>
</ejbModule>
<webModule>
<groupId>edu.umiacs.ace</groupId>
<artifactId>ace-ims-war</artifactId>
</webModule>-->
</modules>
<jboss>
<version>4</version>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-application PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.0 J2EE Application 1.4//EN" "http://www.sun.com/software/appserver/dtds/sun-application_1_4-0.dtd">
<sun-application/>
......@@ -22,7 +22,7 @@ public class InitializeBean implements InitializeLocal
public void development()
{
if ( tokenClassBean.list() == null || tokenClassBean.list().size() == 0 )
if ( tokenClassBean.list() == null || tokenClassBean.list().isEmpty() )
{
TokenClass tc = new TokenClass();
tc.setName("SHA-256");
......
......@@ -23,6 +23,11 @@
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk16</artifactId>
<version>1.45</version>
</dependency>
<dependency>
<groupId>edu.umiacs.ace</groupId>
<artifactId>ace-ims-ejb</artifactId>
......@@ -51,6 +56,11 @@
<artifactId>quartz</artifactId>
<version>1.8.6</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.5</version>
</dependency>
</dependencies>
......
......@@ -35,6 +35,7 @@ import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import javax.ejb.EJB;
import org.apache.log4j.Logger;
import org.apache.log4j.NDC;
......@@ -45,6 +46,8 @@ import org.apache.log4j.NDC;
class RoundProcessor extends Thread
{
private static final HashFormatter hashFormatter = new HashFormatter();
@EJB(name="RoundBean")
private RoundLocal roundBean =
ServiceLocator.getInstance().getLocal(RoundLocal.class);
......
......@@ -19,6 +19,7 @@ import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import javax.ejb.EJB;
import org.apache.log4j.Logger;
/**
......@@ -34,6 +35,8 @@ public final class RoundProcessors
private Map<TokenClass, RoundProcessor> processors =
new HashMap<TokenClass, RoundProcessor>();
private ReadWriteLock processorsLock = new ReentrantReadWriteLock();
@EJB(name="TokenStoreBean")
private TokenStoreLocal tokenStoreBean =
ServiceLocator.getInstance().getLocal(TokenStoreLocal.class);
private TokenPersistenceThread persistenceThread;
......
......@@ -84,34 +84,36 @@
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!--
<ejb-local-ref>
<ejb-ref-name>RoundBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>edu.umiacs.ace.ims.round.RoundLocal</local>
<ejb-link>ace-ims-ejb.jar#RoundBean</ejb-link>
<ejb-link>edu.umiacs.ace_ace-ims-ejb_ejb_1.7.1-SNAPSHOT/RoundBean</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>TokenStoreBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>edu.umiacs.ace.ims.store.TokenStoreLocal</local>
<ejb-link>ace-ims-ejb.jar#TokenStoreBean</ejb-link>
<ejb-link>edu.umiacs.ace_ace-ims-ejb_ejb_1.7.1-SNAPSHOT/TokenStoreBean</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>TokenClassBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>edu.umiacs.ace.ims.tokenclass.TokenClassLocal</local>
<ejb-link>ace-ims-ejb.jar#TokenClassBean</ejb-link>
<ejb-link>edu.umiacs.ace_ace-ims-ejb_ejb_1.7.1-SNAPSHOT/TokenClassBean</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>WitnessBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>edu.umiacs.ace.ims.witness.WitnessLocal</local>
<ejb-link>ace-ims-ejb.jar#WitnessBean</ejb-link>
<ejb-link>edu.umiacs.ace_ace-ims-ejb_ejb_1.7.1-SNAPSHOT/WitnessBean</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>MailPublisherBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>edu.umiacs.ace.ims.system.MailPublisherLocal</local>
<ejb-link>ace-ims-ejb.jar#MailPublisherBean</ejb-link>
<ejb-link>edu.umiacs.ace_ace-ims-ejb_ejb_1.7.1-SNAPSHOT/MailPublisherBean</ejb-link>
</ejb-local-ref>
-->
</web-app>
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