Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

example readme fix #545

Merged
merged 4 commits into from

2 participants

This page is out of date. Refresh to see the latest.
View
13 examples/javaee/hajndi/build.bat
@@ -1,13 +0,0 @@
-@echo off
-
-set "OVERRIDE_ANT_HOME=..\..\..\tools\ant"
-
-if exist "..\..\..\src\bin\build.bat" (
- rem running from TRUNK
- call ..\..\..\src\bin\build.bat %*
-) else (
- rem running from the distro
- call ..\..\..\bin\build.bat %*
-)
-
-set "OVERRIDE_ANT_HOME="
View
15 examples/javaee/hajndi/build.sh
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-OVERRIDE_ANT_HOME=../../tools/ant
-export OVERRIDE_ANT_HOME
-
-if [ -f "../../../src/bin/build.sh" ]; then
- # running from TRUNK
- ../../../src/bin/build.sh "$@"
-else
- # running from the distro
- ../../bin/build.sh "$@"
-fi
-
-
-
View
50 examples/javaee/hajndi/build.xml
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ Copyright 2009 Red Hat, Inc.
- ~ Red Hat 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.
- -->
-<project default="run" name="HornetQ Java HAJNDI Example">
-
- <import file="../common/build.xml"/>
-
- <target name="deploy">
- <property name="deploy.dir" value="${jboss.home}/server/all-with-hornetq/deploy/" />
- <property name="deploy.dir2" value="${jboss.home}/server/all-with-hornetq_2/deploy/" />
-
- <!-- copy 1st server resources configuration -->
- <copy file="${example.config.dir}/hornetq-queues.xml" todir="${deploy.dir}/hornetq.sar/" overwrite="yes"/>
- <copy file="${example.config.dir}/hornetq-jms.xml" todir="${deploy.dir}/hornetq.sar/" overwrite="yes"/>
-
- <!-- copy 2nd server resources configuration -->
- <copy file="${example.config.dir}/hornetq-queues.xml" todir="${deploy.dir2}/hornetq.sar/" overwrite="yes"/>
- <copy file="${example.config.dir}/hornetq-jms.xml" todir="${deploy.dir2}/hornetq.sar/" overwrite="yes"/>
- </target>
-
- <target name="undeploy">
- <property name="deploy.dir" value="${jboss.home}/server/all-with-hornetq/deploy/" />
- <property name="deploy.dir2" value="${jboss.home}/server/all-with-hornetq_2/deploy/" />
-
- <!-- delete 1st server resources configuration -->
- <delete file="${deploy.dir}/hornetq.sar/hornetq-queues.xml" failonerror="false"/>
- <delete file="${deploy.dir}/hornetq.sar/hornetq-jms.xml" failonerror="false"/>
-
- <!-- delete 2nd server resources configuration -->
- <delete file="${deploy.dir2}/hornetq.sar/hornetq-queues.xml" failonerror="false"/>
- <delete file="${deploy.dir2}/hornetq.sar/hornetq-jms.xml" failonerror="false"/>
- </target>
-
- <target name="run">
- <antcall target="runExample">
- <param name="example.classname" value="org.hornetq.javaee.example.HAJNDIExample"/>
- </antcall>
- </target>
-
-</project>
View
27 examples/javaee/hajndi/config/META-INF/application.xml
@@ -1,27 +0,0 @@
-<!--
- ~ Copyright 2009 Red Hat, Inc.
- ~ Red Hat 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.
- -->
-<application>
- <display-name>My Application</display-name>
-
- <module>
- <web>
- <web-uri>hajndi-example.war</web-uri>
- <context-root>/hornetq</context-root>
- </web>
- </module>
- <module>
- <java>hajndi-example.jar</java>
- </module>
-
-
-</application>
View
14 examples/javaee/hajndi/config/hornetq-jms.xml
@@ -1,14 +0,0 @@
-<configuration xmlns="urn:hornetq"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
-
- <connection-factory name="ConnectionFactory">
- <connectors>
- <connector-ref connector-name="netty-connector"/>
- </connectors>
- <entries>
- <entry name="ConnectionFactory"/>
- <entry name="XAConnectionFactory"/>
- </entries>
- </connection-factory>
-</configuration>
View
24 examples/javaee/hajndi/config/hornetq-queues.xml
@@ -1,24 +0,0 @@
-<configuration xmlns="urn:hornetq"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="urn:hornetq ../../../../src/schemas/hornetq-configuration.xsd ">
-
- <security-settings>
- <security-setting match="jms.queue.testQueue">
- <permission type="consume" roles="guest,publisher"/>
- <permission type="send" roles="guest,publisher"/>
- </security-setting>
- </security-settings>
-
- <address-settings>
- <!--default for catch all-->
- <address-setting match="#">
- <dead-letter-address>jms.queue.DLQ</dead-letter-address>
- <expiry-address>jms.queue.ExpiryQueue</expiry-address>
- <redelivery-delay>0</redelivery-delay>
- <max-size-bytes>-1</max-size-bytes>
- <page-size-bytes>10485760</page-size-bytes>
- <message-counter-history-day-limit>10</message-counter-history-day-limit>
- </address-setting>
- </address-settings>
-
-</configuration>
View
98 examples/javaee/hajndi/readme.html
@@ -1,98 +0,0 @@
-<html>
- <head>
- <title>HornetQ Java EE HA-JNDI Example</title>
- <link rel="stylesheet" type="text/css" href="../../common/common.css" />
- <link rel="stylesheet" type="text/css" href="../../common/prettify.css" />
- <script type="text/javascript" src="../../common/prettify.js"></script>
- </head>
- <body onload="prettyPrint()">
- <h1>Java EE HA-JNDI Example</h1>
-
- <p>This example demonstrates the use of High Availability JNDI (HA-JNDI) to lookup HornetQ
- JMS Connection Factories, Queues and Topics.</p>
- <p>With normal JNDI you need to configure the client with the specific connection parameters
- (i.e. host and port) of the JNDI server from which you want to perform look-ups.</p>
- <p>This means if that server crashes, or is not available you won't be able to perform lookups.</p>
- <p>One solution would be for the client to maintain the connection params of all JNDI servers
- in the cluster, but this is not practical.</p>
- <p>With HA-JNDI the client can be simplify configured with UDP address parameters and can transparently
- perform JNDI lookups without having to worry about a particular server being unavailable.</p>
- <p>HA-JNDI is a service of JBoss Application Server and is not available by default when running against
- a stand-alone HornetQ instance.</p>
- <p>An alternative approach is to avoid JNDI together and directly instantiate JMS Connection Factory,
- Queue and Topic instances on the client side. HornetQ Connection Factory instances can
- also be configured to use UDP discovery so the specific details of the available servers are
- not required on the client side.</p>
- <p>For more information on instantiating Connection Factory objects directly please see the user
- manual and the <i>Instantiate Connection Factory</i> example.</p>
- <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>
- <p>This example demonstrates a simple symmetric clustering configuration, and failover on JNDI (HAJNDI).</p>
-
- <h2>Example configuration</h2>
-
- <p>To run the example, you need to download JBoss AS 5.x and create a clustered configuration for HornetQ.</p>
-
- <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>
-
- <p>To run this example, we will need two clustered profiles, one for each server instance:</li>
- <li>Copy the directory <code>$JBOSS_HOME/server/all-with-hornetq</code> to <code>$JBOSS_HOME/server/all-with-hornetq_2</code></li>
- <li>Start the first server with <code>./run.sh -c all-with-hornetq</code></li>
- <li>Start the second server with <code>./run.sh -c all-with-hornetq_2 -Djboss.service.binding.set=ports-01</code></li>
- </ol>
- <h2>Example step by step</h2>
- <ol>
- <li>Create a JNDI Context using HAJNDI Properties.
- <p>This JNDI is performing auto-discovery of the servers, by using the default UDP properties.</p>
- <p>You will find more information about these properties at the </p>
- </li>
- <pre class="prettyprint">
- Hashtable jndiParameters = new Hashtable();
- jndiParameters.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
- jndiParameters.put("java.naming.factory.url.pkgs=", "org.jboss.naming:org.jnp.interfaces");
-
- initialContext = new InitialContext(jndiParameters);
- </pre>
-
-
- <li>Perform lookups in a loop. As long as you have at least one server alive, these lookups will still work fine
- <pre class="prettyprint">
- for (int i = 0; i &lt; 100; i++)
- {
- ConnectionFactory cf = (ConnectionFactory) initialContext.lookup("/ConnectionFactory");
- </pre>
- </li>
-
- <li>Create and close a JMS Connection, just to show the downloaded Connection Factory is working
- <pre class="prettyprint">
- connection = cf.createConnection();
- connection.close();
- </pre>
- </li>
-
-
- <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
-
- <pre class="prettyprint">
- 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");
- Thread.sleep(5000);
- </pre>
- </li>
-
- <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>
-
- <pre class="prettyprint">
- finally
- {
- if (initialContext != null)
- {
- initialContext.close();
- }
- if (connection != null)
- {
- connection.close();
- }
- }
- </pre>
- </ol>
- </body>
-</html>
View
80 examples/javaee/hajndi/src/org/hornetq/javaee/example/HAJNDIExample.java
@@ -1,80 +0,0 @@
-/*
- * Copyright 2009 Red Hat, Inc.
- * Red Hat 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.hornetq.javaee.example;
-
-import java.util.Hashtable;
-
-import javax.jms.Connection;
-import javax.jms.ConnectionFactory;
-import javax.naming.InitialContext;
-
-/**
- *
- * This example demonstrates the use of HA-JNDI to look-up JMS Connection Factories from JNDI.
- *
- * For more information please see the readme.html file.
- *
- * @author <a href="mailto:csuconic@jboss.org">Clebert Suconic</a>
- */
-public class HAJNDIExample
-{
- public static void main(final String[] args) throws Exception
- {
- Connection connection = null;
- InitialContext initialContext = null;
-
- try
- {
- // Step 1. Create an initial context to perform the JNDI lookup.
- // This JNDI is performing auto-discovery of the servers, by using the default UDP properties.
- // You will find more information at the JBoss Application Server Documentation:
- // http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Clustering_Guide/5/html/clustering-jndi.html
-
- Hashtable<String, String> jndiParameters = new Hashtable<String, String>();
- jndiParameters.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
- jndiParameters.put("java.naming.factory.url.pkgs=", "org.jboss.naming:org.jnp.interfaces");
-
- initialContext = new InitialContext(jndiParameters);
-
- for (int i = 0; i < 100; i++)
- {
- // Step 2. Perform a lookup on the Connection Factory
- ConnectionFactory cf = (ConnectionFactory)initialContext.lookup("/ConnectionFactory");
-
- // Step 3. Create a JMS Connection
- connection = cf.createConnection();
- connection.close();
-
- // Step 4. Kill any of the servers. The Lookups will still be performed ok as long as you keep at least one
- // server alive.
- System.out.println("Connection " + i +
- " was created. If you kill any of the servers now, the lookup operation on Step 2 will still work fine");
- Thread.sleep(5000);
- }
-
- System.out.println("Done");
- }
- finally
- {
- // Step 5. Be sure to close our JMS resources!
- if (initialContext != null)
- {
- initialContext.close();
- }
- if (connection != null)
- {
- connection.close();
- }
- }
- }
-}
View
12 examples/javaee/jca-config/readme.html
@@ -133,15 +133,13 @@
<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>
- <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>
+ <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
-
<h2>Example step-by-step</h2>
- <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>
- <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>
- <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>
- <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>
- <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
+ <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
+ <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
+ <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
+
<ol>
<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>
View
11 examples/javaee/mdb-bmt/readme.html
@@ -13,15 +13,12 @@
The example will send deploy a simple MDB and demonstrate sending a message and the MDB consuming it
</p>
- <h2>JBoss AS configuration</h2>
-
- <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>
+ <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
<h2>Example step-by-step</h2>
- <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>
- <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
- <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>
- <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
+ <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
+ <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
+ <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
<ol>
<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>
View
16 examples/javaee/mdb-cmt-setrollbackonly/readme.html
@@ -13,15 +13,13 @@
The example will send deploy a simple MDB and demonstrate sending a message and the MDB consuming it twice
</p>
- <h2>JBoss AS configuration</h2>
-
- <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>
-
- <h2>Example step-by-step</h2>
- <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>
- <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
- <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>
- <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
+ <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
+
+ <h2>Example step-by-step</h2>
+ <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
+ <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
+ <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
+
<ol>
<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>
View
14 examples/javaee/mdb-cmt-tx-local/readme.html
@@ -13,15 +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.
</p>
- <h2>JBoss AS configuration</h2>
-
- <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>
-
+ <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
+
<h2>Example step-by-step</h2>
- <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>
- <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
- <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>
- <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
+ <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
+ <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
+ <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
+
<ol>
<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>
View
13 examples/javaee/mdb-cmt-tx-not-supported/readme.html
@@ -14,15 +14,12 @@
using a transaction as this MDB does not support them.
</p>
- <h2>JBoss AS configuration</h2>
-
- <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>
-
+ <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
+
<h2>Example step-by-step</h2>
- <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>
- <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
- <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>
- <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
+ <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
+ <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
+ <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
<ol>
<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>
View
11 examples/javaee/mdb-cmt-tx-required/readme.html
@@ -15,13 +15,12 @@
<h2>JBoss AS configuration</h2>
- <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>
-
+ <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
+
<h2>Example step-by-step</h2>
- <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>
- <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
- <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>
- <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
+ <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
+ <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
+ <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
<ol>
<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>
View
14 examples/javaee/mdb-message-selector/readme.html
@@ -13,15 +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.
</p>
- <h2>JBoss AS configuration</h2>
-
- <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>
-
+ <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
+
<h2>Example step-by-step</h2>
- <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>
- <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
- <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>
- <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
+ <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
+ <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
+ <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
+
<ol>
<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>
View
11 examples/javaee/mdb-tx-send/readme.html
@@ -15,13 +15,12 @@
<h2>JBoss AS configuration</h2>
- <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>
-
+ <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
+
<h2>Example step-by-step</h2>
- <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>
- <p><i>To run the example, simply type <code>mvn verify</code> from the example directory</i></p>
- <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>
- <p><i> ** make sure that JBOSS_HOME is set to the JBoss installation directory</i></p>
+ <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
+ <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
+ <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
<ol>
<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>
View
2  examples/javaee/pom.xml
@@ -24,7 +24,7 @@
<jboss.home>${env.JBOSS_HOME}</jboss.home>
<!-- Note this must be consistent with the version in AS7 -->
- <hornetq.client.version>2.2.16.Final</hornetq.client.version>
+ <hornetq.client.version>2.2.13.Final</hornetq.client.version>
</properties>
View
11 examples/javaee/servlet-ssl/readme.html
@@ -16,15 +16,12 @@
<h2>Example Configuration</h2>
- <p>In the configuration, the hornetq.example.keystore is the key store file holding client certificate. The hornetq.example.truststore
- 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>
-
+ <p>The example leverages the JBoss Arquillian framework to run an AS 7 instance and deploy the MDB.</p>
<h2>Example step-by-step</h2>
- <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 >
- 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 />
- To remove the new profile type simply type <code>./build.sh undeploy</code> (or <code>build.bat undeploy</code> on windows).</em></p>
-
+ <p><i>download AS 7.1.1.final from <a href="http://www.jboss.org/jbossas/downloads/">here</a> and install.</i></p>
+ <p><i>set the JBOSS_HOME property to point to AS7 install directory</i></p>
+ <p><i>To run the example simply type <code>mvn test</code>from the example directory</i></p>
<ol>
<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>
View
43 examples/jms/clustered-jgroups/readme.html
@@ -15,37 +15,32 @@
in a round-robin fashion.</p>
<p>This example uses JNDI to lookup the JMS Queue and ConnectionFactory objects. If you prefer not to use
JNDI, these could be instantiated directly.</p>
- <p>To enable HornetQ to use JGroups in its broadcasting and discovery, first you need to implement the
- org.hornetq.core.cluster.BroadcastEndpoint interface. Then you need to define it in the server configuration
- file. For details please read the user's manual.</p>
- <p>Here's the relevant snippet from the server configuration defining a JGroupsBroadcastEndpoint.</p>
+ <p>To enable HornetQ to use JGroups you need to configure JGroups configuration file and make sure it is on the classpath
+ by placing in the configuration directory, the file test-jgroups-file_ping.xml is the configuration used in this
+ exaample</p>
+ <p>You then configure the jgroups file used by the broadcast and discovery groups in the configuration along with the
+ channel name which you want this cluster to share.</p>
<pre class="prettyprint">
- <code>&lt;broadcast-endpoints&gt;
- &lt;broadcast-endpoint name="jgroups" class="org.hornetq.integration.discovery.jgroups.JGroupsBroadcastEndpoint"&gt;
- &lt;param key="jgroups-configuration-file" value="test-jgroups-file_ping.xml"/&gt;
- &lt;param key="jgroups-channel-name" value="hornetq_broadcast_channel"/&gt;
- &lt;/broadcast-endpoint&gt;
- &lt;/broadcast-endpoints&gt;
- </code>
- </pre>
- <p>And here's the relevant snippet from the server configuration enabling the discovery/broadcasting groups
- to use the above endpoint.</p>
- <pre class="prettyprint">
- <code>&lt;broadcast-groups&gt;
- &lt;broadcast-group name="my-broadcast-group" endpoint="jgroups"&gt;
- &lt;broadcast-period&gt;5000&lt;/broadcast-period&gt;
- &lt;connector-ref&gt;netty-connector&lt;/connector-ref&gt;
- &lt;/broadcast-group&gt;
+ <code>
+ &lt;broadcast-groups&gt;
+ &lt;broadcast-group name="my-broadcast-group">
+ &lt;broadcast-period>5000&lt;/broadcast-period>
+ &lt;jgroups-file>test-jgroups-file_ping.xml&lt;/jgroups-file>
+ &lt;jgroups-channel>hornetq_broadcast_channel&lt;/jgroups-channel>
+ &lt;connector-ref>netty-connector&lt;/connector-ref>
+ &lt;/broadcast-group>
&lt;/broadcast-groups&gt;
&lt;discovery-groups&gt;
- &lt;discovery-group name="my-discovery-group" endpoint="jgroups"&gt;
- &lt;refresh-timeout&gt;10000&lt;/refresh-timeout&gt;
- &lt;/discovery-group&gt;
+ &lt;discovery-group name="my-discovery-group">
+ &lt;jgroups-file>test-jgroups-file_ping.xml&lt;/jgroups-file>
+ &lt;jgroups-channel>hornetq_broadcast_channel&lt;/jgroups-channel>
+ &lt;refresh-timeout>10000&lt;/refresh-timeout>
+ &lt;/discovery-group>
&lt;/discovery-groups&gt;
</code>
</pre>
- <p>For more information on HornetQ load balancing, and clustering in general, please see the clustering
+ <p>For more information on HornetQ clustering in general, please see the clustering
section of the user manual.</p>
<h2>Example step-by-step</h2>
<p><i>To run the example, simply type <code>./build.sh</code> (or <code>build.bat</code> on windows) from this directory</i></p>
Something went wrong with that request. Please try again.