Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #545 from andytaylor/master

example readme fix
  • Loading branch information...
commit e0427441d2254a2ecd2e08ca93d32f67e7d38117 2 parents a5b64bc + 2d3d6cb
Francisco Borges FranciscoBorges authored
13 examples/javaee/hajndi/build.bat
... ... @@ -1,13 +0,0 @@
1   -@echo off
2   -
3   -set "OVERRIDE_ANT_HOME=..\..\..\tools\ant"
4   -
5   -if exist "..\..\..\src\bin\build.bat" (
6   - rem running from TRUNK
7   - call ..\..\..\src\bin\build.bat %*
8   -) else (
9   - rem running from the distro
10   - call ..\..\..\bin\build.bat %*
11   -)
12   -
13   -set "OVERRIDE_ANT_HOME="
15 examples/javaee/hajndi/build.sh
... ... @@ -1,15 +0,0 @@
1   -#!/bin/sh
2   -
3   -OVERRIDE_ANT_HOME=../../tools/ant
4   -export OVERRIDE_ANT_HOME
5   -
6   -if [ -f "../../../src/bin/build.sh" ]; then
7   - # running from TRUNK
8   - ../../../src/bin/build.sh "$@"
9   -else
10   - # running from the distro
11   - ../../bin/build.sh "$@"
12   -fi
13   -
14   -
15   -
50 examples/javaee/hajndi/build.xml
... ... @@ -1,50 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<!--
3   - ~ Copyright 2009 Red Hat, Inc.
4   - ~ Red Hat licenses this file to you under the Apache License, version
5   - ~ 2.0 (the "License"); you may not use this file except in compliance
6   - ~ with the License. You may obtain a copy of the License at
7   - ~ http://www.apache.org/licenses/LICENSE-2.0
8   - ~ Unless required by applicable law or agreed to in writing, software
9   - ~ distributed under the License is distributed on an "AS IS" BASIS,
10   - ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11   - ~ implied. See the License for the specific language governing
12   - ~ permissions and limitations under the License.
13   - -->
14   -<project default="run" name="HornetQ Java HAJNDI Example">
15   -
16   - <import file="../common/build.xml"/>
17   -
18   - <target name="deploy">
19   - <property name="deploy.dir" value="${jboss.home}/server/all-with-hornetq/deploy/" />
20   - <property name="deploy.dir2" value="${jboss.home}/server/all-with-hornetq_2/deploy/" />
21   -
22   - <!-- copy 1st server resources configuration -->
23   - <copy file="${example.config.dir}/hornetq-queues.xml" todir="${deploy.dir}/hornetq.sar/" overwrite="yes"/>
24   - <copy file="${example.config.dir}/hornetq-jms.xml" todir="${deploy.dir}/hornetq.sar/" overwrite="yes"/>
25   -
26   - <!-- copy 2nd server resources configuration -->
27   - <copy file="${example.config.dir}/hornetq-queues.xml" todir="${deploy.dir2}/hornetq.sar/" overwrite="yes"/>
28   - <copy file="${example.config.dir}/hornetq-jms.xml" todir="${deploy.dir2}/hornetq.sar/" overwrite="yes"/>
29   - </target>
30   -
31   - <target name="undeploy">
32   - <property name="deploy.dir" value="${jboss.home}/server/all-with-hornetq/deploy/" />
33   - <property name="deploy.dir2" value="${jboss.home}/server/all-with-hornetq_2/deploy/" />
34   -
35   - <!-- delete 1st server resources configuration -->
36   - <delete file="${deploy.dir}/hornetq.sar/hornetq-queues.xml" failonerror="false"/>
37   - <delete file="${deploy.dir}/hornetq.sar/hornetq-jms.xml" failonerror="false"/>
38   -
39   - <!-- delete 2nd server resources configuration -->
40   - <delete file="${deploy.dir2}/hornetq.sar/hornetq-queues.xml" failonerror="false"/>
41   - <delete file="${deploy.dir2}/hornetq.sar/hornetq-jms.xml" failonerror="false"/>
42   - </target>
43   -
44   - <target name="run">
45   - <antcall target="runExample">
46   - <param name="example.classname" value="org.hornetq.javaee.example.HAJNDIExample"/>
47   - </antcall>
48   - </target>
49   -
50   -</project>
27 examples/javaee/hajndi/config/META-INF/application.xml
... ... @@ -1,27 +0,0 @@
1   -<!--
2   - ~ Copyright 2009 Red Hat, Inc.
3   - ~ Red Hat licenses this file to you under the Apache License, version
4   - ~ 2.0 (the "License"); you may not use this file except in compliance
5   - ~ with the License. You may obtain a copy of the License at
6   - ~ http://www.apache.org/licenses/LICENSE-2.0
7   - ~ Unless required by applicable law or agreed to in writing, software
8   - ~ distributed under the License is distributed on an "AS IS" BASIS,
9   - ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10   - ~ implied. See the License for the specific language governing
11   - ~ permissions and limitations under the License.
12   - -->
13   -<application>
14   - <display-name>My Application</display-name>
15   -
16   - <module>
17   - <web>
18   - <web-uri>hajndi-example.war</web-uri>
19   - <context-root>/hornetq</context-root>
20   - </web>
21   - </module>
22   - <module>
23   - <java>hajndi-example.jar</java>
24   - </module>
25   -
26   -
27   -</application>
14 examples/javaee/hajndi/config/hornetq-jms.xml
... ... @@ -1,14 +0,0 @@
1   -<configuration xmlns="urn:hornetq"
2   - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3   - xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
4   -
5   - <connection-factory name="ConnectionFactory">
6   - <connectors>
7   - <connector-ref connector-name="netty-connector"/>
8   - </connectors>
9   - <entries>
10   - <entry name="ConnectionFactory"/>
11   - <entry name="XAConnectionFactory"/>
12   - </entries>
13   - </connection-factory>
14   -</configuration>
24 examples/javaee/hajndi/config/hornetq-queues.xml
... ... @@ -1,24 +0,0 @@
1   -<configuration xmlns="urn:hornetq"
2   - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3   - xsi:schemaLocation="urn:hornetq ../../../../src/schemas/hornetq-configuration.xsd ">
4   -
5   - <security-settings>
6   - <security-setting match="jms.queue.testQueue">
7   - <permission type="consume" roles="guest,publisher"/>
8   - <permission type="send" roles="guest,publisher"/>
9   - </security-setting>
10   - </security-settings>
11   -
12   - <address-settings>
13   - <!--default for catch all-->
14   - <address-setting match="#">
15   - <dead-letter-address>jms.queue.DLQ</dead-letter-address>
16   - <expiry-address>jms.queue.ExpiryQueue</expiry-address>
17   - <redelivery-delay>0</redelivery-delay>
18   - <max-size-bytes>-1</max-size-bytes>
19   - <page-size-bytes>10485760</page-size-bytes>
20   - <message-counter-history-day-limit>10</message-counter-history-day-limit>
21   - </address-setting>
22   - </address-settings>
23   -
24   -</configuration>
98 examples/javaee/hajndi/readme.html
... ... @@ -1,98 +0,0 @@
1   -<html>
2   - <head>
3   - <title>HornetQ Java EE HA-JNDI Example</title>
4   - <link rel="stylesheet" type="text/css" href="../../common/common.css" />
5   - <link rel="stylesheet" type="text/css" href="../../common/prettify.css" />
6   - <script type="text/javascript" src="../../common/prettify.js"></script>
7   - </head>
8   - <body onload="prettyPrint()">
9   - <h1>Java EE HA-JNDI Example</h1>
10   -
11   - <p>This example demonstrates the use of High Availability JNDI (HA-JNDI) to lookup HornetQ
12   - JMS Connection Factories, Queues and Topics.</p>
13   - <p>With normal JNDI you need to configure the client with the specific connection parameters
14   - (i.e. host and port) of the JNDI server from which you want to perform look-ups.</p>
15   - <p>This means if that server crashes, or is not available you won't be able to perform lookups.</p>
16   - <p>One solution would be for the client to maintain the connection params of all JNDI servers
17   - in the cluster, but this is not practical.</p>
18   - <p>With HA-JNDI the client can be simplify configured with UDP address parameters and can transparently
19   - perform JNDI lookups without having to worry about a particular server being unavailable.</p>
20   - <p>HA-JNDI is a service of JBoss Application Server and is not available by default when running against
21   - a stand-alone HornetQ instance.</p>
22   - <p>An alternative approach is to avoid JNDI together and directly instantiate JMS Connection Factory,
23   - Queue and Topic instances on the client side. HornetQ Connection Factory instances can
24   - also be configured to use UDP discovery so the specific details of the available servers are
25   - not required on the client side.</p>
26   - <p>For more information on instantiating Connection Factory objects directly please see the user
27   - manual and the <i>Instantiate Connection Factory</i> example.</p>
28   - <p>For more information on HA-JNDI, please consult the <a href="http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Clustering_Guide/5/html/clustering-jndi.html">JBoss Application Server Clustering Documentation</a>.</p>
29   - <p>This example demonstrates a simple symmetric clustering configuration, and failover on JNDI (HAJNDI).</p>
30   -
31   - <h2>Example configuration</h2>
32   -
33   - <p>To run the example, you need to download JBoss AS 5.x and create a clustered configuration for HornetQ.</p>
34   -
35   - <p>Please refer to HornetQ Quickstart guide to <a href="../../../docs/quickstart-guide/en/html_single/index.html#installation.jboss">install it in JBoss AS 5<a></p>
36   -
37   - <p>To run this example, we will need two clustered profiles, one for each server instance:</li>
38   - <li>Copy the directory <code>$JBOSS_HOME/server/all-with-hornetq</code> to <code>$JBOSS_HOME/server/all-with-hornetq_2</code></li>
39   - <li>Start the first server with <code>./run.sh -c all-with-hornetq</code></li>
40   - <li>Start the second server with <code>./run.sh -c all-with-hornetq_2 -Djboss.service.binding.set=ports-01</code></li>
41   - </ol>
42   - <h2>Example step by step</h2>
43   - <ol>
44   - <li>Create a JNDI Context using HAJNDI Properties.
45   - <p>This JNDI is performing auto-discovery of the servers, by using the default UDP properties.</p>
46   - <p>You will find more information about these properties at the </p>
47   - </li>
48   - <pre class="prettyprint">
49   - Hashtable jndiParameters = new Hashtable();
50   - jndiParameters.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
51   - jndiParameters.put("java.naming.factory.url.pkgs=", "org.jboss.naming:org.jnp.interfaces");
52   -
53   - initialContext = new InitialContext(jndiParameters);
54   - </pre>
55   -
56   -
57   - <li>Perform lookups in a loop. As long as you have at least one server alive, these lookups will still work fine
58   - <pre class="prettyprint">
59   - for (int i = 0; i &lt; 100; i++)
60   - {
61   - ConnectionFactory cf = (ConnectionFactory) initialContext.lookup("/ConnectionFactory");
62   - </pre>
63   - </li>
64   -
65   - <li>Create and close a JMS Connection, just to show the downloaded Connection Factory is working
66   - <pre class="prettyprint">
67   - connection = cf.createConnection();
68   - connection.close();
69   - </pre>
70   - </li>
71   -
72   -
73   - <li>As the example sleeps here, use this time to kill one of the servers. You will realise that lookups will still work as long as you have a live server
74   -
75   - <pre class="prettyprint">
76   - System.out.println("Connection " + i + " was created and closed. If you kill any of the servers now, the lookup operation on Step 2 will still work fine");
77   - Thread.sleep(5000);
78   - </pre>
79   - </li>
80   -
81   - <li>And finally, <b>always</b> remember to close your JMS connections and resources after use, in a <code>finally</code> block. Closing a JMS connection will automatically close all of its sessions, consumers, producer and browser objects</li>
82   -
83   - <pre class="prettyprint">
84   - finally
85   - {
86   - if (initialContext != null)
87   - {
88   - initialContext.close();
89   - }
90   - if (connection != null)
91   - {
92   - connection.close();
93   - }
94   - }
95   - </pre>
96   - </ol>
97   - </body>
98   -</html>
80 examples/javaee/hajndi/src/org/hornetq/javaee/example/HAJNDIExample.java
... ... @@ -1,80 +0,0 @@
1   -/*
2   - * Copyright 2009 Red Hat, Inc.
3   - * Red Hat licenses this file to you under the Apache License, version
4   - * 2.0 (the "License"); you may not use this file except in compliance
5   - * with the License. You may obtain a copy of the License at
6   - * http://www.apache.org/licenses/LICENSE-2.0
7   - * Unless required by applicable law or agreed to in writing, software
8   - * distributed under the License is distributed on an "AS IS" BASIS,
9   - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10   - * implied. See the License for the specific language governing
11   - * permissions and limitations under the License.
12   - */
13   -package org.hornetq.javaee.example;
14   -
15   -import java.util.Hashtable;
16   -
17   -import javax.jms.Connection;
18   -import javax.jms.ConnectionFactory;
19   -import javax.naming.InitialContext;
20   -
21   -/**
22   - *
23   - * This example demonstrates the use of HA-JNDI to look-up JMS Connection Factories from JNDI.
24   - *
25   - * For more information please see the readme.html file.
26   - *
27   - * @author <a href="mailto:csuconic@jboss.org">Clebert Suconic</a>
28   - */
29   -public class HAJNDIExample
30   -{
31   - public static void main(final String[] args) throws Exception
32   - {
33   - Connection connection = null;
34   - InitialContext initialContext = null;
35   -
36   - try
37   - {
38   - // Step 1. Create an initial context to perform the JNDI lookup.
39   - // This JNDI is performing auto-discovery of the servers, by using the default UDP properties.
40   - // You will find more information at the JBoss Application Server Documentation:
41   - // http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Clustering_Guide/5/html/clustering-jndi.html
42   -
43   - Hashtable<String, String> jndiParameters = new Hashtable<String, String>();
44   - jndiParameters.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
45   - jndiParameters.put("java.naming.factory.url.pkgs=", "org.jboss.naming:org.jnp.interfaces");
46   -
47   - initialContext = new InitialContext(jndiParameters);
48   -
49   - for (int i = 0; i < 100; i++)
50   - {
51   - // Step 2. Perform a lookup on the Connection Factory
52   - ConnectionFactory cf = (ConnectionFactory)initialContext.lookup("/ConnectionFactory");
53   -
54   - // Step 3. Create a JMS Connection
55   - connection = cf.createConnection();
56   - connection.close();
57   -
58   - // Step 4. Kill any of the servers. The Lookups will still be performed ok as long as you keep at least one
59   - // server alive.
60   - System.out.println("Connection " + i +
61   - " was created. If you kill any of the servers now, the lookup operation on Step 2 will still work fine");
62   - Thread.sleep(5000);
63   - }
64   -
65   - System.out.println("Done");
66   - }
67   - finally
68   - {
69   - // Step 5. Be sure to close our JMS resources!
70   - if (initialContext != null)
71   - {
72   - initialContext.close();
73   - }
74   - if (connection != null)
75   - {
76   - connection.close();
77   - }
78   - }
79   - }
80   -}
12 examples/javaee/jca-config/readme.html
@@ -133,15 +133,13 @@
133 133
134 134 <p>You may choose to deploy multiple HornetQ resource adapters on the same application server, for example if you are connecting to different HornetQ servers and if you wish to have a higher control of properties on each server you are connecting to. You will be able to determine which rar you are using individually at each <i>MDB</i> and <i>ConnectionFactory</i> as specified before here. Just copy the directory jms-ra.rar in your application as any other name with the extension .rar and use that file name at your deployments.</p>
135 135
136   - <p>Please refer to HornetQ Quickstart guide to <a href="../../../docs/quickstart-guide/en/html_single/index.html#installation.jboss">install it in JBoss AS 5<a></p>
  136 + <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
137 137
138   -
139 138 <h2>Example step-by-step</h2>
140   - <p><i>To deploy and start the first server, simply type <code>./build.sh deploy</code> (or <code>build.bat deploy</code> on windows) from the example directory</i></p>
141   - <p><i>After the first server has started start the second server, simply type <code>./build.sh deploy2</code> (or <code>build.bat deploy2</code> on windows) from the example directory</i></p>
142   - <p><i>To run the example, simply type <code>./build.sh run</code> (or <code>build.bat run</code> on windows) from the example directory</i></p>
143   - <p><i>To undeploy the example, simply type <code>./build.sh undeploy undeploy2</code> (or <code>build.bat undeploy undeploy2</code> on windows) from the example directory</i></p>
144   - <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
  139 + <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
  140 + <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
  141 + <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
  142 +
145 143
146 144 <ol>
147 145 <li>First we need to get an initial context so we can look-up the EJB on the second server from JNDI. This initial context will get it's properties from the <code>jndi.properties</code> file in the directory <code>config</code></li>
11 examples/javaee/mdb-bmt/readme.html
@@ -13,15 +13,12 @@
13 13 The example will send deploy a simple MDB and demonstrate sending a message and the MDB consuming it
14 14 </p>
15 15
16   - <h2>JBoss AS configuration</h2>
17   -
18   - <p>Please refer to HornetQ Quickstart guide to <a href="../../../docs/quickstart-guide/en/html_single/index.html#installation.jboss">install it in JBoss AS 5<a></p>
  16 + <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
19 17
20 18 <h2>Example step-by-step</h2>
21   - <p><i>To deploy and start the server, simply type <code>./build.sh deploy</code> (or <code>build.bat deploy</code> on windows) from the example directory</i></p>
22   - <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
23   - <p><i>To remove the example profile, simply type <code>./build.sh undeploy</code> (or <code>build.bat undeploy</code> on windows) from the example directory</i></p>
24   - <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
  19 + <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
  20 + <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
  21 + <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
25 22
26 23 <ol>
27 24 <li>First we need to get an initial context so we can look-up the JMS connection factory and destination objects from JNDI. This initial context will get it's properties from the <code>jndi.properties</code> file in the directory <code>config</code></li>
16 examples/javaee/mdb-cmt-setrollbackonly/readme.html
@@ -13,15 +13,13 @@
13 13 The example will send deploy a simple MDB and demonstrate sending a message and the MDB consuming it twice
14 14 </p>
15 15
16   - <h2>JBoss AS configuration</h2>
17   -
18   - <p>Please refer to HornetQ Quickstart guide to <a href="../../../docs/quickstart-guide/en/html_single/index.html#installation.jboss">install it in JBoss AS 5<a></p>
19   -
20   - <h2>Example step-by-step</h2>
21   - <p><i>To deploy and start the server, simply type <code>./build.sh deploy</code> (or <code>build.bat deploy</code> on windows) from the example directory</i></p>
22   - <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
23   - <p><i>To remove the example profile, simply type <code>./build.sh undeploy</code> (or <code>build.bat undeploy</code> on windows) from the example directory</i></p>
24   - <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
  16 + <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
  17 +
  18 + <h2>Example step-by-step</h2>
  19 + <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
  20 + <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
  21 + <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
  22 +
25 23
26 24 <ol>
27 25 <li>First we need to get an initial context so we can look-up the JMS connection factory and destination objects from JNDI. This initial context will get it's properties from the <code>jndi.properties</code> file in the directory <code>config</code></li>
14 examples/javaee/mdb-cmt-tx-local/readme.html
@@ -13,15 +13,13 @@
13 13 The example will send deploy a simple MDB and demonstrate sending a message and the MDB consuming it, throwing an exception and the message being re delivered.
14 14 </p>
15 15
16   - <h2>JBoss AS configuration</h2>
17   -
18   - <p>Please refer to HornetQ Quickstart guide to <a href="../../../docs/quickstart-guide/en/html_single/index.html#installation.jboss">install it in JBoss AS 5<a></p>
19   -
  16 + <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
  17 +
20 18 <h2>Example step-by-step</h2>
21   - <p><i>To deploy and start the server, simply type <code>./build.sh deploy</code> (or <code>build.bat deploy</code> on windows) from the example directory</i></p>
22   - <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
23   - <p><i>To remove the example profile, simply type <code>./build.sh undeploy</code> (or <code>build.bat undeploy</code> on windows) from the example directory</i></p>
24   - <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
  19 + <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
  20 + <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
  21 + <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
  22 +
25 23
26 24 <ol>
27 25 <li>First we need to get an initial context so we can look-up the JMS connection factory and destination objects from JNDI. This initial context will get it's properties from the <code>jndi.properties</code> file in the directory <code>config</code></li>
13 examples/javaee/mdb-cmt-tx-not-supported/readme.html
@@ -14,15 +14,12 @@
14 14 using a transaction as this MDB does not support them.
15 15 </p>
16 16
17   - <h2>JBoss AS configuration</h2>
18   -
19   - <p>Please refer to HornetQ Quickstart guide to <a href="../../../docs/quickstart-guide/en/html_single/index.html#installation.jboss">install it in JBoss AS 5<a></p>
20   -
  17 + <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
  18 +
21 19 <h2>Example step-by-step</h2>
22   - <p><i>To deploy and start the server, simply type <code>./build.sh deploy</code> (or <code>build.bat deploy</code> on windows) from the example directory</i></p>
23   - <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
24   - <p><i>To remove the example profile, simply type <code>./build.sh undeploy</code> (or <code>build.bat undeploy</code> on windows) from the example directory</i></p>
25   - <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
  20 + <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
  21 + <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
  22 + <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
26 23
27 24 <ol>
28 25 <li>First we need to get an initial context so we can look-up the JMS connection factory and destination objects from JNDI. This initial context will get it's properties from the <code>jndi.properties</code> file in the directory <code>config</code></li>
11 examples/javaee/mdb-cmt-tx-required/readme.html
@@ -15,13 +15,12 @@
15 15
16 16 <h2>JBoss AS configuration</h2>
17 17
18   - <p>Please refer to HornetQ Quickstart guide to <a href="../../../docs/quickstart-guide/en/html_single/index.html#installation.jboss">install it in JBoss AS 5<a></p>
19   -
  18 + <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
  19 +
20 20 <h2>Example step-by-step</h2>
21   - <p><i>To deploy and start the server, simply type <code>./build.sh deploy</code> (or <code>build.bat deploy</code> on windows) from the example directory</i></p>
22   - <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
23   - <p><i>To remove the example profile, simply type <code>./build.sh undeploy</code> (or <code>build.bat undeploy</code> on windows) from the example directory</i></p>
24   - <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
  21 + <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
  22 + <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
  23 + <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
25 24
26 25 <ol>
27 26 <li>First we need to get an initial context so we can look-up the JMS connection factory and destination objects from JNDI. This initial context will get it's properties from the <code>jndi.properties</code> file in the directory <code>config</code></li>
14 examples/javaee/mdb-message-selector/readme.html
@@ -13,15 +13,13 @@
13 13 The example will send deploy a simple MDB and demonstrate sending a message and the MDB consuming only the message that matches the message selector.
14 14 </p>
15 15
16   - <h2>JBoss AS configuration</h2>
17   -
18   - <p>Please refer to HornetQ Quickstart guide to <a href="../../../docs/quickstart-guide/en/html_single/index.html#installation.jboss">install it in JBoss AS 5<a></p>
19   -
  16 + <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
  17 +
20 18 <h2>Example step-by-step</h2>
21   - <p><i>To deploy and start the server, simply type <code>./build.sh deploy</code> (or <code>build.bat deploy</code> on windows) from the example directory</i></p>
22   - <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
23   - <p><i>To remove the example profile, simply type <code>./build.sh undeploy</code> (or <code>build.bat undeploy</code> on windows) from the example directory</i></p>
24   - <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
  19 + <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
  20 + <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
  21 + <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
  22 +
25 23
26 24 <ol>
27 25 <li>First we need to get an initial context so we can look-up the JMS connection factory and destination objects from JNDI. This initial context will get it's properties from the <code>jndi.properties</code> file in the directory <code>config</code></li>
11 examples/javaee/mdb-tx-send/readme.html
@@ -15,13 +15,12 @@
15 15
16 16 <h2>JBoss AS configuration</h2>
17 17
18   - <p>Please refer to HornetQ Quickstart guide to <a href="../../../docs/quickstart-guide/en/html_single/index.html#installation.jboss">install it in JBoss AS 5<a></p>
19   -
  18 + <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
  19 +
20 20 <h2>Example step-by-step</h2>
21   - <p><i>To deploy and start the server, simply type <code>./build.sh deploy</code> (or <code>build.bat deploy</code> on windows) from the example directory</i></p>
22   - <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
23   - <p><i>To remove the example profile, simply type <code>./build.sh undeploy</code> (or <code>build.bat undeploy</code> on windows) from the example directory</i></p>
24   - <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
  21 + <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
  22 + <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
  23 + <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
25 24
26 25 <ol>
27 26 <li>First we need to get an initial context so we can look-up the JMS connection factory and destination objects from JNDI. This initial context will get it's properties from the <code>jndi.properties</code> file in the directory <code>config</code></li>
2  examples/javaee/pom.xml
@@ -24,7 +24,7 @@
24 24 <jboss.home>${env.JBOSS_HOME}</jboss.home>
25 25
26 26 <!-- Note this must be consistent with the version in AS7 -->
27   - <hornetq.client.version>2.2.16.Final</hornetq.client.version>
  27 + <hornetq.client.version>2.2.13.Final</hornetq.client.version>
28 28
29 29 </properties>
30 30
11 examples/javaee/servlet-ssl/readme.html
@@ -16,15 +16,12 @@
16 16
17 17 <h2>Example Configuration</h2>
18 18
19   - <p>In the configuration, the hornetq.example.keystore is the key store file holding client certificate. The hornetq.example.truststore
20   - is the file for server to hold trusted client certificates. They are pre-generated for illustration purpose<a id="fnr1" href="readme.html#fn1"><sup>1</sup></a>.</p>
21   -
  19 + <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
22 20
23 21 <h2>Example step-by-step</h2>
24   - <p><em>To deploy and start the server, type simply type <code>./build.sh deploy</code> (or <code>build.bat deploy</code> on windows)from the example directory</br >
25   - Once the server has started type simply type <code>./build.sh run</code> (or <code>build.bat run</code> on windows) to run the example.<br />
26   - To remove the new profile type simply type <code>./build.sh undeploy</code> (or <code>build.bat undeploy</code> on windows).</em></p>
27   -
  22 + <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
  23 + <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
  24 + <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
28 25
29 26 <ol>
30 27 <li>First we need to get an initial context so we can look-up the JMS connection factory and destination objects from JNDI. This initial context will get it's properties from the <code>jndi.properties</code> file in the directory <code>config</code></li>
43 examples/jms/clustered-jgroups/readme.html
@@ -15,37 +15,32 @@
15 15 in a round-robin fashion.</p>
16 16 <p>This example uses JNDI to lookup the JMS Queue and ConnectionFactory objects. If you prefer not to use
17 17 JNDI, these could be instantiated directly.</p>
18   - <p>To enable HornetQ to use JGroups in its broadcasting and discovery, first you need to implement the
19   - org.hornetq.core.cluster.BroadcastEndpoint interface. Then you need to define it in the server configuration
20   - file. For details please read the user's manual.</p>
21   - <p>Here's the relevant snippet from the server configuration defining a JGroupsBroadcastEndpoint.</p>
  18 + <p>To enable HornetQ to use JGroups you need to configure JGroups configuration file and make sure it is on the classpath
  19 + by placing in the configuration directory, the file test-jgroups-file_ping.xml is the configuration used in this
  20 + exaample</p>
  21 + <p>You then configure the jgroups file used by the broadcast and discovery groups in the configuration along with the
  22 + channel name which you want this cluster to share.</p>
22 23 <pre class="prettyprint">
23   - <code>&lt;broadcast-endpoints&gt;
24   - &lt;broadcast-endpoint name="jgroups" class="org.hornetq.integration.discovery.jgroups.JGroupsBroadcastEndpoint"&gt;
25   - &lt;param key="jgroups-configuration-file" value="test-jgroups-file_ping.xml"/&gt;
26   - &lt;param key="jgroups-channel-name" value="hornetq_broadcast_channel"/&gt;
27   - &lt;/broadcast-endpoint&gt;
28   - &lt;/broadcast-endpoints&gt;
29   - </code>
30   - </pre>
31   - <p>And here's the relevant snippet from the server configuration enabling the discovery/broadcasting groups
32   - to use the above endpoint.</p>
33   - <pre class="prettyprint">
34   - <code>&lt;broadcast-groups&gt;
35   - &lt;broadcast-group name="my-broadcast-group" endpoint="jgroups"&gt;
36   - &lt;broadcast-period&gt;5000&lt;/broadcast-period&gt;
37   - &lt;connector-ref&gt;netty-connector&lt;/connector-ref&gt;
38   - &lt;/broadcast-group&gt;
  24 + <code>
  25 + &lt;broadcast-groups&gt;
  26 + &lt;broadcast-group name="my-broadcast-group">
  27 + &lt;broadcast-period>5000&lt;/broadcast-period>
  28 + &lt;jgroups-file>test-jgroups-file_ping.xml&lt;/jgroups-file>
  29 + &lt;jgroups-channel>hornetq_broadcast_channel&lt;/jgroups-channel>
  30 + &lt;connector-ref>netty-connector&lt;/connector-ref>
  31 + &lt;/broadcast-group>
39 32 &lt;/broadcast-groups&gt;
40 33
41 34 &lt;discovery-groups&gt;
42   - &lt;discovery-group name="my-discovery-group" endpoint="jgroups"&gt;
43   - &lt;refresh-timeout&gt;10000&lt;/refresh-timeout&gt;
44   - &lt;/discovery-group&gt;
  35 + &lt;discovery-group name="my-discovery-group">
  36 + &lt;jgroups-file>test-jgroups-file_ping.xml&lt;/jgroups-file>
  37 + &lt;jgroups-channel>hornetq_broadcast_channel&lt;/jgroups-channel>
  38 + &lt;refresh-timeout>10000&lt;/refresh-timeout>
  39 + &lt;/discovery-group>
45 40 &lt;/discovery-groups&gt;
46 41 </code>
47 42 </pre>
48   - <p>For more information on HornetQ load balancing, and clustering in general, please see the clustering
  43 + <p>For more information on HornetQ clustering in general, please see the clustering
49 44 section of the user manual.</p>
50 45 <h2>Example step-by-step</h2>
51 46 <p><i>To run the example, simply type <code>./build.sh</code> (or <code>build.bat</code> on windows) from this directory</i></p>

0 comments on commit e042744

Please sign in to comment.
Something went wrong with that request. Please try again.