Skip to content

Commit

Permalink
Moving common examples out of jms
Browse files Browse the repository at this point in the history
  • Loading branch information
clebertsuconic committed May 20, 2009
1 parent 3aa5b40 commit 47065fb
Show file tree
Hide file tree
Showing 189 changed files with 220 additions and 128 deletions.
2 changes: 1 addition & 1 deletion .classpath
Expand Up @@ -25,7 +25,7 @@
<classpathentry kind="src" path="examples/jms/clustered-durable-subscription/src"/>
<classpathentry kind="src" path="examples/jms/clustered-queue/src"/>
<classpathentry kind="src" path="examples/jms/clustered-topic/src"/>
<classpathentry kind="src" path="examples/jms/common/src"/>
<classpathentry kind="src" path="examples/common/src"/>
<classpathentry kind="src" path="examples/jms/consumer-rate-limit/src"/>
<classpathentry kind="src" path="examples/jms/dead-letter/src"/>
<classpathentry kind="src" path="examples/jms/delayed-redelivery/src"/>
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions examples/common/config/ant.properties
@@ -0,0 +1,4 @@
jbm.example.logserveroutput=true
logging.properties=${imported.basedir}/../../src/config/stand-alone/non-clustered/logging.properties
jbm.jars.dir=${imported.basedir}/../../build/jars
jars.dir=${imported.basedir}/../../thirdparty
File renamed without changes.
File renamed without changes
Expand Up @@ -19,7 +19,7 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.jms.example;
package org.jboss.common.example;

import javax.jms.Connection;
import javax.jms.JMSException;
Expand Down
Expand Up @@ -21,7 +21,7 @@
*/


package org.jboss.jms.example;
package org.jboss.common.example;

import java.io.File;

Expand Down
Expand Up @@ -19,7 +19,7 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.jms.example;
package org.jboss.common.example;

import org.jboss.messaging.integration.bootstrap.JBMBootstrapServer;

Expand Down
Expand Up @@ -20,7 +20,7 @@
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/

package org.jboss.jms.example;
package org.jboss.common.example;

import org.jboss.messaging.core.logging.Logger;

Expand Down
4 changes: 2 additions & 2 deletions examples/core/embedded/build.xml
Expand Up @@ -30,11 +30,11 @@

<project default="run" name="JBoss Messaging Embedded Example">

<import file="../common/build.xml"/>
<import file="../../common/build.xml"/>

<target name="run">
<antcall target="runExample">
<param name="example.classname" value="org.jboss.jms.example.EmbeddedExample"/>
<param name="example.classname" value="org.jboss.core.example.EmbeddedExample"/>
<!-- We limit the client to running in only 50MB of RAM -->
<param name="java-min-memory" value="50M"/>
<param name="java-max-memory" value="50M"/>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/javaee/ejb-jms-transaction/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging EJB/JMS Transaction Example</title>
<link rel="stylesheet" type="text/css" href="../../jms/common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>EJB/JMS Transaction Example</h1>
Expand Down
2 changes: 1 addition & 1 deletion examples/javaee/hajndi/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging Java EE HAJNDI Example</title>
<link rel="stylesheet" type="text/css" href="../../jms/common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>Java EE HAJNDI Example</h1>
Expand Down
2 changes: 1 addition & 1 deletion examples/javaee/jca-config/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging Java EE JCA Configuration Example</title>
<link rel="stylesheet" type="text/css" href="../../jms/common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>Java EE Resource Adapter Configuration Example</h1>
Expand Down
2 changes: 1 addition & 1 deletion examples/javaee/jms-bridge/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging JMS Bridge Example</title>
<link rel="stylesheet" type="text/css" href="../../jms/common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>JMS Bridge Example</h1>
Expand Down
2 changes: 1 addition & 1 deletion examples/javaee/mdb/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging Java EE MDB Example</title>
<link rel="stylesheet" type="text/css" href="../../jms/common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>Java EE MDB Example</h1>
Expand Down
2 changes: 1 addition & 1 deletion examples/javaee/servlet-transport/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging Java EE Servlet Example</title>
<link rel="stylesheet" type="text/css" href="../../jms/common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>Java EE Servlet Example</h1>
Expand Down
2 changes: 1 addition & 1 deletion examples/javaee/xarecovery/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging XA Recovery Example</title>
<link rel="stylesheet" type="text/css" href="../../jms/common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>XA Recovery Example</h1>
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/application-layer-failover/build.xml
Expand Up @@ -30,7 +30,7 @@

<project default="run" name="JBoss Messaging JMS Application Layer Failover Example">

<import file="../common/build.xml"/>
<import file="../../common/build.xml"/>

<target name="run" depends="delete-files">
<antcall target="runExample">
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/application-layer-failover/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging Application-Layer Failover Example</title>
<link rel="stylesheet" type="text/css" href="../common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>JBoss Messaging Application-Layer Failover Example</h1>
Expand Down
Expand Up @@ -35,6 +35,8 @@
import javax.jms.TextMessage;
import javax.naming.InitialContext;

import org.jboss.common.example.JMSExample;

/**
* A simple example that demonstrates application-layer failover of the JMS connection from one node to another
* when the live server crashes
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/automatic-failover/build.xml
Expand Up @@ -30,7 +30,7 @@

<project default="run" name="JBoss Messaging JMS Automatic Failover Example">

<import file="../common/build.xml"/>
<import file="../../common/build.xml"/>

<target name="run" depends="delete-files">
<antcall target="runExample">
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/automatic-failover/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging JMS Automatic (Transparent) Failover Example</title>
<link rel="stylesheet" type="text/css" href="../common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>JBoss Messaging JMS Automatic (Transparent) Failover (HA) Example</h1>
Expand Down
Expand Up @@ -30,6 +30,8 @@
import javax.jms.TextMessage;
import javax.naming.InitialContext;

import org.jboss.common.example.JMSExample;

/**
* A simple example that demonstrates automatic failover of the JMS connection from one node to another
* when the live server crashes
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/bridge/build.xml
Expand Up @@ -30,7 +30,7 @@

<project default="run" name="JBoss Messaging JMS Clustered Queue Example">

<import file="../common/build.xml"/>
<import file="../../common/build.xml"/>

<target name="run" depends="delete-files">
<antcall target="runExample">
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/bridge/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging Core Bridge Example</title>
<link rel="stylesheet" type="text/css" href="../common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>JBoss Messaging Core Bridge Example</h1>
Expand Down
Expand Up @@ -31,6 +31,8 @@
import javax.jms.TextMessage;
import javax.naming.InitialContext;

import org.jboss.common.example.JMSExample;

/**
* This example demonstrates a core bridge set-up between two nodes, consuming messages from a queue
* on one node and forwarding them to an address on the second node.
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/browser/build.xml
Expand Up @@ -30,7 +30,7 @@

<project default="run" name="JBoss Messaging JMS QueueBrowser Example">

<import file="../common/build.xml"/>
<import file="../../common/build.xml"/>

<target name="run">
<antcall target="runExample">
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/browser/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging JMS QueueBrowser Example</title>
<link rel="stylesheet" type="text/css" href="../common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>JMS Queue Example</h1>
Expand Down
Expand Up @@ -31,6 +31,9 @@
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.InitialContext;

import org.jboss.common.example.JMSExample;

import java.util.Enumeration;

/**
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/client-kickoff/build.xml
Expand Up @@ -30,7 +30,7 @@

<project default="run" name="JBoss Messaging Client Kickoff Example">

<import file="../common/build.xml"/>
<import file="../../common/build.xml"/>

<target name="run">
<antcall target="runExample">
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/client-kickoff/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging Client Kickoff Example</title>
<link rel="stylesheet" type="text/css" href="../common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>Client Kickoff Example</h1>
Expand Down
Expand Up @@ -36,6 +36,7 @@
import javax.management.remote.JMXServiceURL;
import javax.naming.InitialContext;

import org.jboss.common.example.JMSExample;
import org.jboss.messaging.core.management.MessagingServerControlMBean;
import org.jboss.messaging.core.management.ObjectNames;

Expand Down
2 changes: 1 addition & 1 deletion examples/jms/client-side-load-balancing/build.xml
Expand Up @@ -30,7 +30,7 @@

<project default="run" name="JBoss Messaging JMS Client Side Load Balancing Example">

<import file="../common/build.xml"/>
<import file="../../common/build.xml"/>

<target name="run">
<antcall target="runExample">
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/client-side-load-balancing/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging JMS Client Side Load-Balancing Example</title>
<link rel="stylesheet" type="text/css" href="../common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>JBoss Messaging JMS Client Side Load-Balancing Example</h1>
Expand Down
Expand Up @@ -30,6 +30,8 @@
import javax.jms.TextMessage;
import javax.naming.InitialContext;

import org.jboss.common.example.JMSExample;

/**
* This example demonstrates how subsequent connections created from a single connection factory can be load
* balanced across the different nodes of the cluster.
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/clustered-durable-subscription/build.xml
Expand Up @@ -30,7 +30,7 @@

<project default="run" name="JBoss Messaging JMS Clustered Durable Subscription Example">

<import file="../common/build.xml"/>
<import file="../../common/build.xml"/>

<target name="run">
<antcall target="runExample">
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/clustered-durable-subscription/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging JMS Durable Subscription Example</title>
<link rel="stylesheet" type="text/css" href="../common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>JBoss Messaging JMS Durable Subscription Example</h1>
Expand Down
Expand Up @@ -30,6 +30,8 @@
import javax.jms.Topic;
import javax.naming.InitialContext;

import org.jboss.common.example.JMSExample;

/**
* A simple example that shows a JMS Durable Subscription across two nodes of a cluster.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/clustered-queue/build.xml
Expand Up @@ -30,7 +30,7 @@

<project default="run" name="JBoss Messaging JMS Clustered Queue Example">

<import file="../common/build.xml"/>
<import file="../../common/build.xml"/>

<target name="run">
<antcall target="runExample">
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/clustered-queue/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging JMS Load Balanced Queue Example</title>
<link rel="stylesheet" type="text/css" href="../common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>JBoss Messaging JMS Load Balanced Clustered Queue Example</h1>
Expand Down
Expand Up @@ -30,6 +30,8 @@
import javax.jms.TextMessage;
import javax.naming.InitialContext;

import org.jboss.common.example.JMSExample;

/**
* A simple example that demonstrates server side load-balancing of messages between the queue instances on different
* nodes of the cluster.
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/clustered-topic/build.xml
Expand Up @@ -30,7 +30,7 @@

<project default="run" name="JBoss Messaging JMS Clustered Topic Example">

<import file="../common/build.xml"/>
<import file="../../common/build.xml"/>

<target name="run">
<antcall target="runExample">
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/clustered-topic/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging JMS Clustered Topic Example</title>
<link rel="stylesheet" type="text/css" href="../common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>JBoss Messaging JMS Clustered Topic Example</h1>
Expand Down
Expand Up @@ -30,6 +30,8 @@
import javax.jms.Topic;
import javax.naming.InitialContext;

import org.jboss.common.example.JMSExample;

/**
* A simple example that shows a JMS Topic clustered across two nodes of a cluster.
* Messages are sent on one node and received by consumers on both nodes.
Expand Down
4 changes: 0 additions & 4 deletions examples/jms/common/config/ant.properties

This file was deleted.

2 changes: 1 addition & 1 deletion examples/jms/consumer-rate-limit/build.xml
Expand Up @@ -30,7 +30,7 @@

<project default="run" name="JBoss Messaging JMS Consumer Rate Limit Example">

<import file="../common/build.xml"/>
<import file="../../common/build.xml"/>

<target name="run">
<antcall target="runExample">
Expand Down
2 changes: 1 addition & 1 deletion examples/jms/consumer-rate-limit/readme.html
@@ -1,7 +1,7 @@
<html>
<head>
<title>JBoss Messaging JMS Message Consumer Rate Limiting</title>
<link rel="stylesheet" type="text/css" href="../common/common.css">
<link rel="stylesheet" type="text/css" href="../../common/common.css">
</head>
<body>
<h1>JBoss Messaging <br>JMS Message Consumer Rate Limiting</h1>
Expand Down

0 comments on commit 47065fb

Please sign in to comment.