Author: heiko.braun(a)jboss.com
Date: 2007-01-19 11:17:19 -0500 (Fri, 19 Jan 2007)
New Revision: 2014
Added:
trunk/build/etc/hudson/AS-5.x.config.xml
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/SimpleServer.java
Modified:
trunk/build/etc/hudson/JBossWS-TRUNK.config.xml
Log:
config backup
Added: trunk/build/etc/hudson/AS-5.x.config.xml
===================================================================
--- trunk/build/etc/hudson/AS-5.x.config.xml (rev 0)
+++ trunk/build/etc/hudson/AS-5.x.config.xml 2007-01-19 16:17:19 UTC (rev 2014)
@@ -0,0 +1,31 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+ <builders class="vector">
+ <hudson.tasks.Shell>
+ <command>cd trunk
+rm -f thirdparty/libraries.ent
+./build/build.sh clean
+./build/build.sh</command>
+ </hudson.tasks.Shell>
+ </builders>
+ <publishers class="vector">
+ <hudson.tasks.Mailer>
+ <recipients>heiko.braun(a)jboss.com</recipients>
+ <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
+ <sendToIndividuals>false</sendToIndividuals>
+ </hudson.tasks.Mailer>
+ </publishers>
+ <buildWrappers class="vector"/>
+ <scm class="hudson.scm.SubversionSCM">
+ <
modules>https://svn.jboss.org/repos/jbossas/trunk</modules>
+ <useUpdate>true</useUpdate>
+ </scm>
+ <canRoam>true</canRoam>
+ <disabled>false</disabled>
+ <enableRemoteTrigger>false</enableRemoteTrigger>
+ <triggers class="vector"/>
+ <description></description>
+ <keepDependencies>false</keepDependencies>
+ <properties/>
+ <actions class="vector"/>
+</project>
\ No newline at end of file
Modified: trunk/build/etc/hudson/JBossWS-TRUNK.config.xml
===================================================================
--- trunk/build/etc/hudson/JBossWS-TRUNK.config.xml 2007-01-19 14:42:37 UTC (rev 2013)
+++ trunk/build/etc/hudson/JBossWS-TRUNK.config.xml 2007-01-19 16:17:19 UTC (rev 2014)
@@ -18,7 +18,7 @@
#
# build core modules (and update thirdparty libs)
#
-ant -propertyfile etc/hudson/AS-5.x.properties -Dforce.thirdparty.get=true main
+ant -propertyfile $WORKSPACE/trunk/build/etc/hudson/AS-5.x.properties
-Dforce.thirdparty.get=true main
#
# build test suite
@@ -39,8 +39,7 @@
#
# execute tests
#
-ant -propertyfile $WORKSPACE/trunk/build/etc/hudson/AS-5.x.properties
--Djboss50.home=$HUDSON/jobs/AS-5.x/workspace/trunk/build/output/jboss-5.0.0.Beta2 tests
+ant -propertyfile $WORKSPACE/trunk/build/etc/hudson/AS-5.x.properties
-Djboss50.home=$HUDSON/jobs/AS-5.x/workspace/trunk/build/output/jboss-5.0.0.Beta2 tests
#
# stop jbossas
@@ -66,7 +65,7 @@
<useUpdate>true</useUpdate>
</scm>
<canRoam>true</canRoam>
- <disabled>true</disabled>
+ <disabled>false</disabled>
<enableRemoteTrigger>false</enableRemoteTrigger>
<triggers class="vector">
<hudson.triggers.SCMTrigger>
@@ -77,4 +76,4 @@
<keepDependencies>false</keepDependencies>
<properties/>
<actions class="vector"/>
-</project>
+</project>
\ No newline at end of file
Added:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/SimpleServer.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/SimpleServer.java
(rev 0)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/SimpleServer.java 2007-01-19
16:17:19 UTC (rev 2014)
@@ -0,0 +1,106 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wseventing;
+
+import org.jboss.remoting.InvokerLocator;
+import org.jboss.remoting.ServerInvoker;
+import org.jboss.remoting.ServerInvocationHandler;
+import org.jboss.remoting.InvocationRequest;
+import org.jboss.remoting.callback.InvokerCallbackHandler;
+import org.jboss.remoting.transport.Connector;
+
+import javax.management.MBeanServer;
+import java.util.HashMap;
+
+/**
+ * @author Heiko.Braun(a)jboss.org
+ * @version $Id$
+ * @since 19.01.2007
+ */
+public class SimpleServer implements Runnable {
+
+ private String locatorURI;
+ private boolean running = true;
+
+ public SimpleServer(String locatorURI) {
+ this.locatorURI = locatorURI;
+ }
+
+ public static void main(String[] args) throws Exception
+ {
+ SimpleServer server = new SimpleServer("socket://localhost:20000");
+ Thread t = new Thread(server);
+ t.start();
+
+ }
+
+ public void run() {
+ try {
+ String params = "/?clientLeasePeriod=10000";
+ locatorURI += params;
+ InvokerLocator locator = new InvokerLocator(locatorURI);
+ HashMap config = new HashMap();
+ //config.put(ServerInvoker.TIMEOUT, 120000);
+ //config.put(ServerInvoker.SERVER_SOCKET_FACTORY, new MyServerSocketFactory());
+ Connector connector = new Connector(locator, config);
+ connector.create();
+
+ connector.addInvocationHandler("eventing", new DebugHandler());
+ connector.start();
+
+ while(running)
+ {
+ Thread.currentThread().sleep(2000);
+ System.out.println(".");
+ }
+
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ class DebugHandler implements ServerInvocationHandler
+ {
+ public void setMBeanServer(MBeanServer mBeanServer) {
+
+ }
+
+ public void setInvoker(ServerInvoker serverInvoker) {
+
+ }
+
+ public Object invoke(InvocationRequest invocationRequest) throws Throwable {
+ System.out.println("Invocation on
"+invocationRequest.getSubsystem());
+ System.out.println(invocationRequest.getRequestPayload());
+ return null;
+ }
+
+ public void addListener(InvokerCallbackHandler invokerCallbackHandler) {
+ System.out.println("addListener: "+invokerCallbackHandler);
+ }
+
+ public void removeListener(InvokerCallbackHandler invokerCallbackHandler) {
+ System.out.println("removeListener: "+invokerCallbackHandler);
+ }
+ }
+
+}