[jboss-svn-commits] JBL Code SVN: r18664 - in labs/jbossesb/workspace/tfennelly_https/product: rosetta/src/org/jboss/soa/esb/actions/routing and 12 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Mar 3 12:57:07 EST 2008


Author: tfennelly
Date: 2008-03-03 12:57:06 -0500 (Mon, 03 Mar 2008)
New Revision: 18664

Added:
   labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/actions/routing/http/
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/HttpRouter-localhost-https-9433.properties
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/build.xml
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/deployment.xml
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbm-queue-service.xml
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbmq-queue-service.xml
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jboss-esb-template.xml
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbossesb-service.xml
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jndi.properties
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/readme.txt
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/https/
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/https/HttpResponsePrinter.java
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/https/test/
   labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/https/test/SendJMSMessage.java
Modified:
   labs/jbossesb/workspace/tfennelly_https/product/etc/schemas/xml/jbossesb-1.0.1.xsd
   labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/actions/routing/AbstractRouter.java
   labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/actions/routing/HttpRouter.java
   labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/listeners/config/mappers/JbrListenerMapper.java
   labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/listeners/gateway/JBossRemotingGatewayListener.java
Log:
some https mods

Modified: labs/jbossesb/workspace/tfennelly_https/product/etc/schemas/xml/jbossesb-1.0.1.xsd
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/etc/schemas/xml/jbossesb-1.0.1.xsd	2008-03-03 17:07:31 UTC (rev 18663)
+++ labs/jbossesb/workspace/tfennelly_https/product/etc/schemas/xml/jbossesb-1.0.1.xsd	2008-03-03 17:57:06 UTC (rev 18664)
@@ -1500,7 +1500,9 @@
 						<xsd:simpleType>
 							<xsd:restriction base="xsd:NMTOKEN">
 								<xsd:enumeration value="http" />
+                                <xsd:enumeration value="https" />
 								<xsd:enumeration value="socket" />
+                                <xsd:enumeration value="sslsocket" />
 							</xsd:restriction>
 						</xsd:simpleType>
 					</xsd:attribute>

Modified: labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/actions/routing/AbstractRouter.java
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/actions/routing/AbstractRouter.java	2008-03-03 17:07:31 UTC (rev 18663)
+++ labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/actions/routing/AbstractRouter.java	2008-03-03 17:57:06 UTC (rev 18664)
@@ -48,7 +48,7 @@
 	 * Unwrap the message payload before routing. 
 	 */
 	public boolean unwrap = false;
-    private MessagePayloadProxy payloadProxy;
+    protected MessagePayloadProxy payloadProxy;
 
     /**
      * Public constructor.

Modified: labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/actions/routing/HttpRouter.java
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/actions/routing/HttpRouter.java	2008-03-03 17:07:31 UTC (rev 18663)
+++ labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/actions/routing/HttpRouter.java	2008-03-03 17:57:06 UTC (rev 18664)
@@ -46,6 +46,8 @@
  *    &lt;/Action&gt;
  * </pre>
  *
+ * 
+ *
  * @author <a href="mailto:johan.kumps at telenet.be">Johan Kumps</a>
  */
 public class HttpRouter extends AbstractActionPipelineProcessor {

Modified: labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/listeners/config/mappers/JbrListenerMapper.java
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/listeners/config/mappers/JbrListenerMapper.java	2008-03-03 17:07:31 UTC (rev 18663)
+++ labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/listeners/config/mappers/JbrListenerMapper.java	2008-03-03 17:57:06 UTC (rev 18664)
@@ -62,6 +62,8 @@
         // Map the standard listener attributes - common across all listener types...
         MapperUtil.mapDefaultAttributes(listener, listenerNode, model);
         // Map the <property> elements targeted at the listener - from the listener itself.
+        MapperUtil.mapProperties(provider.getPropertyList(), listenerNode);
+        MapperUtil.mapProperties(bus.getPropertyList(), listenerNode);
         MapperUtil.mapProperties(listener.getPropertyList(), listenerNode);
 
         if(listener.getIsGateway()) {

Modified: labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/listeners/gateway/JBossRemotingGatewayListener.java
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/listeners/gateway/JBossRemotingGatewayListener.java	2008-03-03 17:07:31 UTC (rev 18663)
+++ labs/jbossesb/workspace/tfennelly_https/product/rosetta/src/org/jboss/soa/esb/listeners/gateway/JBossRemotingGatewayListener.java	2008-03-03 17:57:06 UTC (rev 18664)
@@ -368,9 +368,18 @@
      * @throws ConfigurationException Problem populating the configuration.
      */
     protected void initaliseJBRConnectorConfiguration(Map<String, String> connectorConfig) throws ConfigurationException {
+        String protocol = getJbrServerLocatorURI().getScheme();
+        boolean isHttps = protocol.equals("https");
+        boolean isSecure = (isHttps || protocol.equals("sslsocket"));
+
         // Initialse the JBR connector URI...
         jbrServerLocatorURI = getJbrServerLocatorURI().toString();
 
+        // Make sure the "SSLImplementation" attribute is set for https...
+        if(isHttps) {
+            connectorConfig.put("SSLImplementation", "org.jboss.remoting.transport.coyote.ssl.RemotingSSLImplementation");
+        }
+
         // Populate the connector config...
         List<KeyValuePair> attributes = getConfig().attributesAsList();
         for (KeyValuePair attribute : attributes) {
@@ -380,6 +389,10 @@
                 connectorConfig.put(attributeName.substring(JBR_PREFIX.length()), attribute.getValue());
             }
         }
+
+        if(isSecure && !connectorConfig.containsKey("serverSocketFactory")) {
+            logger.info("Secure endpoint '" + jbrServerLocatorURI + "' doesn't define a 'serverSocketFactory'.  Using Server defaults.  See JBossRemoting documentation.");
+        }
     }
 
     /**

Added: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/HttpRouter-localhost-https-9433.properties
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/HttpRouter-localhost-https-9433.properties	                        (rev 0)
+++ labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/HttpRouter-localhost-https-9433.properties	2008-03-03 17:57:06 UTC (rev 18664)
@@ -0,0 +1,11 @@
+# See: 
+# - http://wiki.jboss.org/wiki/Wiki.jsp?page=HttpRouter and
+# - http://wiki.jboss.org/wiki/Wiki.jsp?page=HttpClientFactory
+
+# Configurators
+configurators=HttpProtocol
+
+# HttpProtocol config...
+protocol-socket-factory=org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory
+keystore=@keystore@
+keystore-passw=https_2way_ssl_pass
\ No newline at end of file


Property changes on: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/HttpRouter-localhost-https-9433.properties
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/build.xml
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/build.xml	                        (rev 0)
+++ labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/build.xml	2008-03-03 17:57:06 UTC (rev 18664)
@@ -0,0 +1,49 @@
+<project name="quickstart_https_2way_ssl" default="deploy" basedir=".">
+
+    <property environment="env" />
+
+    <description>
+		${ant.project.name}
+		${line.separator}
+	</description>
+
+    <!-- Import the base Ant build script... -->
+	<import file="../conf/base-build.xml"/>
+
+    <target name="quickstart-specific-assemblies">
+        <pathconvert targetos="unix" property="keystoredir">
+            <path><pathelement location="${org.jboss.esb.server.home}"/></path>
+        </pathconvert>
+
+        <property name="keystore" value="${keystoredir}/https_2way_ssl.keystore" />
+
+        <delete file="${keystore}" failonerror="false"/>
+        <genkey keystore="${keystore}" storepass="https_2way_ssl_pass" keypass="https_2way_ssl_pass" keyalg="RSA" alias="https_2way_ssl">
+            <dname>
+                <param name="CN" value="localhost"/>
+                <param name="OU" value="jbossesb"/>
+                <param name="O" value="jbossesb"/>
+                <param name="C" value="IE"/>
+            </dname>
+        </genkey>
+
+        <copy file="jboss-esb-template.xml" tofile="build/META-INF/jboss-esb.xml">
+            <filterset>
+                <filter token="keystore" value="${keystore}" />
+            </filterset>
+        </copy>
+        <copy file="HttpRouter-localhost-https-9433.properties" todir="build/META-INF">
+            <filterset>
+                <filter token="keystore" value="${keystore}" />
+            </filterset>
+        </copy>
+    </target>
+
+    <target name="runtest" depends="compile" description="runs Test JMS Sender">
+        <echo>Runs Test JMS Sender</echo>
+        <java fork="yes" classname="org.jboss.soa.esb.samples.https.test.SendJMSMessage" failonerror="true">
+            <classpath refid="exec-classpath" />
+        </java>
+    </target>
+
+</project>


Property changes on: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/build.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/deployment.xml
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/deployment.xml	                        (rev 0)
+++ labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/deployment.xml	2008-03-03 17:57:06 UTC (rev 18664)
@@ -0,0 +1,4 @@
+<jbossesb-deployment>
+    <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_https_2way_ssl_esb</depends>
+    <!-- depends>jboss.remoting:service=ServerSocketFactory,type=SSL</depends -->
+</jbossesb-deployment>


Property changes on: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/deployment.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbm-queue-service.xml	                        (rev 0)
+++ labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbm-queue-service.xml	2008-03-03 17:57:06 UTC (rev 18664)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+    <mbean code="org.jboss.jms.server.destination.QueueService"
+           name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_https_2way_ssl_esb_runtest_gw"
+           xmbean-dd="xmdesc/Queue-xmbean.xml">
+        <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+        <depends>jboss.messaging:service=PostOffice</depends>
+    </mbean>
+    <mbean code="org.jboss.jms.server.destination.QueueService"
+           name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_https_2way_ssl_esb_runtest_esb"
+           xmbean-dd="xmdesc/Queue-xmbean.xml">
+        <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+        <depends>jboss.messaging:service=PostOffice</depends>
+    </mbean>
+
+    <mbean code="org.jboss.jms.server.destination.QueueService"
+           name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_https_2way_ssl_esb"
+           xmbean-dd="xmdesc/Queue-xmbean.xml">
+        <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+        <depends>jboss.messaging:service=PostOffice</depends>
+    </mbean>
+    <mbean code="org.jboss.jms.server.destination.QueueService"
+           name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_https_2way_ssl_esb_reply"
+           xmbean-dd="xmdesc/Queue-xmbean.xml">
+        <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+        <depends>jboss.messaging:service=PostOffice</depends>
+    </mbean>
+</server>


Property changes on: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbm-queue-service.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbmq-queue-service.xml
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbmq-queue-service.xml	                        (rev 0)
+++ labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbmq-queue-service.xml	2008-03-03 17:57:06 UTC (rev 18664)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+    <mbean code="org.jboss.mq.server.jmx.Queue"
+           name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_https_2way_ssl_esb_runtest_gw">
+        <depends optional-attribute-name="DestinationManager">
+            jboss.mq:service=DestinationManager
+        </depends>
+    </mbean>
+    <mbean code="org.jboss.mq.server.jmx.Queue"
+           name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_https_2way_ssl_esb_runtest_esb">
+        <depends optional-attribute-name="DestinationManager">
+            jboss.mq:service=DestinationManager
+        </depends>
+    </mbean>
+
+    <mbean code="org.jboss.mq.server.jmx.Queue"
+           name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_https_2way_ssl_esb">
+        <depends optional-attribute-name="DestinationManager">
+            jboss.mq:service=DestinationManager
+        </depends>
+    </mbean>
+    <mbean code="org.jboss.mq.server.jmx.Queue"
+           name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_https_2way_ssl_esb_reply">
+        <depends optional-attribute-name="DestinationManager">
+            jboss.mq:service=DestinationManager
+        </depends>
+    </mbean>
+</server>


Property changes on: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbmq-queue-service.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jboss-esb-template.xml
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jboss-esb-template.xml	                        (rev 0)
+++ labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jboss-esb-template.xml	2008-03-03 17:57:06 UTC (rev 18664)
@@ -0,0 +1,74 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb
+        xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"
+        parameterReloadSecs="5">
+
+    <providers>
+        <jms-provider name="JBossMQ" connection-factory="ConnectionFactory" jndi-context-factory="org.jnp.interfaces.NamingContextFactory" jndi-URL="localhost">
+            <jms-bus busid="runtestGateway">
+                <jms-message-filter dest-type="QUEUE" dest-name="queue/quickstart_https_2way_ssl_esb_runtest_gw" />
+            </jms-bus>
+            <jms-bus busid="runtestChannel">
+                <jms-message-filter dest-type="QUEUE" dest-name="queue/quickstart_https_2way_ssl_esb_runtest_esb" />
+            </jms-bus>
+            <jms-bus busid="httpsServerChannel">
+                <jms-message-filter dest-type="QUEUE" dest-name="queue/quickstart_https_2way_ssl_esb" />
+            </jms-bus>
+        </jms-provider>
+
+        <jbr-provider name="https_2way" protocol="https" host="localhost">
+            <!-- Https/SSL settings -->
+            <property name="jbr-serverSocketFactory" value="jboss.remoting:service=ServerSocketFactory,type=SSL" />
+            <property name="jbr-org.jboss.remoting.keyStore" value="@keystore@" />
+            <property name="jbr-org.jboss.remoting.keyStorePassword" value="https_2way_ssl_pass" />
+
+            <jbr-bus busid="https_2way" port="9443"/>
+        </jbr-provider>
+        
+    </providers>
+
+    <services>
+
+        <service category="Https QS Category" name="RuntestService" description="HTTPS Gateway example - runtest">
+
+            <listeners>
+                <jms-listener name="gateway" busidref="runtestGateway" is-gateway="true" />
+                <jms-listener name="esbaware" busidref="runtestChannel" />
+            </listeners>
+            <actions>
+                <!--
+                Route the payload to the https gateway of the other service using the HttpRouter...
+                -->
+                <action name="httprouter" class="org.jboss.soa.esb.actions.routing.http.HttpRouter">
+                    <property name="endpointUrl" value="https://localhost:9443">
+                        <http-client-property name="file" value="/META-INF/HttpRouter-localhost-https-9433.properties" />
+                    </property>
+                    <property name="method" value="GET" /> <!-- Currently only supports GET or POST - easy to add more! -->
+                    <property name="responseType" value="STRING" /> <!-- Response should be set back on message as STRING or BYTES - default STRING -->
+                    <property name="headers">
+                        <header name="blah" value="blahval" />
+                    </property>
+                </action>
+
+                <action name="printResponse" class="org.jboss.soa.esb.actions.SystemPrintln">
+                    <property name="message" value="Https Response:" />
+                </action>
+            </actions>
+
+        </service>
+
+        <service category="Https QS Category" name="MyHTTPSService" description="HTTPS Gateway example">
+
+            <listeners>
+                <jbr-listener name="https_2way" busidref="https_2way" is-gateway="true"/>
+                <jms-listener name="esbaware" busidref="httpsServerChannel" />
+            </listeners>
+            <actions>
+                <action name="printMessage" class="org.jboss.soa.esb.samples.https.HttpResponsePrinter"/>
+            </actions>
+
+        </service>
+
+    </services>
+
+</jbossesb>


Property changes on: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jboss-esb-template.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbossesb-service.xml
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbossesb-service.xml	                        (rev 0)
+++ labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbossesb-service.xml	2008-03-03 17:57:06 UTC (rev 18664)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+
+    <mbean code="org.jboss.remoting.security.SSLSocketBuilder" name="jboss.remoting:service=SocketBuilder,type=SSL" display-name="SSL Server Socket Factory Builder">
+       <!-- IMPORTANT - If making ANY customizations, this MUST be set to false. -->
+       <!-- Otherwise, will used default settings and the following attributes will be ignored. -->
+       <attribute name="UseSSLServerSocketFactory">false</attribute>
+       <!-- This is the url string to the key store to use -->
+       <attribute name="KeyStoreURL">${jboss.home.dir}/https_2way_ssl.keystore</attribute>
+       <!-- The password for the key store -->
+       <attribute name="KeyStorePassword">https_2way_ssl_pass</attribute>
+       <!-- The password for the keys (will use KeystorePassword if this is not set explicitly. -->
+       <attribute name="KeyPassword">https_2way_ssl_pass</attribute>
+    </mbean>
+
+    <mbean code="org.jboss.remoting.security.SSLServerSocketFactoryService" name="jboss.remoting:service=ServerSocketFactory,type=SSL" display-name="SSL Server Socket Factory">
+       <depends optional-attribute-name="SSLSocketBuilder" proxy-type="attribute">jboss.remoting:service=SocketBuilder,type=SSL</depends>
+    </mbean>
+
+</server>
\ No newline at end of file


Property changes on: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jbossesb-service.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jndi.properties
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jndi.properties	                        (rev 0)
+++ labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jndi.properties	2008-03-03 17:57:06 UTC (rev 18664)
@@ -0,0 +1,5 @@
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+java.naming.factory.url.pkgs=org.jnp.interfaces
+


Property changes on: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/jndi.properties
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/readme.txt
===================================================================

Added: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/https/HttpResponsePrinter.java
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/https/HttpResponsePrinter.java	                        (rev 0)
+++ labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/https/HttpResponsePrinter.java	2008-03-03 17:57:06 UTC (rev 18664)
@@ -0,0 +1,43 @@
+/*
+	Milyn - Copyright (C) 2006
+
+	This library is free software; you can redistribute it and/or
+	modify it under the terms of the GNU Lesser General Public
+	License (version 2.1) as published by the Free Software
+	Foundation.
+
+	This library 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:
+	http://www.gnu.org/licenses/lgpl.txt
+*/
+package org.jboss.soa.esb.samples.https;
+
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+
+/**
+ * @autour <a href="mailto:tom.fennelly at gmail.com">tom.fennelly at gmail.com</a>
+ */
+public class HttpResponsePrinter extends AbstractActionLifecycle {
+
+    protected ConfigTree _config;
+
+    public HttpResponsePrinter(ConfigTree config) {
+        _config = config;
+    }
+
+
+    public Message process(Message message) throws Exception {
+
+        StringBuffer response = new StringBuffer();
+
+        response.append("Hi there!!\n");
+        message.getBody().add(response.toString());
+
+        return message;
+    }
+}
\ No newline at end of file


Property changes on: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/https/HttpResponsePrinter.java
___________________________________________________________________
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/https/test/SendJMSMessage.java
===================================================================
--- labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/https/test/SendJMSMessage.java	                        (rev 0)
+++ labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/https/test/SendJMSMessage.java	2008-03-03 17:57:06 UTC (rev 18664)
@@ -0,0 +1,84 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * 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,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.https.test;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+
+import javax.jms.JMSException;
+import javax.jms.ObjectMessage;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+import org.jboss.soa.esb.util.FileUtil;
+
+public class SendJMSMessage {
+    QueueConnection conn;
+    QueueSession session;
+    Queue que;
+
+
+    public void setupConnection() throws JMSException, NamingException
+    {
+    	InitialContext iniCtx = new InitialContext();
+    	Object tmp = iniCtx.lookup("ConnectionFactory");
+    	QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
+    	conn = qcf.createQueueConnection();
+    	que = (Queue) iniCtx.lookup("queue/quickstart_https_2way_ssl_esb_runtest_gw");
+    	session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+    	conn.start();
+    	System.out.println("Connection Started");
+    }
+
+    public void stop() throws JMSException
+    {
+        conn.stop();
+        session.close();
+        conn.close();
+    }
+
+    public void sendAMessage() throws JMSException, FileNotFoundException, IOException {
+
+        QueueSender send = session.createSender(que);
+        ObjectMessage tm;
+        String message = "Hi there!";
+
+        tm = session.createObjectMessage(message);
+        tm.setStringProperty("jbesbfilename", "httprouter.log");
+        send.send(tm);
+        send.close();
+    }
+
+    public static void main(String args[]) throws Exception
+    {
+    	SendJMSMessage sm = new SendJMSMessage();
+    	sm.setupConnection();
+    	sm.sendAMessage();
+    	sm.stop();
+    }
+
+}
\ No newline at end of file


Property changes on: labs/jbossesb/workspace/tfennelly_https/product/samples/quickstarts/https_2way_ssl/src/org/jboss/soa/esb/samples/https/test/SendJMSMessage.java
___________________________________________________________________
Name: svn:eol-style
   + native




More information about the jboss-svn-commits mailing list