[jboss-svn-commits] JBL Code SVN: r24299 - in labs/jbossesb/workspace/skeagh/examples/jms-routing: esb and 14 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Dec 8 06:52:09 EST 2008
Author: beve
Date: 2008-12-08 06:52:09 -0500 (Mon, 08 Dec 2008)
New Revision: 24299
Added:
labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/run.sh
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/pom.xml
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/java/
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/java/org/
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/java/org/jboss/
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/java/org/jboss/esb/
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/java/org/jboss/esb/examples/
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/java/org/jboss/esb/examples/jmsrouter/
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/java/org/jboss/esb/examples/jmsrouter/JmsClient.java
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/resources/
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/resources/jndi.properties
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/resources/log4j.xml
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/test/
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/test/resources/
labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/test/resources/log4j.xml
Removed:
labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/src/main/java/org/jboss/esb/examples/jmsrouter/JmsClient.java
Modified:
labs/jbossesb/workspace/skeagh/examples/jms-routing/README.TXT
labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/pom.xml
labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/src/main/resources/jboss-esb.xml
labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/src/main/resources/log4j.xml
Log:
Moved the jms-client out of the esb module.
Modified: labs/jbossesb/workspace/skeagh/examples/jms-routing/README.TXT
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/jms-routing/README.TXT 2008-12-08 11:00:39 UTC (rev 24298)
+++ labs/jbossesb/workspace/skeagh/examples/jms-routing/README.TXT 2008-12-08 11:52:09 UTC (rev 24299)
@@ -39,7 +39,7 @@
"mvn pax:provision"
This will start JBossESB in OSGi container Felix.
6. Open a new console window ("Window 4")
- 7. From the "esb" directory run:
+ 7. From the "jms-client" directory run:
"mvn exec:java"
Type something at the command line and hit return. The text typed will become the message payload.
This will post a JMS Message to the inbound routers queue.
Modified: labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/pom.xml 2008-12-08 11:00:39 UTC (rev 24298)
+++ labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/pom.xml 2008-12-08 11:52:09 UTC (rev 24299)
@@ -14,7 +14,7 @@
<packaging>bundle</packaging>
<properties>
- <felix.log.level>1</felix.log.level><!-- 4=debug -->
+ <felix.log.level>4</felix.log.level><!-- 4=debug -->
<org.jboss.esb.properties.dir>../</org.jboss.esb.properties.dir>
</properties>
@@ -79,18 +79,6 @@
<build>
<plugins>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <configuration>
- <executable>java</executable>
- <mainClass>org.jboss.esb.examples.jmsrouter.JmsClient</mainClass>
- <arguments>
- <argument>jbossesb.TestQueue</argument>
- <!--argument>Message payload text...</argument-->
- </arguments>
- </configuration>
- </plugin>
- <plugin>
<groupId>org.ops4j</groupId>
<artifactId>maven-pax-plugin</artifactId>
<version>1.3</version>
Added: labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/run.sh
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/run.sh (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/run.sh 2008-12-08 11:52:09 UTC (rev 24299)
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ "$1" = "-debug" ]; then
+ export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y $JAVA_OPTS"
+fi
+
+
+export FELIX_JAR="$HOME/.m2/repository/org/apache/felix/org.apache.felix.main/1.2.1/org.apache.felix.main-1.2.1.jar"
+echo $JAVA_OPTS
+echo $FELIX_JAR
+
+$JAVA_HOME/bin/java $JAVA_OPTS -jar $FELIX_JAR
Property changes on: labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/run.sh
___________________________________________________________________
Name: svn:executable
+ *
Deleted: labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/src/main/java/org/jboss/esb/examples/jmsrouter/JmsClient.java
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/src/main/java/org/jboss/esb/examples/jmsrouter/JmsClient.java 2008-12-08 11:00:39 UTC (rev 24298)
+++ labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/src/main/java/org/jboss/esb/examples/jmsrouter/JmsClient.java 2008-12-08 11:52:09 UTC (rev 24299)
@@ -1,216 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
- * LLC, and individual contributors by the @authors tag. See the copyright.txt
- * in the distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it under the
- * terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This software is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this software; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
- * site: http://www.fsf.org.
- */
-package org.jboss.esb.examples.jmsrouter;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.util.Arrays;
-
-import javax.jms.Destination;
-import javax.jms.JMSException;
-import javax.jms.MessageProducer;
-import javax.jms.QueueConnection;
-import javax.jms.QueueConnectionFactory;
-import javax.jms.QueueSession;
-import javax.jms.Session;
-import javax.jms.TextMessage;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-
-/**
- * Client that post a message to a JMS destination.
- * <p/>
- * Usage:
- * java org.jboss.esb.examples.JmsClient destination
- *
- * @author <a href="mailto:dbevenius at redhat.com">Daniel Bevenius</a>
- *
- */
-public final class JmsClient
-{
- private MessageProducer messageProducer;
- private QueueConnection qConnection;
- private QueueSession qSession;
-
- /**
- * Private constructor.
- */
- private JmsClient()
- {
- }
-
- /**
- * Main method.
- *
- * @param args - the arguments from the command line. See class javadoc for usage
- * @throws NamingException
- * @throws JMSException
- */
- public static void main(final String... args) throws JMSException, NamingException
- {
- if (args.length < 1)
- {
- printUsage();
- System.exit(-1);
- }
-
- final String destinationName = args[0];
- final JmsClient jmsClient = new JmsClient();
- jmsClient.setupMessageProducer(destinationName);
-
- addShutdownHook(jmsClient);
-
- while (true)
- {
- try
- {
- jmsClient.sendMessage(jmsClient.getPayload(), destinationName);
- }
- catch (final JMSException e)
- {
- e.printStackTrace();
- }
- catch (NamingException e)
- {
- e.printStackTrace();
- }
- }
- }
-
- /**
- * @param destinationName - the jms destination to send to
- * @throws JMSException - is a JMS exception is thrown
- * @throws NamingException - if a JNDI lookup failes
- */
- private void setupMessageProducer(final String destinationName) throws JMSException, NamingException
- {
- final InitialContext ctx = new InitialContext();
-
- QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("ConnectionFactory");
- qConnection = factory.createQueueConnection();
- qConnection.start();
-
- qSession = qConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
- messageProducer = qSession.createProducer((Destination)ctx.lookup(destinationName));
- }
-
- /**
- *
- * @param payload - the payload to send
- * @param destinationName - the jms destination to send to
- * @throws JMSException - is a JMS exception is thrown
- * @throws NamingException - if a JNDI lookup failes
- */
- private void sendMessage(final String payload, final String destinationName) throws JMSException, NamingException
- {
- final TextMessage textMessage = qSession.createTextMessage(payload);
- messageProducer.send(textMessage);
- System.out.println("Sent message [" + textMessage.getJMSMessageID() + "] to [" + destinationName + "]");
- }
-
- private static void printUsage(final String... args)
- {
- System.err.println("*****************************************************************************");
- System.err.println("Usage: ");
- System.err.println("java org.jboss.esb.examples.JmsClient destination ");
- System.err.println("");
- System.err.println("Arguments provided:");
- System.err.println(Arrays.asList(args));
- System.err.println("*****************************************************************************");
- }
-
- /**
- * Prompts for the message payload to be entered from the command line.
- *
- * @param message The message to be displayed to the user.
- * @return String The text typed at the command line by the user.
- */
- private static String getPayloadFromCommandLine(final String message)
- {
- try
- {
- BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
- System.out.print("> " + message);
- return in.readLine();
- }
- catch (final IOException e)
- {
- e.printStackTrace();
- }
- System.out.println(System.getProperty("line.separator"));
- return null;
- }
-
- private String getPayload()
- {
- return getPayloadFromCommandLine("Specify message payload test >");
- }
-
- private void shutdown()
- {
- if (messageProducer != null)
- {
- try
- {
- messageProducer.close();
- }
- catch (final JMSException e)
- {
- e.printStackTrace();
- }
- }
- if (qSession != null)
- {
- try
- {
- qSession.close();
- }
- catch (final JMSException e)
- {
- e.printStackTrace();
- }
- }
- if (qConnection != null)
- {
- try
- {
- qConnection.close();
- }
- catch (final JMSException e)
- {
- e.printStackTrace();
- }
- }
- }
-
- private static void addShutdownHook(final JmsClient jmsClient)
- {
- Runtime.getRuntime().addShutdownHook(new Thread()
- {
- @Override
- public void run()
- {
- jmsClient.shutdown();
- }
- });
- }
-}
Modified: labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/src/main/resources/jboss-esb.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/src/main/resources/jboss-esb.xml 2008-12-08 11:00:39 UTC (rev 24298)
+++ labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/src/main/resources/jboss-esb.xml 2008-12-08 11:52:09 UTC (rev 24299)
@@ -5,14 +5,18 @@
<processors>
<processor class="org.jboss.esb.jms.processors.TextMessageExtractor"/>
</processors>
+ <property name="jmsDestination">jbossesb.TestQueue</property>
<property name="java.naming.provider.url">tcp://localhost:61717</property>
<property name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</property>
- <property name="jmsDestination">dynamicQueues/jbossesb.TestQueue</property>
+ <!-- ActiveMQ queue definition -->
+ <property name="queue.jbossesb.TestQueue">jbossesb.TestQueue</property>
</inRouter>
<outRouter name="outrouter" class="org.jboss.esb.jms.outbound.JmsOutboundRouter">
<property name="jmsDestination">jbossesb.TestOutQueue</property>
<property name="java.naming.provider.url">tcp://localhost:61717</property>
<property name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</property>
+ <!-- ActiveMQ queue definiation -->
+ <property name="queue.jbossesb.TestOutQueue">jbossesb.TestOutQueue</property>
</outRouter>
</service>
</services>
Modified: labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/src/main/resources/log4j.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/src/main/resources/log4j.xml 2008-12-08 11:00:39 UTC (rev 24298)
+++ labs/jbossesb/workspace/skeagh/examples/jms-routing/esb/src/main/resources/log4j.xml 2008-12-08 11:52:09 UTC (rev 24299)
@@ -42,6 +42,11 @@
<priority value="debug"/>
</category>
+ <category name="org.jboss.esb.jms.outbound.AbstractJmsOutboundRouter">
+ <priority value="debug"/>
+ </category>
+
+
<category name="org.jboss.esb.examples.helloworld">
<priority value="info"/>
</category>
Added: labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/pom.xml (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/pom.xml 2008-12-08 11:52:09 UTC (rev 24299)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>jboss.jbossesb</groupId>
+ <artifactId>jbossesb-examples-jms-routing</artifactId>
+ <version>${jboss.esb.version}</version>
+ </parent>
+ <name>JBoss ESB - JMS Routing Example (Client)</name>
+ <groupId>jboss.jbossesb</groupId>
+ <artifactId>jbossesb-examples-jms-routing-client</artifactId>
+ <version>${jboss.esb.version}</version>
+ <url>http://www.jboss.org/jbossesb/</url>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <configuration>
+ <executable>java</executable>
+ <mainClass>org.jboss.esb.examples.jmsrouter.JmsClient</mainClass>
+ <arguments>
+ <argument>jbossesb.TestQueue</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Added: labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/java/org/jboss/esb/examples/jmsrouter/JmsClient.java
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/java/org/jboss/esb/examples/jmsrouter/JmsClient.java (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/java/org/jboss/esb/examples/jmsrouter/JmsClient.java 2008-12-08 11:52:09 UTC (rev 24299)
@@ -0,0 +1,216 @@
+/*
+ * JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
+ * LLC, and individual contributors by the @authors tag. See the copyright.txt
+ * in the distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This software is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this software; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
+ * site: http://www.fsf.org.
+ */
+package org.jboss.esb.examples.jmsrouter;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.util.Arrays;
+
+import javax.jms.Destination;
+import javax.jms.JMSException;
+import javax.jms.MessageProducer;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSession;
+import javax.jms.Session;
+import javax.jms.TextMessage;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+/**
+ * Client that post a message to a JMS destination.
+ * <p/>
+ * Usage:
+ * java org.jboss.esb.examples.JmsClient destination
+ *
+ * @author <a href="mailto:dbevenius at redhat.com">Daniel Bevenius</a>
+ *
+ */
+public final class JmsClient
+{
+ private MessageProducer messageProducer;
+ private QueueConnection qConnection;
+ private QueueSession qSession;
+
+ /**
+ * Private constructor.
+ */
+ private JmsClient()
+ {
+ }
+
+ /**
+ * Main method.
+ *
+ * @param args - the arguments from the command line. See class javadoc for usage
+ * @throws NamingException
+ * @throws JMSException
+ */
+ public static void main(final String... args) throws JMSException, NamingException
+ {
+ if (args.length < 1)
+ {
+ printUsage();
+ System.exit(-1);
+ }
+
+ final String destinationName = args[0];
+ final JmsClient jmsClient = new JmsClient();
+ jmsClient.setupMessageProducer(destinationName);
+
+ addShutdownHook(jmsClient);
+
+ while (true)
+ {
+ try
+ {
+ jmsClient.sendMessage(jmsClient.getPayload(), destinationName);
+ }
+ catch (final JMSException e)
+ {
+ e.printStackTrace();
+ }
+ catch (NamingException e)
+ {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ /**
+ * @param destinationName - the jms destination to send to
+ * @throws JMSException - is a JMS exception is thrown
+ * @throws NamingException - if a JNDI lookup failes
+ */
+ private void setupMessageProducer(final String destinationName) throws JMSException, NamingException
+ {
+ final InitialContext ctx = new InitialContext();
+
+ QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("ConnectionFactory");
+ qConnection = factory.createQueueConnection();
+ qConnection.start();
+
+ qSession = qConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
+ messageProducer = qSession.createProducer((Destination)ctx.lookup(destinationName));
+ }
+
+ /**
+ *
+ * @param payload - the payload to send
+ * @param destinationName - the jms destination to send to
+ * @throws JMSException - is a JMS exception is thrown
+ * @throws NamingException - if a JNDI lookup failes
+ */
+ private void sendMessage(final String payload, final String destinationName) throws JMSException, NamingException
+ {
+ final TextMessage textMessage = qSession.createTextMessage(payload);
+ messageProducer.send(textMessage);
+ System.out.println("Sent message [" + textMessage.getJMSMessageID() + "] to [" + destinationName + "]");
+ }
+
+ private static void printUsage(final String... args)
+ {
+ System.err.println("*****************************************************************************");
+ System.err.println("Usage: ");
+ System.err.println("java org.jboss.esb.examples.JmsClient destination ");
+ System.err.println("");
+ System.err.println("Arguments provided:");
+ System.err.println(Arrays.asList(args));
+ System.err.println("*****************************************************************************");
+ }
+
+ /**
+ * Prompts for the message payload to be entered from the command line.
+ *
+ * @param message The message to be displayed to the user.
+ * @return String The text typed at the command line by the user.
+ */
+ private static String getPayloadFromCommandLine(final String message)
+ {
+ try
+ {
+ BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
+ System.out.print("> " + message);
+ return in.readLine();
+ }
+ catch (final IOException e)
+ {
+ e.printStackTrace();
+ }
+ System.out.println(System.getProperty("line.separator"));
+ return null;
+ }
+
+ private String getPayload()
+ {
+ return getPayloadFromCommandLine("Specify message payload test >");
+ }
+
+ private void shutdown()
+ {
+ if (messageProducer != null)
+ {
+ try
+ {
+ messageProducer.close();
+ }
+ catch (final JMSException e)
+ {
+ e.printStackTrace();
+ }
+ }
+ if (qSession != null)
+ {
+ try
+ {
+ qSession.close();
+ }
+ catch (final JMSException e)
+ {
+ e.printStackTrace();
+ }
+ }
+ if (qConnection != null)
+ {
+ try
+ {
+ qConnection.close();
+ }
+ catch (final JMSException e)
+ {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ private static void addShutdownHook(final JmsClient jmsClient)
+ {
+ Runtime.getRuntime().addShutdownHook(new Thread()
+ {
+ @Override
+ public void run()
+ {
+ jmsClient.shutdown();
+ }
+ });
+ }
+}
Added: labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/resources/jndi.properties
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/resources/jndi.properties (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/resources/jndi.properties 2008-12-08 11:52:09 UTC (rev 24299)
@@ -0,0 +1,11 @@
+java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
+java.naming.provider.url=tcp://localhost:61717
+
+# use the following property to specify the JNDI name the connection factory
+# should appear as.
+connectionFactoryNames = connectionFactory, ConnectionFactory, queueConnectionFactory, topicConnectionFactory
+
+# register some queues in JNDI using the form
+# queue.[jndiName] = [physicalName]
+queue.jbossesb.TestQueue=jbossesb.TestQueue
+
Added: labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/resources/log4j.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/resources/log4j.xml (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/main/resources/log4j.xml 2008-12-08 11:52:09 UTC (rev 24299)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!--
+ | For more configuration infromation and examples see the Jakarta Log4j
+ | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <param name="Target" value="System.out"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t][%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+
+ <category name="org.milyn">
+ <priority value="error"/>
+ </category>
+
+ <category name="org.quartz">
+ <priority value="error"/>
+ </category>
+
+ <category name="org.jboss.esb">
+ <priority value="debug"/>
+ </category>
+
+ <category name="org.jboss.esb.examples.helloworld">
+ <priority value="info"/>
+ </category>
+
+ <category name="org.apache.activemq">
+ <priority value="ERROR"/>
+ </category>
+
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <appender-ref ref="CONSOLE"/>
+ </root>
+
+</log4j:configuration>
+
Added: labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/test/resources/log4j.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/test/resources/log4j.xml (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/jms-routing/jms-client/src/test/resources/log4j.xml 2008-12-08 11:52:09 UTC (rev 24299)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!--
+ | For more configuration infromation and examples see the Jakarta Log4j
+ | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <param name="Target" value="System.out"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t][%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+
+ <category name="org.milyn">
+ <priority value="error"/>
+ </category>
+
+ <category name="org.quartz">
+ <priority value="error"/>
+ </category>
+
+ <category name="org.jboss">
+ <priority value="error"/>
+ </category>
+
+ <category name="org.jboss.esb.examples.helloworld">
+ <priority value="info"/>
+ </category>
+
+ <category name="org.apache.activemq">
+ <priority value="ERROR"/>
+ </category>
+
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <appender-ref ref="CONSOLE"/>
+ </root>
+
+</log4j:configuration>
+
More information about the jboss-svn-commits
mailing list