Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A7C0910E57 for ; Thu, 10 Oct 2013 11:10:35 +0000 (UTC) Received: (qmail 3137 invoked by uid 500); 10 Oct 2013 11:10:35 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 3022 invoked by uid 500); 10 Oct 2013 11:10:35 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 2967 invoked by uid 99); 10 Oct 2013 11:10:34 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 11:10:34 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 4F691913E90; Thu, 10 Oct 2013 11:10:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: gtully@apache.org To: commits@activemq.apache.org Date: Thu, 10 Oct 2013 11:10:35 -0000 Message-Id: <0f1f9759bbbe483583169564fbcdf352@git.apache.org> In-Reply-To: <5c7a48c303204f68a4dcdeee2b67b570@git.apache.org> References: <5c7a48c303204f68a4dcdeee2b67b570@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/6] revert addition on forked hornetq javeee examples - some of the nested driver files have the LGPL license http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/logging.properties ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/logging.properties b/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/logging.properties deleted file mode 100644 index 8a011f0..0000000 --- a/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/logging.properties +++ /dev/null @@ -1,52 +0,0 @@ -# -# JBoss, Home of Professional Open Source. -# Copyright 2010, Red Hat, Inc., and individual contributors -# as indicated by the @author tags. See the copyright.txt file 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. -# - -# Additional logger names to configure (root logger is always configured) -loggers=org.jboss.as.config - -# Dump system environment at boot by default -logger.org.jboss.as.config.level=DEBUG - -# Root logger level -logger.level=${jboss.boot.server.log.level:INFO} -# Root logger handlers -logger.handlers=FILE,CONSOLE - -# Console handler configuration -handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler -handler.CONSOLE.properties=autoFlush -handler.CONSOLE.level=${jboss.boot.server.log.console.level:INFO} -handler.CONSOLE.autoFlush=true -handler.CONSOLE.formatter=PATTERN - -# File handler configuration -handler.FILE=org.jboss.logmanager.handlers.FileHandler -handler.FILE.level=DEBUG -handler.FILE.properties=autoFlush,fileName -handler.FILE.autoFlush=true -handler.FILE.fileName=${org.jboss.boot.log.file:boot.log} -handler.FILE.formatter=PATTERN - -# Formatter pattern configuration -formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter -formatter.PATTERN.properties=pattern -formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p [%c] %s%E%n http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/mgmt-users.properties ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/mgmt-users.properties b/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/mgmt-users.properties deleted file mode 100644 index 349b004..0000000 --- a/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/mgmt-users.properties +++ /dev/null @@ -1,24 +0,0 @@ -# -# Properties declaration of users for the realm 'ManagementRealm' which is the default realm -# for new AS 7.1 installations. Further authentication mechanism can be configured -# as part of the in standalone.xml. -# -# Users can be added to this properties file at any time, updates after the server has started -# will be automatically detected. -# -# By default the properties realm expects the entries to be in the format: - -# username=HEX( MD5( username ':' realm ':' password)) -# -# A utility script is provided which can be executed from the bin folder to add the users: - -# - Linux -# bin/add-user.sh -# -# - Windows -# bin\add-user.bat - -# The following illustrates how an admin user could be defined, this -# is for illustration only and does not correspond to a usable password. -# -#admin=2a0923285184943425d1f53ddd58ec7a -admin=9d71b431e53d99563aa0dfca628c970b -andy=dfb16391f1be1c454b5bce9822bd9df3 http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/standalone-example.xml ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/standalone-example.xml b/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/standalone-example.xml deleted file mode 100644 index d61dfe6..0000000 --- a/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/standalone-example.xml +++ /dev/null @@ -1,446 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jdbc:h2:mem:test;DB_CLOSE_DELAY=-1 - h2 - - sa - sa - - - - - org.h2.jdbcx.JdbcDataSource - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - activemq-rar.rar - - XATransaction - - false - - - defaultPassword - - - defaultUser - - - vm://localhost?brokerConfig=xbean:broker-config.xml - - - - testQueue - - - - testQueue - - - failover:(tcp://localhost:61616) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - ${jboss.bind.address:127.0.0.1} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/MDB_CMT_TxRequiredClientExample.java ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/MDB_CMT_TxRequiredClientExample.java b/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/MDB_CMT_TxRequiredClientExample.java deleted file mode 100644 index 2bcf08f..0000000 --- a/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/MDB_CMT_TxRequiredClientExample.java +++ /dev/null @@ -1,92 +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 javax.jms.Connection; -import javax.jms.ConnectionFactory; -import javax.jms.MessageProducer; -import javax.jms.Queue; -import javax.jms.Session; -import javax.jms.TextMessage; -import javax.naming.Context; -import javax.naming.InitialContext; -import java.util.Properties; - -/** - * @author Andy Taylor - */ -public class MDB_CMT_TxRequiredClientExample -{ - public static void main(final String[] args) throws Exception - { - Thread.sleep(5000); - Connection connection = null; - InitialContext initialContext = null; - try - { - // Step 1. Create an initial context to perform the JNDI lookup. - final Properties env = new Properties(); - - env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); - - env.put(Context.PROVIDER_URL, "remote://localhost:4447"); - - env.put(Context.SECURITY_PRINCIPAL, "guest"); - - env.put(Context.SECURITY_CREDENTIALS, "password"); - - initialContext = new InitialContext(env); - - // Step 2. Perfom a lookup on the queue - Queue queue = (Queue)initialContext.lookup("jms/queues/testQueue"); - - // Step 3. Perform a lookup on the Connection Factory - ConnectionFactory cf = (ConnectionFactory)initialContext.lookup("jms/RemoteConnectionFactory"); - - // Step 4.Create a JMS Connection - connection = cf.createConnection("guest", "password"); - - // Step 5. Create a JMS Session - Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); - - // Step 6. Create a JMS Message Producer - MessageProducer producer = session.createProducer(queue); - TextMessage message = null; - - for (int i = 0; i < 100; i++) - { - // Step 7. Create a Text Message - message = session.createTextMessage("This is a text message"); - - System.out.println("Sent message: " + message.getText()); - // Step 8. Send the Message - producer.send(message); - } - - - // Step 9,10 and 11 in MDBExample - } - finally - { - // Step 12. Be sure to close our JMS resources! - if (initialContext != null) - { - initialContext.close(); - } - if (connection != null) - { - connection.close(); - } - } - } -} http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/server/MDB_CMT_TxRequiredExample.java ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/server/MDB_CMT_TxRequiredExample.java b/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/server/MDB_CMT_TxRequiredExample.java deleted file mode 100644 index d802014..0000000 --- a/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/server/MDB_CMT_TxRequiredExample.java +++ /dev/null @@ -1,65 +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.server; - -import javax.annotation.Resource; -import javax.ejb.ActivationConfigProperty; -import javax.ejb.MessageDriven; -import javax.ejb.TransactionAttribute; -import javax.ejb.TransactionAttributeType; -import javax.ejb.TransactionManagement; -import javax.ejb.TransactionManagementType; -import javax.jms.JMSException; -import javax.jms.Message; -import javax.jms.MessageListener; -import javax.jms.TextMessage; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; - -import org.jboss.ejb3.annotation.ResourceAdapter; - -import java.util.Calendar; - -/** - * @author Andy Taylor - */ -@MessageDriven(name = "MDB_CMT_TxRequiredExample", activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), - @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/testQueue"), - @ActivationConfigProperty(propertyName = "consumerMaxRate", propertyValue = "1")}) -@TransactionManagement(value = TransactionManagementType.CONTAINER) -@TransactionAttribute(value = TransactionAttributeType.REQUIRED) -public class MDB_CMT_TxRequiredExample implements MessageListener -{ - - public void onMessage(final Message message) - { - try - { - // Step 9. We know the client is sending a text message so we cast - TextMessage textMessage = (TextMessage)message; - - // Step 10. get the text from the message. - String text = textMessage.getText(); - - Calendar c =Calendar.getInstance(); - - System.out.println("message " + text + " received at " + c.getTime()); - - } - catch (JMSException e) - { - e.printStackTrace(); - } - } -} http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/java/org/hornetq/javaee/examples/MDBCMTSetTXRequiredRunnerTest.java ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/java/org/hornetq/javaee/examples/MDBCMTSetTXRequiredRunnerTest.java b/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/java/org/hornetq/javaee/examples/MDBCMTSetTXRequiredRunnerTest.java deleted file mode 100644 index 9b27d47..0000000 --- a/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/java/org/hornetq/javaee/examples/MDBCMTSetTXRequiredRunnerTest.java +++ /dev/null @@ -1,62 +0,0 @@ -/* -* JBoss, Home of Professional Open Source. -* Copyright 2010, Red Hat, Inc., and individual contributors -* as indicated by the @author tags. See the copyright.txt file 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.hornetq.javaee.examples; - -import org.hornetq.javaee.example.MDB_CMT_TxRequiredClientExample; -import org.hornetq.javaee.example.server.MDB_CMT_TxRequiredExample; -import org.jboss.arquillian.container.test.api.Deployment; -import org.jboss.arquillian.container.test.api.RunAsClient; -import org.jboss.arquillian.junit.Arquillian; -import org.jboss.shrinkwrap.api.Archive; -import org.jboss.shrinkwrap.api.ShrinkWrap; -import org.jboss.shrinkwrap.api.spec.JavaArchive; -import org.junit.Test; -import org.junit.runner.RunWith; - -/** - * @author Andy Taylor - * 5/21/12 - */ -@RunAsClient -@RunWith(Arquillian.class) -public class MDBCMTSetTXRequiredRunnerTest -{ - @Deployment - public static Archive getDeployment() - { - - final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "mdb.jar"); - ejbJar.addClass(MDB_CMT_TxRequiredExample.class); - System.out.println(ejbJar.toString(true)); - return ejbJar; - } - - @Test - public void runExample() throws Exception - { - MDB_CMT_TxRequiredClientExample.main(null); - //give the example time to run - Thread.sleep(10000); - } - - -} http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/resources/arquillian.xml ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/resources/arquillian.xml b/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/resources/arquillian.xml deleted file mode 100644 index ae8a732..0000000 --- a/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/resources/arquillian.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - ${basedir}/target/jbossas-node0 - -Djboss.inst=${basedir}/target/jbossas-node0 - standalone-example.xml - - true - ${node0:127.0.0.1} - ${as.managementPort:9999} - - - ${as.debug.port:8787} ${as.managementPort:9999} - 8 - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-message-selector/pom.xml ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-message-selector/pom.xml b/activemq-arquillian/javaee/mdb-message-selector/pom.xml deleted file mode 100644 index 6d2b273..0000000 --- a/activemq-arquillian/javaee/mdb-message-selector/pom.xml +++ /dev/null @@ -1,14 +0,0 @@ - - 4.0.0 - - - org.apache.activemq - javaee - 5.9-SNAPSHOT - - - mdb-message-selector-example - jar - JEE MDB Message Selector Example - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-roles.properties ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-roles.properties b/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-roles.properties deleted file mode 100644 index 0ade8fb..0000000 --- a/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-roles.properties +++ /dev/null @@ -1,22 +0,0 @@ -# -# Properties declaration of users roles for the realm 'ApplicationRealm'. -# -# This includes the following protocols: remote ejb, remote jndi, web, remote jms -# -# Users can be added to this properties file at any time, updates after the server has started -# will be automatically detected. -# -# The format of this file is as follows: - -# username=role1,role2,role3 -# -# A utility script is provided which can be executed from the bin folder to add the users: - -# - Linux -# bin/add-user.sh -# -# - Windows -# bin\add-user.bat -# -# The following illustrates how an admin user could be defined. -# -#admin=PowerUser,BillingAdmin, -guest=guest http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-users.properties ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-users.properties b/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-users.properties deleted file mode 100644 index c52e923..0000000 --- a/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-users.properties +++ /dev/null @@ -1,24 +0,0 @@ -# -# Properties declaration of users for the realm 'ApplicationRealm' which is the default realm -# for application services on a new AS 7.1 installation. -# -# This includes the following protocols: remote ejb, remote jndi, web, remote jms -# -# Users can be added to this properties file at any time, updates after the server has started -# will be automatically detected. -# -# The format of this realm is as follows: - -# username=HEX( MD5( username ':' realm ':' password)) -# -# A utility script is provided which can be executed from the bin folder to add the users: - -# - Linux -# bin/add-user.sh -# -# - Windows -# bin\add-user.bat -# -# The following illustrates how an admin user could be defined, this -# is for illustration only and does not correspond to a usable password. -# -#admin=2a0923285184943425d1f53ddd58ec7a -guest=3437456520927d113b17d471d630e0d6 http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/logging.properties ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/logging.properties b/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/logging.properties deleted file mode 100644 index 8a011f0..0000000 --- a/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/logging.properties +++ /dev/null @@ -1,52 +0,0 @@ -# -# JBoss, Home of Professional Open Source. -# Copyright 2010, Red Hat, Inc., and individual contributors -# as indicated by the @author tags. See the copyright.txt file 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. -# - -# Additional logger names to configure (root logger is always configured) -loggers=org.jboss.as.config - -# Dump system environment at boot by default -logger.org.jboss.as.config.level=DEBUG - -# Root logger level -logger.level=${jboss.boot.server.log.level:INFO} -# Root logger handlers -logger.handlers=FILE,CONSOLE - -# Console handler configuration -handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler -handler.CONSOLE.properties=autoFlush -handler.CONSOLE.level=${jboss.boot.server.log.console.level:INFO} -handler.CONSOLE.autoFlush=true -handler.CONSOLE.formatter=PATTERN - -# File handler configuration -handler.FILE=org.jboss.logmanager.handlers.FileHandler -handler.FILE.level=DEBUG -handler.FILE.properties=autoFlush,fileName -handler.FILE.autoFlush=true -handler.FILE.fileName=${org.jboss.boot.log.file:boot.log} -handler.FILE.formatter=PATTERN - -# Formatter pattern configuration -formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter -formatter.PATTERN.properties=pattern -formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p [%c] %s%E%n http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/mgmt-users.properties ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/mgmt-users.properties b/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/mgmt-users.properties deleted file mode 100644 index 349b004..0000000 --- a/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/mgmt-users.properties +++ /dev/null @@ -1,24 +0,0 @@ -# -# Properties declaration of users for the realm 'ManagementRealm' which is the default realm -# for new AS 7.1 installations. Further authentication mechanism can be configured -# as part of the in standalone.xml. -# -# Users can be added to this properties file at any time, updates after the server has started -# will be automatically detected. -# -# By default the properties realm expects the entries to be in the format: - -# username=HEX( MD5( username ':' realm ':' password)) -# -# A utility script is provided which can be executed from the bin folder to add the users: - -# - Linux -# bin/add-user.sh -# -# - Windows -# bin\add-user.bat - -# The following illustrates how an admin user could be defined, this -# is for illustration only and does not correspond to a usable password. -# -#admin=2a0923285184943425d1f53ddd58ec7a -admin=9d71b431e53d99563aa0dfca628c970b -andy=dfb16391f1be1c454b5bce9822bd9df3 http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/standalone-example.xml ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/standalone-example.xml b/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/standalone-example.xml deleted file mode 100644 index d61dfe6..0000000 --- a/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/standalone-example.xml +++ /dev/null @@ -1,446 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jdbc:h2:mem:test;DB_CLOSE_DELAY=-1 - h2 - - sa - sa - - - - - org.h2.jdbcx.JdbcDataSource - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - activemq-rar.rar - - XATransaction - - false - - - defaultPassword - - - defaultUser - - - vm://localhost?brokerConfig=xbean:broker-config.xml - - - - testQueue - - - - testQueue - - - failover:(tcp://localhost:61616) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - ${jboss.bind.address:127.0.0.1} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-message-selector/src/main/java/org/hornetq/javaee/example/MDBMessageSelectorClientExample.java ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-message-selector/src/main/java/org/hornetq/javaee/example/MDBMessageSelectorClientExample.java b/activemq-arquillian/javaee/mdb-message-selector/src/main/java/org/hornetq/javaee/example/MDBMessageSelectorClientExample.java deleted file mode 100644 index 9469fbd..0000000 --- a/activemq-arquillian/javaee/mdb-message-selector/src/main/java/org/hornetq/javaee/example/MDBMessageSelectorClientExample.java +++ /dev/null @@ -1,98 +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 javax.jms.Connection; -import javax.jms.ConnectionFactory; -import javax.jms.MessageProducer; -import javax.jms.Queue; -import javax.jms.Session; -import javax.jms.TextMessage; -import javax.naming.Context; -import javax.naming.InitialContext; -import java.util.Properties; - -/** - * @author Andy Taylor - */ -public class MDBMessageSelectorClientExample -{ - public static void main(String[] args) throws Exception - { - Connection connection = null; - InitialContext initialContext = null; - try - { - //Step 1. Create an initial context to perform the JNDI lookup. - final Properties env = new Properties(); - - env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); - - env.put(Context.PROVIDER_URL, "remote://localhost:4447"); - - env.put(Context.SECURITY_PRINCIPAL, "guest"); - - env.put(Context.SECURITY_CREDENTIALS, "password"); - - initialContext = new InitialContext(env); - - //Step 2. Perfom a lookup on the queue - Queue queue = (Queue) initialContext.lookup("jms/queues/testQueue"); - - //Step 3. Perform a lookup on the Connection Factory - ConnectionFactory cf = (ConnectionFactory) initialContext.lookup("jms/RemoteConnectionFactory"); - - //Step 4.Create a JMS Connection - connection = cf.createConnection("guest", "password"); - - //Step 5. Create a JMS Session - Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); - - //Step 6. Create a JMS Message Producer - MessageProducer producer = session.createProducer(queue); - - //Step 7. Create a Text Message and set the color property to blue - TextMessage blueMessage = session.createTextMessage("This is a text message"); - - blueMessage.setStringProperty("color", "BLUE"); - - System.out.println("Sent message: " + blueMessage.getText() + " color=BLUE"); - - //Step 8. Send the Message - producer.send(blueMessage); - - //Step 9. create another message and set the color property to red - TextMessage redMessage = session.createTextMessage("This is a text message"); - - redMessage.setStringProperty("color", "RED"); - - System.out.println("Sent message: " + redMessage.getText() + " color=RED"); - - //Step 10. Send the Message - producer.send(redMessage); - //Step 10,11 and 12 in MDBMessageSelectorExample - } - finally - { - //Step 13. Be sure to close our JMS resources! - if (initialContext != null) - { - initialContext.close(); - } - if(connection != null) - { - connection.close(); - } - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-message-selector/src/main/java/org/hornetq/javaee/example/server/MDBMessageSelectorExample.java ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-message-selector/src/main/java/org/hornetq/javaee/example/server/MDBMessageSelectorExample.java b/activemq-arquillian/javaee/mdb-message-selector/src/main/java/org/hornetq/javaee/example/server/MDBMessageSelectorExample.java deleted file mode 100644 index 871e89c..0000000 --- a/activemq-arquillian/javaee/mdb-message-selector/src/main/java/org/hornetq/javaee/example/server/MDBMessageSelectorExample.java +++ /dev/null @@ -1,63 +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.server; - -import org.jboss.ejb3.annotation.ResourceAdapter; - -import javax.ejb.ActivationConfigProperty; -import javax.ejb.MessageDriven; -import javax.ejb.TransactionAttribute; -import javax.ejb.TransactionAttributeType; -import javax.ejb.TransactionManagement; -import javax.ejb.TransactionManagementType; -import javax.jms.Message; -import javax.jms.MessageListener; -import javax.jms.TextMessage; - -/** - * @author Andy Taylor - */ -@MessageDriven(name = "MDBMessageSelectorExample", - activationConfig = - { - @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), - @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/testQueue"), - @ActivationConfigProperty(propertyName = "messageSelector", propertyValue = "color = 'RED'") - }) -@TransactionManagement(value= TransactionManagementType.CONTAINER) -@TransactionAttribute(value= TransactionAttributeType.REQUIRED) -@ResourceAdapter("activemq-rar.rar") -public class MDBMessageSelectorExample implements MessageListener -{ - public void onMessage(Message message) - { - try - { - //Step 11. We know the client is sending a text message so we cast - TextMessage textMessage = (TextMessage)message; - - //Step 12. get the text from the message. - String text = textMessage.getText(); - - //Step 13. We check we received the right color of message - String color = textMessage.getStringProperty("color"); - - System.out.println("message " + text + " received color=" + color); - - } - catch (Exception e) - { - e.printStackTrace(); - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-message-selector/src/test/java/org/hornetq/javaee/examples/MDBCMTSetMessageSelectorRunnerTest.java ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-message-selector/src/test/java/org/hornetq/javaee/examples/MDBCMTSetMessageSelectorRunnerTest.java b/activemq-arquillian/javaee/mdb-message-selector/src/test/java/org/hornetq/javaee/examples/MDBCMTSetMessageSelectorRunnerTest.java deleted file mode 100644 index 5d24816..0000000 --- a/activemq-arquillian/javaee/mdb-message-selector/src/test/java/org/hornetq/javaee/examples/MDBCMTSetMessageSelectorRunnerTest.java +++ /dev/null @@ -1,62 +0,0 @@ -/* -* JBoss, Home of Professional Open Source. -* Copyright 2010, Red Hat, Inc., and individual contributors -* as indicated by the @author tags. See the copyright.txt file 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.hornetq.javaee.examples; - -import org.hornetq.javaee.example.MDBMessageSelectorClientExample; -import org.hornetq.javaee.example.server.MDBMessageSelectorExample; -import org.jboss.arquillian.container.test.api.Deployment; -import org.jboss.arquillian.container.test.api.RunAsClient; -import org.jboss.arquillian.junit.Arquillian; -import org.jboss.shrinkwrap.api.Archive; -import org.jboss.shrinkwrap.api.ShrinkWrap; -import org.jboss.shrinkwrap.api.spec.JavaArchive; -import org.junit.Test; -import org.junit.runner.RunWith; - -/** - * @author Andy Taylor - * 5/21/12 - */ -@RunAsClient -@RunWith(Arquillian.class) -public class MDBCMTSetMessageSelectorRunnerTest -{ - @Deployment - public static Archive getDeployment() - { - - final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "mdb.jar"); - ejbJar.addClass(MDBMessageSelectorExample.class); - System.out.println(ejbJar.toString(true)); - return ejbJar; - } - - @Test - public void runExample() throws Exception - { - MDBMessageSelectorClientExample.main(null); - //give the example time to run - Thread.sleep(1000); - } - - -} http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-message-selector/src/test/resources/arquillian.xml ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-message-selector/src/test/resources/arquillian.xml b/activemq-arquillian/javaee/mdb-message-selector/src/test/resources/arquillian.xml deleted file mode 100644 index ae8a732..0000000 --- a/activemq-arquillian/javaee/mdb-message-selector/src/test/resources/arquillian.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - ${basedir}/target/jbossas-node0 - -Djboss.inst=${basedir}/target/jbossas-node0 - standalone-example.xml - - true - ${node0:127.0.0.1} - ${as.managementPort:9999} - - - ${as.debug.port:8787} ${as.managementPort:9999} - 8 - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-tx-send/pom.xml ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-tx-send/pom.xml b/activemq-arquillian/javaee/mdb-tx-send/pom.xml deleted file mode 100644 index a081101..0000000 --- a/activemq-arquillian/javaee/mdb-tx-send/pom.xml +++ /dev/null @@ -1,14 +0,0 @@ - - 4.0.0 - - - org.apache.activemq - javaee - 5.9-SNAPSHOT - - - mdb-tx-send-example - jar - JEE MDB Transactional Send Example - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq/blob/05bc25cb/activemq-arquillian/javaee/mdb-tx-send/server/hornetq-configuration.xml ---------------------------------------------------------------------- diff --git a/activemq-arquillian/javaee/mdb-tx-send/server/hornetq-configuration.xml b/activemq-arquillian/javaee/mdb-tx-send/server/hornetq-configuration.xml deleted file mode 100644 index 567c63a..0000000 --- a/activemq-arquillian/javaee/mdb-tx-send/server/hornetq-configuration.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - HornetQ.main.config - - - ${jboss.server.data.dir}/messaging/bindings - - ${jboss.server.data.dir}/messaging/journal - - ${jboss.server.data.dir}/messaging/largemessages - - ${jboss.server.data.dir}/messaging/paging - - - - - org.hornetq.core.remoting.impl.netty.NettyConnectorFactory - - - - - - org.hornetq.core.remoting.impl.invm.InVMConnectorFactory - - - - - - - - - org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory - - - - - - org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory - - - - - - - - - - - - - - - - - - jms.queue.DLQ - jms.queue.ExpiryQueue - 0 - -1 - 10485760 - 10 - - - - -