[jboss-cvs] JBossAS SVN: r105092 - in branches/JBPAPP_5_1_hornetq-int: hornetq-int/src/etc and 8 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri May 21 10:07:48 EDT 2010
Author: alessio.soldano at jboss.com
Date: 2010-05-21 10:07:47 -0400 (Fri, 21 May 2010)
New Revision: 105092
Added:
branches/JBPAPP_5_1_hornetq-int/webservices/src/main/org/jboss/wsf/container/jboss50/endpoint/
branches/JBPAPP_5_1_hornetq-int/webservices/src/main/org/jboss/wsf/container/jboss50/endpoint/HornetQJMSResolver.java
branches/JBPAPP_5_1_hornetq-int/webservices/src/resources/jbossws-hornetq.jar/
branches/JBPAPP_5_1_hornetq-int/webservices/src/resources/jbossws-hornetq.jar/META-INF/
branches/JBPAPP_5_1_hornetq-int/webservices/src/resources/jbossws-hornetq.jar/META-INF/services/
branches/JBPAPP_5_1_hornetq-int/webservices/src/resources/jbossws-hornetq.jar/META-INF/services/org.jboss.wsf.spi.management.JMSEndpointResolver
Modified:
branches/JBPAPP_5_1_hornetq-int/build/build-distr.xml
branches/JBPAPP_5_1_hornetq-int/hornetq-int/src/etc/switch.sh
branches/JBPAPP_5_1_hornetq-int/webservices/build.xml
branches/JBPAPP_5_1_hornetq-int/webservices/pom.xml
branches/JBPAPP_5_1_hornetq-int/webservices/src/scripts/assembly-resources.xml
Log:
[JBPAPP-4359] adding jbossws-hornetq.jar to extras/hornetq so that it's installed when switching the AS to HornetQ
Modified: branches/JBPAPP_5_1_hornetq-int/build/build-distr.xml
===================================================================
--- branches/JBPAPP_5_1_hornetq-int/build/build-distr.xml 2010-05-21 14:05:39 UTC (rev 105091)
+++ branches/JBPAPP_5_1_hornetq-int/build/build-distr.xml 2010-05-21 14:07:47 UTC (rev 105092)
@@ -1679,6 +1679,7 @@
<antcall target="install-jbossws-to-common-lib"/>
<antcall target="install-jbossws-to-deploy"/>
<antcall target="install-jbossws-to-deployers"/>
+ <antcall target="install-jbossws-to-extras"/>
</target>
<target name="extract-jbossws-resources">
@@ -1690,6 +1691,18 @@
/>
</target>
+ <target name="install-jbossws-to-extras">
+ <mkdir dir="${install.root}"/>
+ <mkdir dir="${install.root}/extras"/>
+ <mkdir dir="${install.root}/extras/hornetq"/>
+ <mkdir dir="${install.root}/extras/hornetq/lib"/>
+ <copy todir="${install.root}/extras/hornetq/lib">
+ <fileset dir="${_module.output}/lib">
+ <include name="jbossws-hornetq.jar"/>
+ </fileset>
+ </copy>
+ </target>
+
<target name="install-jbossws-to-bin">
<!-- Install JBossWS batch scripts -->
<copy todir="${install.bin}" flatten="true" overwrite="true">
Modified: branches/JBPAPP_5_1_hornetq-int/hornetq-int/src/etc/switch.sh
===================================================================
--- branches/JBPAPP_5_1_hornetq-int/hornetq-int/src/etc/switch.sh 2010-05-21 14:05:39 UTC (rev 105091)
+++ branches/JBPAPP_5_1_hornetq-int/hornetq-int/src/etc/switch.sh 2010-05-21 14:07:47 UTC (rev 105092)
@@ -23,6 +23,7 @@
cp lib/hornetq-core-client.jar $JBOSS_HOME/client
cp lib/hornetq-jms-client.jar $JBOSS_HOME/client
+cp lib/jbossws-hornetq.jar $JBOSS_HOME/client
create() {
CONFIG_NAME=$1
@@ -55,6 +56,7 @@
cp lib/hornetq-ra.jar $JBOSS_HOME/server/$CONFIG_NAME/deploy/jms-ra.rar/
cp resources/ra.xml $JBOSS_HOME/server/$CONFIG_NAME/deploy/jms-ra.rar/META-INF
+cp lib/jbossws-hornetq.jar $JBOSS_HOME/server/$CONFIG_NAME/deployers/jbossws.deployer
}
create "default" "non-clustered"
create "all" "clustered"
Modified: branches/JBPAPP_5_1_hornetq-int/webservices/build.xml
===================================================================
--- branches/JBPAPP_5_1_hornetq-int/webservices/build.xml 2010-05-21 14:05:39 UTC (rev 105091)
+++ branches/JBPAPP_5_1_hornetq-int/webservices/build.xml 2010-05-21 14:07:47 UTC (rev 105092)
@@ -80,6 +80,7 @@
<path refid="jboss.jboss.security.spi.classpath"/>
<path refid="jboss.jboss.vfs.classpath"/>
<path refid="jboss.jbosssx.classpath"/>
+ <path refid="org.hornetq.classpath"/>
<path refid="org.jboss.ws.native.classpath"/>
<path refid="org.jboss.ws.classpath"/>
<path refid="jboss.jbossxb.classpath"/>
@@ -148,6 +149,11 @@
<metainf dir="${build.resources}/jbossws-jboss50.jar/META-INF"/>
</jar>
+ <!-- Build jbossws-hornetq.jar -->
+ <jar jarfile="${build.lib}/jbossws-hornetq.jar" manifest="${build.etc}/default.mf">
+ <metainf dir="${build.resources}/jbossws-hornetq.jar/META-INF"/>
+ </jar>
+
<!-- Build jbossws.deployer -->
<zip zipfile="${build.lib}/jbossws-jboss50-deployer.zip">
<fileset dir="${build.lib}">
Modified: branches/JBPAPP_5_1_hornetq-int/webservices/pom.xml
===================================================================
--- branches/JBPAPP_5_1_hornetq-int/webservices/pom.xml 2010-05-21 14:05:39 UTC (rev 105091)
+++ branches/JBPAPP_5_1_hornetq-int/webservices/pom.xml 2010-05-21 14:07:47 UTC (rev 105092)
@@ -79,6 +79,10 @@
</dependency>
<!-- transitive dependencies -->
<dependency>
+ <groupId>org.hornetq</groupId>
+ <artifactId>hornetq-jms-client</artifactId>
+ </dependency>
+ <dependency>
<groupId>org.jboss.deployers</groupId>
<artifactId>jboss-deployers-vfs</artifactId>
</dependency>
@@ -133,6 +137,9 @@
<resource>
<directory>src/resources/jbossws-jboss50.jar</directory>
</resource>
+ <resource>
+ <directory>src/resources/jbossws-hornetq.jar</directory>
+ </resource>
</resources>
<plugins>
<plugin>
Added: branches/JBPAPP_5_1_hornetq-int/webservices/src/main/org/jboss/wsf/container/jboss50/endpoint/HornetQJMSResolver.java
===================================================================
--- branches/JBPAPP_5_1_hornetq-int/webservices/src/main/org/jboss/wsf/container/jboss50/endpoint/HornetQJMSResolver.java (rev 0)
+++ branches/JBPAPP_5_1_hornetq-int/webservices/src/main/org/jboss/wsf/container/jboss50/endpoint/HornetQJMSResolver.java 2010-05-21 14:07:47 UTC (rev 105092)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.wsf.container.jboss50.endpoint;
+
+import javax.jms.Destination;
+
+import org.jboss.logging.Logger;
+import org.hornetq.jms.client.HornetQDestination;
+import org.jboss.wsf.framework.management.DefaultJMSEndpointResolver;
+
+/**
+ * A JMS endpoint resolver meant for working with HornetQ destination implementation
+ *
+ * @author alessio.soldano at jboss.com
+ *
+ */
+public class HornetQJMSResolver extends DefaultJMSEndpointResolver
+{
+ public void setDestination(Destination destination)
+ {
+ if (destination instanceof HornetQDestination)
+ setFromName(destination, ((HornetQDestination)destination).isQueue());
+ else
+ {
+ Logger.getLogger(HornetQJMSResolver.class).warn(
+ "Destination '" + destination + "' is not a org.hornetq.jms.client.HornetQDestination instance, falling back to default JMS endpoint resolution");
+ super.setDestination(destination);
+ }
+ }
+
+}
Property changes on: branches/JBPAPP_5_1_hornetq-int/webservices/src/main/org/jboss/wsf/container/jboss50/endpoint/HornetQJMSResolver.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_1_hornetq-int/webservices/src/resources/jbossws-hornetq.jar/META-INF/services/org.jboss.wsf.spi.management.JMSEndpointResolver
===================================================================
--- branches/JBPAPP_5_1_hornetq-int/webservices/src/resources/jbossws-hornetq.jar/META-INF/services/org.jboss.wsf.spi.management.JMSEndpointResolver (rev 0)
+++ branches/JBPAPP_5_1_hornetq-int/webservices/src/resources/jbossws-hornetq.jar/META-INF/services/org.jboss.wsf.spi.management.JMSEndpointResolver 2010-05-21 14:07:47 UTC (rev 105092)
@@ -0,0 +1 @@
+org.jboss.wsf.container.jboss50.endpoint.HornetQJMSResolver
Modified: branches/JBPAPP_5_1_hornetq-int/webservices/src/scripts/assembly-resources.xml
===================================================================
--- branches/JBPAPP_5_1_hornetq-int/webservices/src/scripts/assembly-resources.xml 2010-05-21 14:05:39 UTC (rev 105091)
+++ branches/JBPAPP_5_1_hornetq-int/webservices/src/scripts/assembly-resources.xml 2010-05-21 14:07:47 UTC (rev 105092)
@@ -12,7 +12,8 @@
<includes>
<include>jbossws-jboss50.deployer/**</include>
<include>jbossws-jboss50.jar/**</include>
+ <include>jbossws-hornetq.jar/**</include>
</includes>
</fileSet>
</fileSets>
-</assembly>
\ No newline at end of file
+</assembly>
More information about the jboss-cvs-commits
mailing list