You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2011/07/03 18:26:03 UTC
svn commit: r1142456 - in /incubator/airavata/ws-messaging/trunk: ./
messenger/ messenger/.settings/ messenger/src/ messenger/src/main/
messenger/src/main/java/ messenger/src/main/java/org/
messenger/src/main/java/org/apache/ messenger/src/main/java/or...
Author: smarru
Date: Sun Jul 3 16:26:03 2011
New Revision: 1142456
URL: http://svn.apache.org/viewvc?rev=1142456&view=rev
Log:
cleaned up messenger
Added:
incubator/airavata/ws-messaging/trunk/messenger/
incubator/airavata/ws-messaging/trunk/messenger/.classpath
incubator/airavata/ws-messaging/trunk/messenger/.project
incubator/airavata/ws-messaging/trunk/messenger/.settings/
incubator/airavata/ws-messaging/trunk/messenger/.settings/org.eclipse.jdt.core.prefs
incubator/airavata/ws-messaging/trunk/messenger/.settings/org.maven.ide.eclipse.prefs
incubator/airavata/ws-messaging/trunk/messenger/pom.xml
incubator/airavata/ws-messaging/trunk/messenger/src/
incubator/airavata/ws-messaging/trunk/messenger/src/main/
incubator/airavata/ws-messaging/trunk/messenger/src/main/java/
incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/
incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/
incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/
incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/
incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/messenger/
incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/messenger/MessengerServlet.java
incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/messenger/util/
incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/messenger/util/MessengerLogFactory.java
incubator/airavata/ws-messaging/trunk/messenger/src/main/resources/
incubator/airavata/ws-messaging/trunk/messenger/src/main/resources/log4jconfig.xml_ (with props)
incubator/airavata/ws-messaging/trunk/messenger/src/main/resources/wsmg.broker.properties.sample
incubator/airavata/ws-messaging/trunk/messenger/src/main/webapp/
incubator/airavata/ws-messaging/trunk/messenger/src/main/webapp/WEB-INF/
incubator/airavata/ws-messaging/trunk/messenger/src/main/webapp/WEB-INF/web.xml
incubator/airavata/ws-messaging/trunk/messenger/src/test/
incubator/airavata/ws-messaging/trunk/messenger/src/test/java/
incubator/airavata/ws-messaging/trunk/pom.xml
Added: incubator/airavata/ws-messaging/trunk/messenger/.classpath
URL: http://svn.apache.org/viewvc/incubator/airavata/ws-messaging/trunk/messenger/.classpath?rev=1142456&view=auto
==============================================================================
--- incubator/airavata/ws-messaging/trunk/messenger/.classpath (added)
+++ incubator/airavata/ws-messaging/trunk/messenger/.classpath Sun Jul 3 16:26:03 2011
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="target/classes" path="src/main/java"/>
+ <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Added: incubator/airavata/ws-messaging/trunk/messenger/.project
URL: http://svn.apache.org/viewvc/incubator/airavata/ws-messaging/trunk/messenger/.project?rev=1142456&view=auto
==============================================================================
--- incubator/airavata/ws-messaging/trunk/messenger/.project (added)
+++ incubator/airavata/ws-messaging/trunk/messenger/.project Sun Jul 3 16:26:03 2011
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>messenger</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ </natures>
+</projectDescription>
Added: incubator/airavata/ws-messaging/trunk/messenger/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/incubator/airavata/ws-messaging/trunk/messenger/.settings/org.eclipse.jdt.core.prefs?rev=1142456&view=auto
==============================================================================
--- incubator/airavata/ws-messaging/trunk/messenger/.settings/org.eclipse.jdt.core.prefs (added)
+++ incubator/airavata/ws-messaging/trunk/messenger/.settings/org.eclipse.jdt.core.prefs Sun Jul 3 16:26:03 2011
@@ -0,0 +1,6 @@
+#Sun Jul 03 12:17:38 EDT 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.6
Added: incubator/airavata/ws-messaging/trunk/messenger/.settings/org.maven.ide.eclipse.prefs
URL: http://svn.apache.org/viewvc/incubator/airavata/ws-messaging/trunk/messenger/.settings/org.maven.ide.eclipse.prefs?rev=1142456&view=auto
==============================================================================
--- incubator/airavata/ws-messaging/trunk/messenger/.settings/org.maven.ide.eclipse.prefs (added)
+++ incubator/airavata/ws-messaging/trunk/messenger/.settings/org.maven.ide.eclipse.prefs Sun Jul 3 16:26:03 2011
@@ -0,0 +1,8 @@
+#Sun Jul 03 12:17:34 EDT 2011
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1
Added: incubator/airavata/ws-messaging/trunk/messenger/pom.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/ws-messaging/trunk/messenger/pom.xml?rev=1142456&view=auto
==============================================================================
--- incubator/airavata/ws-messaging/trunk/messenger/pom.xml (added)
+++ incubator/airavata/ws-messaging/trunk/messenger/pom.xml Sun Jul 3 16:26:03 2011
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>ws-messenger</artifactId>
+ <groupId>Airavata</groupId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <name>Messenger</name>
+ <groupId>Airavata</groupId>
+ <artifactId>messenger</artifactId>
+ <url>http://incubator.apache.org/airavata/</url>
+ <packaging>war</packaging>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+
+ <configuration>
+ <webResources>
+ <resource>
+ <directory>${basedir}/axis2_dependencies/</directory>
+ <targetPath>WEB-INF/lib</targetPath>
+ <includes>
+ <include>*.jar</include>
+ </includes>
+ <excludes>
+ <exclude>axiom-api*</exclude>
+ <exclude>log4j*</exclude>
+ </excludes>
+ </resource>
+ </webResources>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+
+ <dependency>
+ <groupId>org.ogce.broker</groupId>
+ <artifactId>broker</artifactId>
+ <version>1.1.1</version>
+ <type>jar</type>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.7</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.ws.commons.axiom</groupId>
+ <artifactId>axiom-api</artifactId>
+ <version>1.2.8</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ws.commons.axiom</groupId>
+ <artifactId>axiom-impl</artifactId>
+ <version>1.2.8</version>
+ <type>jar</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+
+ </dependency>
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <version>5.1.6</version>
+ <type>jar</type>
+
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2</artifactId>
+ <version>1.5</version>
+ <scope>provided</scope>
+ </dependency>
+
+ </dependencies>
+</project>
Added: incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/messenger/MessengerServlet.java
URL: http://svn.apache.org/viewvc/incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/messenger/MessengerServlet.java?rev=1142456&view=auto
==============================================================================
--- incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/messenger/MessengerServlet.java (added)
+++ incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/messenger/MessengerServlet.java Sun Jul 3 16:26:03 2011
@@ -0,0 +1,147 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.airavata.wsmg.messenger;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.axis2.AxisFault;
+import org.apache.log4j.Logger;
+
+public class MessengerServlet extends HttpServlet {
+
+ Logger logger = Logger.getLogger(MessengerServlet.class);
+
+ private static final long serialVersionUID = -7175511030332798604L;
+
+ private SendingStrategy sender = null;
+
+ public MessengerServlet() {
+ }
+
+ public void init(ServletConfig config) throws ServletException {
+ logger.info("Starting messenger servlet");
+ System.out.println(String.format("Starting messenger: version: %s , %s",
+ WsmgVersion.getImplementationVersion(), WSMGParameter.versionSetUpNote));
+ RunTimeStatistics.setStartUpTime();
+ ConfigurationManager brokerConfig = initConfigurations(config);
+ initStorage(brokerConfig);
+ initDiliveryMethod(brokerConfig);
+
+ }
+
+ private void initDiliveryMethod(ConfigurationManager config) {
+ logger.info("starting dilivery thread");
+
+ String deliveryMethod = config.getConfig(WsmgCommonConstants.CONFIG_DELIVERY_METHOD,
+ WsmgCommonConstants.DELIVERY_METHOD_SERIAL);
+ SendingStrategy method = null;
+
+ ConsumerUrlManager urlManager = new ConsumerUrlManager(config);
+
+ String initedmethod = null;
+
+ if (WsmgCommonConstants.DELIVERY_METHOD_PARALLEL.equalsIgnoreCase(deliveryMethod)) {
+
+ method = new ParallelSender(config, urlManager);
+ initedmethod = WsmgCommonConstants.DELIVERY_METHOD_PARALLEL;
+
+ } else if (WsmgCommonConstants.DELIVERY_METHOD_THREAD_CREW.equalsIgnoreCase(deliveryMethod)) {
+ method = new FixedParallelSender(config, urlManager);
+ initedmethod = WsmgCommonConstants.DELIVERY_METHOD_THREAD_CREW;
+
+ } else {
+ method = new SerialSender(config, urlManager);
+ initedmethod = WsmgCommonConstants.DELIVERY_METHOD_SERIAL;
+ }
+
+ method.start();
+ logger.info(initedmethod + " sending method inited");
+ }
+
+ public void destroy() {
+ sender.shutdown();
+ logger.info("stoping wsmg-messenger");
+ }
+
+ public ServletConfig getServletConfig() {
+ return null;
+ }
+
+ public String getServletInfo() {
+ return null;
+ }
+
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ sendMessengerStats(response);
+
+ }
+
+ private void sendMessengerStats(HttpServletResponse response) throws IOException {
+ PrintWriter out = response.getWriter();
+ response.setContentType("text/html");
+
+ out.write("<html><head><title>Delivery thread" + " of WS-Messenger</title></head>");
+ out.write("<body bgcolor='white'><h1>" + "Delivery thread of WS-Messenger is running</h1>");
+ out.write(RunTimeStatistics.getHtmlString());
+ out.write("</body>");
+ out.flush();
+ }
+
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
+ IOException {
+ sendMessengerStats(response);
+ }
+
+ private ConfigurationManager initConfigurations(ServletConfig config) {
+ ConfigurationManager configMan = new ConfigurationManager(WsmgCommonConstants.BROKER_CONFIGURATION_FILE_NAME);
+ return configMan;
+ }
+
+ private void initStorage(ConfigurationManager configMan) {
+
+ String type = configMan.getConfig(WsmgCommonConstants.CONFIG_STORAGE_TYPE,
+ WsmgCommonConstants.CONFIG_STORAGE_TYPE);
+
+ if (WsmgCommonConstants.STORAGE_TYPE_IN_MEMORY.equalsIgnoreCase(type)) {
+ logger.fatal("invalid storage type specified: " + type);
+ throw new RuntimeException("invalid storage type specified: " + type);
+ }
+
+ try {
+ WSMGParameter.OUT_GOING_QUEUE = new WsmgPersistantStorage(
+ WsmgCommonConstants.TABLE_NAME_EXPIRABLE_SUBCRIPTIONS,
+ WsmgCommonConstants.TABLE_NAME_NON_EXPIRABLE_SUBCRIPTIONS, configMan);
+
+ } catch (AxisFault af) {
+ logger.fatal("failed to initialize storage", af);
+ throw new RuntimeException("unable to initialize storage", af);
+ }
+
+ }
+}
Added: incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/messenger/util/MessengerLogFactory.java
URL: http://svn.apache.org/viewvc/incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/messenger/util/MessengerLogFactory.java?rev=1142456&view=auto
==============================================================================
--- incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/messenger/util/MessengerLogFactory.java (added)
+++ incubator/airavata/ws-messaging/trunk/messenger/src/main/java/org/apache/airavata/wsmg/messenger/util/MessengerLogFactory.java Sun Jul 3 16:26:03 2011
@@ -0,0 +1,75 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.airavata.wsmg.messenger.util;
+
+import javax.servlet.ServletConfig;
+
+import org.apache.log4j.BasicConfigurator;
+import org.apache.log4j.Logger;
+import org.apache.log4j.PropertyConfigurator;
+import org.apache.log4j.xml.DOMConfigurator;
+
+public final class MessengerLogFactory {
+
+ private static final String WSMG_MESSENGER_LOGGER = "org.apache.airavata.wsmg.messenger.logger";
+
+ private static final String LOG4J_PROPERTIES_NAME = "log4jconfigpath";
+
+ private Logger log = Logger.getLogger(WSMG_MESSENGER_LOGGER);
+
+ private static MessengerLogFactory instance = new MessengerLogFactory();
+
+ private MessengerLogFactory() {
+
+ }
+
+ public static MessengerLogFactory getIntance() {
+ return instance;
+
+ }
+
+ public Logger getLogger() {
+ return log;
+ }
+
+ public void init(ServletConfig config) {
+
+ System.out.println("configuring log4j");
+
+ String prefix = config.getServletContext().getRealPath("/");
+ String file = config.getInitParameter(LOG4J_PROPERTIES_NAME);
+
+ if (file != null) {
+ System.out.println("log4j config file: " + file);
+ if (file.endsWith(".xml")) {
+ System.out.println("configuring dom");
+ DOMConfigurator.configure(prefix + file);
+ } else {
+ PropertyConfigurator.configure(prefix + file);
+ }
+ } else {
+ System.out.println("Warning :- logging configuration doesn't exist -" + " using basic configuration");
+ BasicConfigurator.configure();
+ }
+
+ }
+}
Added: incubator/airavata/ws-messaging/trunk/messenger/src/main/resources/log4jconfig.xml_
URL: http://svn.apache.org/viewvc/incubator/airavata/ws-messaging/trunk/messenger/src/main/resources/log4jconfig.xml_?rev=1142456&view=auto
==============================================================================
--- incubator/airavata/ws-messaging/trunk/messenger/src/main/resources/log4jconfig.xml_ (added)
+++ incubator/airavata/ws-messaging/trunk/messenger/src/main/resources/log4jconfig.xml_ Sun Jul 3 16:26:03 2011
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+ <!--
+ <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
+ <layout class="org.apache.log4j.SimpleLayout"/>
+ </appender>
+ -->
+
+<!--
+ <appender name="Fileout" class="org.apache.log4j.DailyRollingFileAppender">
+ <param name="DatePattern" value="'_'yyyy-MM-dd"/>
+ <param name="File" value="D:/JBuilder2007_Workspace/workspace/Bill_SMS/logs/Bill_SMS.Log"/>
+ <param name="Append" value="true"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d [%t] %p - %m%n"/>
+ </layout>
+ </appender>
+ -->
+
+
+ <appender name="Fileout" class="org.apache.log4j.RollingFileAppender">
+ <param name="File" value="${catalina.home}/logs/messenger.log"/>
+ <param name="MaxFileSize" value="100MB"/>
+ <param name="MaxBackupIndex" value="10"/>
+ <param name="Append" value="true"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d [%t] %p - %m%n"/>
+ </layout>
+ </appender>
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <param name="Target" value="System.out"/>
+ <param name="Threshold" value="INFO"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <logger name="org.apache.airavata.wsmg.messenger.logger" additivity="false" >
+ <level value="info"/>
+ <appender-ref ref="Fileout"/>
+ <appender-ref ref="CONSOLE"/>
+ </logger>
+
+ <root>
+ <priority value ="Level.OFF" />
+ </root>
+
+</log4j:configuration>
Propchange: incubator/airavata/ws-messaging/trunk/messenger/src/main/resources/log4jconfig.xml_
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/airavata/ws-messaging/trunk/messenger/src/main/resources/wsmg.broker.properties.sample
URL: http://svn.apache.org/viewvc/incubator/airavata/ws-messaging/trunk/messenger/src/main/resources/wsmg.broker.properties.sample?rev=1142456&view=auto
==============================================================================
--- incubator/airavata/ws-messaging/trunk/messenger/src/main/resources/wsmg.broker.properties.sample (added)
+++ incubator/airavata/ws-messaging/trunk/messenger/src/main/resources/wsmg.broker.properties.sample Sun Jul 3 16:26:03 2011
@@ -0,0 +1,6 @@
+broker.jdbc.driver=com.mysql.jdbc.Driver
+broker.jdbc.url=jdbc:mysql://localhost:3306/wsmg?user=wsmg&password=wsmg
+broker.start.delivery.thread=true
+broker.socket.timeout=30000
+broker.storage.type=memory
+axis2.repository=/home/ramith/Documents/axis2-1.5
\ No newline at end of file
Added: incubator/airavata/ws-messaging/trunk/messenger/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/ws-messaging/trunk/messenger/src/main/webapp/WEB-INF/web.xml?rev=1142456&view=auto
==============================================================================
--- incubator/airavata/ws-messaging/trunk/messenger/src/main/webapp/WEB-INF/web.xml (added)
+++ incubator/airavata/ws-messaging/trunk/messenger/src/main/webapp/WEB-INF/web.xml Sun Jul 3 16:26:03 2011
@@ -0,0 +1,30 @@
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
+
+<web-app>
+ <display-name>OGCE WS Messenger</display-name>
+ <servlet>
+ <icon></icon>
+ <servlet-name>messenger</servlet-name>
+ <description>OGCE WS Messenger</description>
+ <servlet-class>org.apache.airavata.wsmg.messenger.MessengerServlet</servlet-class>
+ <init-param>
+ <param-name>log4jconfigpath</param-name>
+ <param-value>WEB-INF/classes/log4jconfig.xml</param-value>
+ </init-param>
+ <init-param>
+ <param-name>configuration.file.name</param-name>
+ <param-value>wsmg.broker.properties</param-value>
+ </init-param>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+
+ <servlet-mapping>
+ <servlet-name>messenger</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+
+</web-app>
Added: incubator/airavata/ws-messaging/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/ws-messaging/trunk/pom.xml?rev=1142456&view=auto
==============================================================================
--- incubator/airavata/ws-messaging/trunk/pom.xml (added)
+++ incubator/airavata/ws-messaging/trunk/pom.xml Sun Jul 3 16:26:03 2011
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>ws-messenger</artifactId>
+ <groupId>Airavata</groupId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>Airavata-WS-Messenger</name>
+ <url>http://maven.apache.org</url>
+ <repositories>
+ <repository>
+ <id>ogce.m2.all</id>
+ <name>ogce.m2.all</name>
+ <url>http://community.ucs.indiana.edu:9090/archiva/repository/ogce.m2.all</url>
+ </repository>
+ </repositories>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.7</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.ws.commons.axiom</groupId>
+ <artifactId>axiom-api</artifactId>
+ <version>1.2.8</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.ws.commons.axiom</groupId>
+ <artifactId>axiom-impl</artifactId>
+ <type>jar</type>
+ <version>1.2.8</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2</artifactId>
+ <version>1.5</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.15</version>
+ <scope>provided</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.mail</groupId>
+ <artifactId>mail</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.jms</groupId>
+ <artifactId>jms</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.jdmk</groupId>
+ <artifactId>jmxtools</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.jmx</groupId>
+ <artifactId>jmxri</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+
+ </dependencies>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!-- disabling unit tests for now -->
+ <skipTests>true</skipTests>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ </plugins>
+ </build>
+
+ <modules>
+ <module>wsmg-commons</module>
+ <module>messagebox</module>
+ <module>messagebroker</module>
+ <module>messenger</module>
+ <module>workflow-tracking</module>
+ </modules>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+
+ <release.version>1.1.1</release.version>
+
+ </properties>
+
+</project>
\ No newline at end of file