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 0C157C19F for ; Fri, 19 Jul 2013 13:30:38 +0000 (UTC) Received: (qmail 89196 invoked by uid 500); 19 Jul 2013 13:30:37 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 89168 invoked by uid 500); 19 Jul 2013 13:30:37 -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 89161 invoked by uid 99); 19 Jul 2013 13:30:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jul 2013 13:30:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jul 2013 13:30:26 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D84B12388B3A; Fri, 19 Jul 2013 13:29:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1504871 [6/7] - in /activemq/trunk: ./ activemq-arquillian/ activemq-arquillian/ee-install/ activemq-arquillian/javaee/ activemq-arquillian/javaee/jca-config/ activemq-arquillian/javaee/jca-config/server/ activemq-arquillian/javaee/jca-con... Date: Fri, 19 Jul 2013 13:29:35 -0000 To: commits@activemq.apache.org From: gtully@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130719132939.D84B12388B3A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-not-supported/src/test/resources/arquillian.xml URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-not-supported/src/test/resources/arquillian.xml?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-not-supported/src/test/resources/arquillian.xml (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-not-supported/src/test/resources/arquillian.xml Fri Jul 19 13:29:30 2013 @@ -0,0 +1,43 @@ + + + + + + + + + + + + ${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 Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-not-supported/src/test/resources/arquillian.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-not-supported/src/test/resources/arquillian.xml ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-not-supported/src/test/resources/arquillian.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/pom.xml URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/pom.xml?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/pom.xml (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/pom.xml Fri Jul 19 13:29:30 2013 @@ -0,0 +1,14 @@ + + 4.0.0 + + + org.apache.activemq + javaee + 5.9-SNAPSHOT + + + jee-mdb-cmt-tx-example + jar + JEE MDB CMT Transaction Example + \ No newline at end of file Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/pom.xml ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/pom.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-roles.properties URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-roles.properties?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-roles.properties (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-roles.properties Fri Jul 19 13:29:30 2013 @@ -0,0 +1,22 @@ +# +# 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 Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-roles.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-roles.properties ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-roles.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-users.properties URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-users.properties?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-users.properties (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-users.properties Fri Jul 19 13:29:30 2013 @@ -0,0 +1,24 @@ +# +# 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 Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-users.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-users.properties ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/application-users.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/logging.properties URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/logging.properties?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/logging.properties (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/logging.properties Fri Jul 19 13:29:30 2013 @@ -0,0 +1,52 @@ +# +# 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 Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/logging.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/logging.properties ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/logging.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/mgmt-users.properties URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/mgmt-users.properties?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/mgmt-users.properties (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/mgmt-users.properties Fri Jul 19 13:29:30 2013 @@ -0,0 +1,24 @@ +# +# 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 Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/mgmt-users.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/mgmt-users.properties ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/mgmt-users.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/standalone-example.xml URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/standalone-example.xml?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/standalone-example.xml (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/standalone-example.xml Fri Jul 19 13:29:30 2013 @@ -0,0 +1,446 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/standalone-example.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/standalone-example.xml ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/server/standalone/configuration/standalone-example.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/MDB_CMT_TxRequiredClientExample.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/MDB_CMT_TxRequiredClientExample.java?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/MDB_CMT_TxRequiredClientExample.java (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/MDB_CMT_TxRequiredClientExample.java Fri Jul 19 13:29:30 2013 @@ -0,0 +1,92 @@ +/* + * 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(); + } + } + } +} Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/MDB_CMT_TxRequiredClientExample.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/MDB_CMT_TxRequiredClientExample.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/server/MDB_CMT_TxRequiredExample.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/server/MDB_CMT_TxRequiredExample.java?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/server/MDB_CMT_TxRequiredExample.java (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/server/MDB_CMT_TxRequiredExample.java Fri Jul 19 13:29:30 2013 @@ -0,0 +1,65 @@ +/* + * 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(); + } + } +} Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/server/MDB_CMT_TxRequiredExample.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/main/java/org/hornetq/javaee/example/server/MDB_CMT_TxRequiredExample.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/java/org/hornetq/javaee/examples/MDBCMTSetTXRequiredRunnerTest.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/java/org/hornetq/javaee/examples/MDBCMTSetTXRequiredRunnerTest.java?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/java/org/hornetq/javaee/examples/MDBCMTSetTXRequiredRunnerTest.java (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/java/org/hornetq/javaee/examples/MDBCMTSetTXRequiredRunnerTest.java Fri Jul 19 13:29:30 2013 @@ -0,0 +1,62 @@ +/* +* 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); + } + + +} Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/java/org/hornetq/javaee/examples/MDBCMTSetTXRequiredRunnerTest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/java/org/hornetq/javaee/examples/MDBCMTSetTXRequiredRunnerTest.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/resources/arquillian.xml URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/resources/arquillian.xml?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/resources/arquillian.xml (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/resources/arquillian.xml Fri Jul 19 13:29:30 2013 @@ -0,0 +1,43 @@ + + + + + + + + + + + + ${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 Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/resources/arquillian.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/resources/arquillian.xml ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-cmt-tx-required/src/test/resources/arquillian.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/pom.xml URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/pom.xml?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/pom.xml (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/pom.xml Fri Jul 19 13:29:30 2013 @@ -0,0 +1,14 @@ + + 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 Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/pom.xml ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/pom.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-roles.properties URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-roles.properties?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-roles.properties (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-roles.properties Fri Jul 19 13:29:30 2013 @@ -0,0 +1,22 @@ +# +# 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 Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-roles.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-roles.properties ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-roles.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-users.properties URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-users.properties?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-users.properties (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-users.properties Fri Jul 19 13:29:30 2013 @@ -0,0 +1,24 @@ +# +# 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 Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-users.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-users.properties ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/application-users.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/logging.properties URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/logging.properties?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/logging.properties (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/logging.properties Fri Jul 19 13:29:30 2013 @@ -0,0 +1,52 @@ +# +# 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 Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/logging.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/logging.properties ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/logging.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/mgmt-users.properties URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/mgmt-users.properties?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/mgmt-users.properties (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/mgmt-users.properties Fri Jul 19 13:29:30 2013 @@ -0,0 +1,24 @@ +# +# 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 Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/mgmt-users.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/mgmt-users.properties ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/mgmt-users.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/standalone-example.xml URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/standalone-example.xml?rev=1504871&view=auto ============================================================================== --- activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/standalone-example.xml (added) +++ activemq/trunk/activemq-arquillian/javaee/mdb-message-selector/server/standalone/configuration/standalone-example.xml Fri Jul 19 13:29:30 2013 @@ -0,0 +1,446 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +