ACTIVEMQ6-41 Drop Java EE examples
Project: http://git-wip-us.apache.org/repos/asf/activemq-6/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-6/commit/76d0cee5 Tree: http://git-wip-us.apache.org/repos/asf/activemq-6/tree/76d0cee5 Diff: http://git-wip-us.apache.org/repos/asf/activemq-6/diff/76d0cee5 Branch: refs/heads/master Commit: 76d0cee5f5462e29b1d739a038b5fff899fd8a35 Parents: 60576a7 Author: jbertram <jbert...@redhat.com> Authored: Fri Dec 5 13:44:14 2014 -0600 Committer: jbertram <jbert...@redhat.com> Committed: Wed Dec 10 09:49:12 2014 -0600 ---------------------------------------------------------------------- examples/javaee/README.md | 12 - examples/javaee/ejb-jms-transaction/pom.xml | 14 - examples/javaee/ejb-jms-transaction/readme.html | 203 -------- .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 502 ------------------ .../javaee/example/EJBClientExample.java | 98 ---- .../javaee/example/server/SendMessageBean.java | 146 ------ .../example/server/SendMessageService.java | 30 -- .../main/resources/jboss-ejb-client.properties | 7 - .../examples/MDBEJBTXRequiredRunnerTest.java | 56 -- .../src/test/resources/arquillian.xml | 34 -- examples/javaee/jca-config/pom.xml | 64 --- examples/javaee/jca-config/readme.html | 109 ---- .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 493 ------------------ .../configuration/standalone-example2.xml | 496 ------------------ .../javaee/example/MDBRemoteClientExample.java | 68 --- .../javaee/example/server/MDBQueueA.java | 55 -- .../javaee/example/server2/MDBQueueB.java | 59 --- .../javaee/example/server2/StatelessSender.java | 59 --- .../example/server2/StatelessSenderService.java | 31 -- .../main/resources/jboss-ejb-client.properties | 7 - .../example/server/ExampleRunner2Test.java | 107 ---- .../src/test/resources/arquillian.xml | 48 -- .../resources/jboss-deployment-structure.xml | 7 - examples/javaee/jca-remote/pom.xml | 64 --- examples/javaee/jca-remote/readme.html | 160 ------ .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 496 ------------------ .../configuration/standalone-example2.xml | 493 ------------------ .../example/MDBRemoteServerClientExample.java | 103 ---- .../javaee/example/server/MDBQueue.java | 79 --- .../javaee/examples/JCARemoteRunnerTest.java | 89 ---- .../src/test/resources/arquillian.xml | 47 -- .../resources/jboss-deployment-structure.xml | 7 - examples/javaee/jms-bridge/pom.xml | 14 - examples/javaee/jms-bridge/readme.html | 168 ------ .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 508 ------------------ .../javaee/example/JMSBridgeExample.java | 116 ----- .../javaee/examples/JMSBridgeRunnerTest.java | 38 -- .../src/test/resources/arquillian.xml | 34 -- examples/javaee/jms-context-injection/pom.xml | 14 - .../javaee/jms-context-injection/readme.html | 108 ---- .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 493 ------------------ .../JmsContextInjectionClientExample.java | 87 ---- .../server/JmsContextInjectionExample.java | 80 --- .../examples/JmsContextInjectionRunnerTest.java | 62 --- .../src/test/resources/arquillian.xml | 34 -- examples/javaee/mdb-bmt/pom.xml | 14 - examples/javaee/mdb-bmt/readme.html | 113 ---- .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 489 ----------------- .../javaee/example/MDB_BMTClientExample.java | 86 --- .../javaee/example/server/MDB_BMTExample.java | 77 --- .../example/server/ExampleRunnerTest.java | 54 -- .../mdb-bmt/src/test/resources/arquillian.xml | 34 -- .../mdb-cmt-setrollbackonly-with-dlq/pom.xml | 14 - .../readme.html | 127 ----- .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 494 ------------------ ...CMT_SetRollbackOnlyWithDLQClientExample.java | 103 ---- .../MDB_CMT_SetRollbackOnlyWithDLQExample.java | 70 --- .../MDBCMTSetRollbackOnlyWithDLQRunnerTest.java | 52 -- .../src/test/resources/arquillian.xml | 34 -- examples/javaee/mdb-cmt-setrollbackonly/pom.xml | 14 - .../javaee/mdb-cmt-setrollbackonly/readme.html | 112 ---- .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 489 ----------------- .../MDB_CMT_SetRollbackOnlyClientExample.java | 87 ---- .../server/MDB_CMT_SetRollbackOnlyExample.java | 76 --- .../MDBCMTSetRollbackOnlyRunnerTest.java | 54 -- .../src/test/resources/arquillian.xml | 34 -- examples/javaee/mdb-cmt-tx-local/pom.xml | 14 - examples/javaee/mdb-cmt-tx-local/readme.html | 125 ----- .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 489 ----------------- .../example/MDB_CMT_TxLocalClientExample.java | 87 ---- .../example/server/MDB_CMT_TxLocalExample.java | 96 ---- .../example/MDBCMTSetLocalTXRunnerTest.java | 54 -- .../src/test/resources/arquillian.xml | 34 -- .../javaee/mdb-cmt-tx-not-supported/pom.xml | 14 - .../javaee/mdb-cmt-tx-not-supported/readme.html | 116 ----- .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 489 ----------------- .../MDB_CMT_TxNotSupportedClientExample.java | 86 --- .../example/server/MDB_CMT_TxNotSupported.java | 79 --- .../MDBCMTSetTXNotSupportedRunnerTest.java | 54 -- .../src/test/resources/arquillian.xml | 34 -- examples/javaee/mdb-cmt-tx-required/pom.xml | 14 - examples/javaee/mdb-cmt-tx-required/readme.html | 115 ---- .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 489 ----------------- .../MDB_CMT_TxRequiredClientExample.java | 92 ---- .../server/MDB_CMT_TxRequiredExample.java | 60 --- .../examples/MDBCMTSetTXRequiredRunnerTest.java | 57 -- .../src/test/resources/arquillian.xml | 34 -- examples/javaee/mdb-message-selector/pom.xml | 14 - .../javaee/mdb-message-selector/readme.html | 127 ----- .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 489 ----------------- .../MDBMessageSelectorClientExample.java | 98 ---- .../server/MDBMessageSelectorExample.java | 64 --- .../MDBCMTSetMessageSelectorRunnerTest.java | 54 -- .../src/test/resources/arquillian.xml | 34 -- .../javaee/mdb-remote-failover-static/pom.xml | 90 ---- .../mdb-remote-failover-static/readme.html | 165 ------ .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-backup.xml | 511 ------------------ .../configuration/standalone-example.xml | 508 ------------------ .../configuration/standalone-live.xml | 513 ------------------ .../MDBRemoteFailoverStaticClientExample.java | 130 ----- .../server/MDBRemoteFailoverStaticExample.java | 90 ---- .../javaee/example/server/ServerKiller.java | 25 - .../examples/FailoverStaticRunnerTest.java | 101 ---- .../src/test/resources/arquillian.xml | 57 -- .../resources/jboss-deployment-structure.xml | 7 - examples/javaee/mdb-remote-failover/pom.xml | 90 ---- examples/javaee/mdb-remote-failover/readme.html | 165 ------ .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-backup.xml | 519 ------------------ .../configuration/standalone-example.xml | 504 ------------------ .../configuration/standalone-live.xml | 521 ------------------- .../example/MDBRemoteFailoverClientExample.java | 122 ----- .../server/MDBRemoteFailoverExample.java | 98 ---- .../javaee/example/server/ServerKiller.java | 25 - .../javaee/examples/FailoverRunnerTest.java | 98 ---- .../src/test/resources/arquillian.xml | 57 -- .../resources/jboss-deployment-structure.xml | 7 - examples/javaee/mdb-tx-send/pom.xml | 14 - examples/javaee/mdb-tx-send/readme.html | 155 ------ .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 493 ------------------ .../example/MDBMessageSendTxClientExample.java | 101 ---- .../example/server/MDBMessageSendTxExample.java | 99 ---- .../javaee/examples/MDBCMTTxSendRunnerTest.java | 57 -- .../src/test/resources/arquillian.xml | 34 -- .../resources/jboss-deployment-structure.xml | 7 - examples/javaee/pom.xml | 181 ------- examples/javaee/xarecovery/pom.xml | 14 - examples/javaee/xarecovery/readme.html | 201 ------- .../configuration/application-roles.properties | 22 - .../configuration/application-users.properties | 24 - .../standalone/configuration/logging.properties | 47 -- .../configuration/mgmt-users.properties | 24 - .../configuration/standalone-example.xml | 489 ----------------- .../example/XARecoveryExampleStepOne.java | 81 --- .../example/XARecoveryExampleStepTwo.java | 105 ---- .../example/server/XARecoveryExampleBean.java | 175 ------- .../server/XARecoveryExampleService.java | 27 - .../main/resources/jboss-ejb-client.properties | 7 - .../javaee/examples/XARecoveryRunnerTest.java | 100 ---- .../src/test/resources/arquillian.xml | 34 -- 199 files changed, 20787 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/README.md ---------------------------------------------------------------------- diff --git a/examples/javaee/README.md b/examples/javaee/README.md deleted file mode 100644 index faa5a5a..0000000 --- a/examples/javaee/README.md +++ /dev/null @@ -1,12 +0,0 @@ -Running the Java EE examples -======================== - -To run a javaee example first make sure you have WildFly installed, the examples were tested against against [8.0.0.Final](http://wildfly.org/downloads/). - -Then set the JBOSS_HOME property to your installation, something like: - -export JBOSS_HOME=/home/user/wildfly-8.0.0.Final - -Then simply cd into the directory of the example you want to run and 'mvn test'. - -The examples use [Arquillian](http://www.jboss.org/arquillian.html) to start the JBoss server and to run the example itself. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/pom.xml ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/pom.xml b/examples/javaee/ejb-jms-transaction/pom.xml deleted file mode 100644 index f63207a..0000000 --- a/examples/javaee/ejb-jms-transaction/pom.xml +++ /dev/null @@ -1,14 +0,0 @@ -<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>org.apache.activemq.example.javaee</groupId> - <artifactId>javaee-examples</artifactId> - <version>6.0.0-SNAPSHOT</version> - </parent> - - <artifactId>activemq-javaee-ejb-jms-example</artifactId> - <packaging>jar</packaging> - <name>ActiveMQ6 Java EE MDB EJB Transaction Example</name> -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/readme.html ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/readme.html b/examples/javaee/ejb-jms-transaction/readme.html deleted file mode 100644 index 7c950ce..0000000 --- a/examples/javaee/ejb-jms-transaction/readme.html +++ /dev/null @@ -1,203 +0,0 @@ -<html> - <head> - <title>ActiveMQ EJB/JMS Transaction Example</title> - <link rel="stylesheet" type="text/css" href="../../common/common.css" /> - <link rel="stylesheet" type="text/css" href="../../common/prettify.css" /> - <script type="text/javascript" src="../../common/prettify.js"></script> - </head> - <body onload="prettyPrint()"> - <h1>EJB/JMS Transaction Example</h1> - - <p>The example application will invoke an EJB which is deployed within WildFly which will:</p> - <ol> - <li>start an XA transaction</li> - <li>send a JMS message</li> - <li>update an in-memory database</li> - <li>commit the transaction</li> - </ol> - <p>The example application will then receive the message sent by the EJB.</p> - - <h2>WildFly configuration</h2> - - <p>The example leverages the Arquillian framework to run a WildFly instance and deploy the MDB.</p> - - <h2>Example step-by-step</h2> - - <p><i>download WildFly 8.0.0.Final from <a href="http://wildfly.org/downloads/">here</a> and install.</i></p> - <p><i>set the JBOSS_HOME property to point to the WildFly install directory</i></p> - <p><i>type <code>mvn verify</code> from the example directory to run</i></p> - - <p>The example code is composed of two main classes:</p> - <ul> - <li><code>EJBClientExample</code></li> - the example application - <li><code>SendMessageBean</code></li> - a Stateless EJB with a remote interface - </ul> - - <h3>Example Application</h3> - - <p>Let's take a look at EJBClientExample first.</p> - - <ol> - <li>First we need to get an initial context so we can look-up the EJB. This initial context will get it's properties from the jboss-ejb-client.properties.</li> - <pre class="prettyprint"> - Properties env = new Properties(); - env.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming"); - InitialContext initialContext = new InitialContext(); - </pre> - - <li>We look up the EJB</li> - <pre class="prettyprint"> - SendMessageService service = (SendMessageService) initialContext.lookup("ejb:/test//SendMessageBean!org.apache.activemq.javaee.example.server.SendMessageService"); - </pre> - - <li>We create the DB table which will be updated if it does not already exist</li> - <pre class="prettyprint"> - service.createTable(); - </pre> - - <li>We invoke the EJB's <code>sendAndUpdate</code> method. This method will send a JMS text message (with the text passed in parameter) - and insert a row in the database table with the text and the message's JMS Message ID</li> - <pre class="prettyprint"> - service.sendAndUpdate("This is a text message"); - </pre> - - <p><em>We will now consume the JMS message which was sent by the EJB at step 4.</em></p> - - <li>We need to get a new initial context so we can look-up the JMS connection factory and destination objects from JNDI.</li> - <pre class="prettyprint"> - env = new Properties(); - env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); - env.put(Context.PROVIDER_URL, "http-remoting://localhost:8080"); - initialContext = new InitialContext(env); - </pre> - - <li>We look up the JMS connection factory</li> - <pre class="prettyprint"> - ConnectionFactory cf = (ConnectionFactory)initialContext.lookup("jms/RemoteConnectionFactory"); - </pre> - - <li>We lookup the JMS queue</li> - <pre class="prettyprint"> - Queue queue = (Queue)initialContext.lookup("jms/queues/testQueue"); - </pre> - - <li>We create a connection, a session and a message consumer for the queue</li> - <pre class="prettyprint"> - connection = cf.createConnection("guest", "password"); - Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); - MessageConsumer consumer = session.createConsumer(queue); - </pre> - - <li>We start the JMS connection</li> - <pre class="prettyprint"> - connection.start(); - </pre> - - <li>We receive a message from the queue. It corresponds to the message sent by the EJB</li> - <pre class="prettyprint"> - TextMessage messageReceived = (TextMessage)consumer.receive(5000); - System.out.println("Received message: " + messageReceived.getText() + " (" + messageReceived.getJMSMessageID() + ")"); - </pre> - - <li>And finally, <b>always</b> remember to close your JMS connections and resources after use, in a <code>finally</code> block. Closing a JMS connection will automatically close all of its sessions, consumers, producer and browser objects</li> - - <pre class="prettyprint"> - finally - { - if (initialContext != null) - { - initialContext.close(); - } - if (connection != null) - { - connection.close(); - } - } - </pre> - </ol> - - <h3>EJB Example</h3> - - <p>Let's now take a look at the EJB example</p> - - <ol> - <li>First, we create a new initial context</li> - <pre class="prettyprint"> - ic = new InitialContext(); - </pre> - - <li>We look up the JMS <em>XA</em> Connection Factory (which is bound to <code>java:/JmsXA</code>)</li> - <pre class="prettyprint"> - ConnectionFactory cf = (ConnectionFactory)ic.lookup("java:/JmsXA"); - </pre> - - <li>We look up the JMS Queue</li> - <pre class="prettyprint"> - Queue queue = (Queue)ic.lookup("queue/testQueue"); - </pre> - - <li>We create a JMS connection, a session and a message producer for the queue</li> - <pre class="prettyprint"> - jmsConnection = cf.createConnection(); - Session session = jmsConnection.createSession(false, Session.AUTO_ACKNOWLEDGE); - MessageProducer messageProducer = session.createProducer(queue); - </pre> - - <li>We create a text message with the text passed in parameter of the EJB method</li> - <pre class="prettyprint"> - TextMessage message = session.createTextMessage(text); - </pre> - - <li>We send the message to the queue</li> - <pre class="prettyprint"> - messageProducer.send(message); - System.out.println("Sent message: " + message.getText() + "(" + message.getJMSMessageID() + ")"); - </pre> - - <li>We now lookup the JDBC <em>XA</em> DataSource</li> - <pre class="prettyprint"> - DataSource ds = (DataSource)ic.lookup("java:/XADS"); - </pre> - - <li>We retrieve a JDBC connection</li> - <pre class="prettyprint"> - jdbcConnection = ds.getConnection(); - </pre> - - <li>We create a prepared statement to insert the text and message's ID in the DB table</li> - <pre class="prettyprint"> - PreparedStatement pr = jdbcConnection.prepareStatement("INSERT INTO " + TABLE - + " (id, text) VALUES ('" + message.getJMSMessageID() + "', '" + text + "');"); - </pre> - - <li>We execute the prepared statement</li> - <pre class="prettyprint"> - pr.execute(); - </pre> - - <li>We close the prepared statement</li> - <pre class="prettyprint"> - pr.close(); - </pre> - - <li>And finally, <b>always</b> remember to close all your connections and resources (for both JMS and JDBC) after use, in a <code>finally</code> block.</li> - <pre class="prettyprint"> - finally - { - if (ic != null) - { - ic.close(); - } - if (jmsConnection != null) - { - jmsConnection.close(); - } - if (jdbcConnection != null) - { - jdbcConnection.close(); - } - } - </pre> - </ol> - </body> -</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/server/standalone/configuration/application-roles.properties ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/server/standalone/configuration/application-roles.properties b/examples/javaee/ejb-jms-transaction/server/standalone/configuration/application-roles.properties deleted file mode 100644 index 0ade8fb..0000000 --- a/examples/javaee/ejb-jms-transaction/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-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/server/standalone/configuration/application-users.properties ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/server/standalone/configuration/application-users.properties b/examples/javaee/ejb-jms-transaction/server/standalone/configuration/application-users.properties deleted file mode 100644 index c52e923..0000000 --- a/examples/javaee/ejb-jms-transaction/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-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/server/standalone/configuration/logging.properties ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/server/standalone/configuration/logging.properties b/examples/javaee/ejb-jms-transaction/server/standalone/configuration/logging.properties deleted file mode 100644 index 3fa31b0..0000000 --- a/examples/javaee/ejb-jms-transaction/server/standalone/configuration/logging.properties +++ /dev/null @@ -1,47 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF 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. -# - -# 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-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/server/standalone/configuration/mgmt-users.properties ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/server/standalone/configuration/mgmt-users.properties b/examples/javaee/ejb-jms-transaction/server/standalone/configuration/mgmt-users.properties deleted file mode 100644 index 349b004..0000000 --- a/examples/javaee/ejb-jms-transaction/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 <management /> 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-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/server/standalone/configuration/standalone-example.xml ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/server/standalone/configuration/standalone-example.xml b/examples/javaee/ejb-jms-transaction/server/standalone/configuration/standalone-example.xml deleted file mode 100644 index 2bab47d..0000000 --- a/examples/javaee/ejb-jms-transaction/server/standalone/configuration/standalone-example.xml +++ /dev/null @@ -1,502 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?> - -<server xmlns="urn:jboss:domain:2.0"> - <extensions> - <extension module="org.jboss.as.clustering.infinispan"/> - <extension module="org.jboss.as.connector"/> - <extension module="org.jboss.as.deployment-scanner"/> - <extension module="org.jboss.as.ee"/> - <extension module="org.jboss.as.ejb3"/> - <extension module="org.jboss.as.jacorb"/> - <extension module="org.jboss.as.jaxrs"/> - <extension module="org.jboss.as.jdr"/> - <extension module="org.jboss.as.jmx"/> - <extension module="org.jboss.as.jpa"/> - <extension module="org.jboss.as.jsf"/> - <extension module="org.jboss.as.jsr77"/> - <extension module="org.jboss.as.logging"/> - <extension module="org.jboss.as.mail"/> - <extension module="org.jboss.as.messaging"/> - <extension module="org.jboss.as.naming"/> - <extension module="org.jboss.as.pojo"/> - <extension module="org.jboss.as.remoting"/> - <extension module="org.jboss.as.sar"/> - <extension module="org.jboss.as.security"/> - <extension module="org.jboss.as.threads"/> - <extension module="org.jboss.as.transactions"/> - <extension module="org.jboss.as.webservices"/> - <extension module="org.jboss.as.weld"/> - <extension module="org.wildfly.extension.batch"/> - <extension module="org.wildfly.extension.io"/> - <extension module="org.wildfly.extension.undertow"/> - </extensions> - <management> - <security-realms> - <security-realm name="ManagementRealm"> - <authentication> - <local default-user="$local"/> - <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/> - </authentication> - <authorization map-groups-to-roles="false"> - <properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/> - </authorization> - </security-realm> - <security-realm name="ApplicationRealm"> - <authentication> - <local default-user="$local" allowed-users="*"/> - <properties path="application-users.properties" relative-to="jboss.server.config.dir"/> - </authentication> - <authorization> - <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/> - </authorization> - </security-realm> - </security-realms> - <audit-log> - <formatters> - <json-formatter name="json-formatter"/> - </formatters> - <handlers> - <file-handler name="file" formatter="json-formatter" relative-to="jboss.server.data.dir" path="audit-log.log"/> - </handlers> - <logger log-boot="true" log-read-only="false" enabled="false"> - <handlers> - <handler name="file"/> - </handlers> - </logger> - </audit-log> - <management-interfaces> - <http-interface security-realm="ManagementRealm" http-upgrade-enabled="true"> - <socket-binding http="management-http"/> - </http-interface> - </management-interfaces> - <access-control provider="simple"> - <role-mapping> - <role name="SuperUser"> - <include> - <user name="$local"/> - </include> - </role> - </role-mapping> - </access-control> - </management> - <profile> - <subsystem xmlns="urn:jboss:domain:logging:2.0"> - <console-handler name="CONSOLE"> - <level name="INFO"/> - <formatter> - <named-formatter name="COLOR-PATTERN"/> - </formatter> - </console-handler> - <periodic-rotating-file-handler name="FILE" autoflush="true"> - <formatter> - <named-formatter name="PATTERN"/> - </formatter> - <file relative-to="jboss.server.log.dir" path="server.log"/> - <suffix value=".yyyy-MM-dd"/> - <append value="true"/> - </periodic-rotating-file-handler> - <logger category="com.arjuna"> - <level name="WARN"/> - </logger> - <logger category="org.apache.tomcat.util.modeler"> - <level name="WARN"/> - </logger> - <logger category="org.jboss.as.config"> - <level name="DEBUG"/> - </logger> - <logger category="sun.rmi"> - <level name="WARN"/> - </logger> - <logger category="jacorb"> - <level name="WARN"/> - </logger> - <logger category="jacorb.config"> - <level name="ERROR"/> - </logger> - <root-logger> - <level name="INFO"/> - <handlers> - <handler name="CONSOLE"/> - <handler name="FILE"/> - </handlers> - </root-logger> - <formatter name="PATTERN"> - <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/> - </formatter> - <formatter name="COLOR-PATTERN"> - <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/> - </formatter> - </subsystem> - <subsystem xmlns="urn:jboss:domain:batch:1.0"> - <job-repository> - <in-memory/> - </job-repository> - <thread-pool> - <max-threads count="10"/> - <keepalive-time time="100" unit="milliseconds"/> - </thread-pool> - </subsystem> - <subsystem xmlns="urn:jboss:domain:datasources:2.0"> - <datasources> - <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true"> - <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url> - <driver>h2</driver> - <security> - <user-name>sa</user-name> - <password>sa</password> - </security> - </datasource> - <xa-datasource jndi-name="java:jboss/datasources/XADS" pool-name="ExampleXADS" enabled="true" use-java-context="true"> - <driver>h2</driver> - <xa-datasource-property name="URL">jdbc:h2:mem:test</xa-datasource-property> - <xa-pool> - <min-pool-size>10</min-pool-size> - <max-pool-size>20</max-pool-size> - <prefill>true</prefill> - </xa-pool> - <security> - <user-name>sa</user-name> - <password>sa</password> - </security> - </xa-datasource> - <drivers> - <driver name="h2" module="com.h2database.h2"> - <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class> - </driver> - </drivers> - </datasources> - </subsystem> - <subsystem xmlns="urn:jboss:domain:deployment-scanner:2.0"> - <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}"/> - </subsystem> - <subsystem xmlns="urn:jboss:domain:ee:2.0"> - <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement> - <jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement> - <annotation-property-replacement>false</annotation-property-replacement> - <concurrent> - <context-services> - <context-service name="default" jndi-name="java:jboss/ee/concurrency/context/default" use-transaction-setup-provider="true"/> - </context-services> - <managed-executor-services> - <managed-executor-service name="default" jndi-name="java:jboss/ee/concurrency/executor/default" context-service="default" hung-task-threshold="60000" core-threads="5" max-threads="25" keepalive-time="5000"/> - </managed-executor-services> - <managed-scheduled-executor-services> - <managed-scheduled-executor-service name="default" jndi-name="java:jboss/ee/concurrency/scheduler/default" context-service="default" hung-task-threshold="60000" core-threads="2" keepalive-time="3000"/> - </managed-scheduled-executor-services> - <managed-thread-factories> - <managed-thread-factory name="default" jndi-name="java:jboss/ee/concurrency/factory/default" context-service="default"/> - </managed-thread-factories> - </concurrent> - <default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:jboss/datasources/ExampleDS" jms-connection-factory="java:jboss/DefaultJMSConnectionFactory" managed-executor-service="java:jboss/ee/concurrency/executor/default" managed-scheduled-executor-service="java:jboss/ee/concurrency/scheduler/default" managed-thread-factory="java:jboss/ee/concurrency/factory/default"/> - </subsystem> - <subsystem xmlns="urn:jboss:domain:ejb3:2.0"> - <session-bean> - <stateful default-access-timeout="5000" cache-ref="simple" passivation-disabled-cache-ref="simple"/> - <singleton default-access-timeout="5000"/> - </session-bean> - <mdb> - <resource-adapter-ref resource-adapter-name="${ejb.resource-adapter-name:activemq-ra.rar}"/> - <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/> - </mdb> - <pools> - <bean-instance-pools> - <!-- A sample strict max pool configuration --> - <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/> - <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/> - </bean-instance-pools> - </pools> - <caches> - <cache name="simple"/> - <cache name="distributable" aliases="passivating clustered" passivation-store-ref="infinispan"/> - </caches> - <passivation-stores> - <passivation-store name="infinispan" cache-container="ejb" max-size="10000"/> - </passivation-stores> - <async thread-pool-name="default"/> - <timer-service thread-pool-name="default" default-data-store="default-file-store"> - <data-stores> - <file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/> - </data-stores> - </timer-service> - <remote connector-ref="http-remoting-connector" thread-pool-name="default"/> - <thread-pools> - <thread-pool name="default"> - <max-threads count="10"/> - <keepalive-time time="100" unit="milliseconds"/> - </thread-pool> - </thread-pools> - <iiop enable-by-default="false" use-qualified-name="false"/> - <default-security-domain value="other"/> - <default-missing-method-permissions-deny-access value="true"/> - </subsystem> - <subsystem xmlns="urn:jboss:domain:io:1.0"> - <worker name="default" io-threads="3"/> - <buffer-pool name="default" buffer-size="16384" buffers-per-slice="128"/> - </subsystem> - <subsystem xmlns="urn:jboss:domain:infinispan:2.0"> - <cache-container name="web" default-cache="passivation" module="org.wildfly.clustering.web.infinispan"> - <local-cache name="passivation" batching="true"> - <file-store passivation="true" purge="false"/> - </local-cache> - <local-cache name="persistent" batching="true"> - <file-store passivation="false" purge="false"/> - </local-cache> - </cache-container> - <cache-container name="ejb" aliases="sfsb" default-cache="passivation" module="org.wildfly.clustering.ejb.infinispan"> - <local-cache name="passivation" batching="true"> - <file-store passivation="true" purge="false"/> - </local-cache> - <local-cache name="persistent" batching="true"> - <file-store passivation="false" purge="false"/> - </local-cache> - </cache-container> - <cache-container name="hibernate" default-cache="local-query" module="org.hibernate"> - <local-cache name="entity"> - <transaction mode="NON_XA"/> - <eviction strategy="LRU" max-entries="10000"/> - <expiration max-idle="100000"/> - </local-cache> - <local-cache name="local-query"> - <transaction mode="NONE"/> - <eviction strategy="LRU" max-entries="10000"/> - <expiration max-idle="100000"/> - </local-cache> - <local-cache name="timestamps"> - <transaction mode="NONE"/> - <eviction strategy="NONE"/> - </local-cache> - </cache-container> - </subsystem> - <subsystem xmlns="urn:jboss:domain:jacorb:1.3"> - <orb socket-binding="jacorb" ssl-socket-binding="jacorb-ssl"> - <initializers transactions="spec" security="identity"/> - </orb> - </subsystem> - <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/> - <subsystem xmlns="urn:jboss:domain:jca:2.0"> - <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/> - <bean-validation enabled="true"/> - <default-workmanager> - <short-running-threads> - <core-threads count="50"/> - <queue-length count="50"/> - <max-threads count="50"/> - <keepalive-time time="10" unit="seconds"/> - </short-running-threads> - <long-running-threads> - <core-threads count="50"/> - <queue-length count="50"/> - <max-threads count="50"/> - <keepalive-time time="10" unit="seconds"/> - </long-running-threads> - </default-workmanager> - <cached-connection-manager/> - </subsystem> - <subsystem xmlns="urn:jboss:domain:jdr:1.0"/> - <subsystem xmlns="urn:jboss:domain:jmx:1.3"> - <expose-resolved-model/> - <expose-expression-model/> - <remoting-connector/> - </subsystem> - <subsystem xmlns="urn:jboss:domain:jpa:1.1"> - <jpa default-datasource="" default-extended-persistence-inheritance="DEEP"/> - </subsystem> - <subsystem xmlns="urn:jboss:domain:jsf:1.0"/> - <subsystem xmlns="urn:jboss:domain:jsr77:1.0"/> - <subsystem xmlns="urn:jboss:domain:mail:2.0"> - <mail-session name="default" jndi-name="java:jboss/mail/Default"> - <smtp-server outbound-socket-binding-ref="mail-smtp"/> - </mail-session> - </subsystem> - <subsystem xmlns="urn:jboss:domain:messaging:2.0"> - <activemq-server> - <persistence-enabled>true</persistence-enabled> - <journal-file-size>102400</journal-file-size> - <journal-min-files>2</journal-min-files> - <connectors> - <http-connector name="http-connector" socket-binding="http"> - <param key="http-upgrade-endpoint" value="http-acceptor"/> - </http-connector> - <http-connector name="http-connector-throughput" socket-binding="http"> - <param key="http-upgrade-endpoint" value="http-acceptor-throughput"/> - <param key="batch-delay" value="50"/> - </http-connector> - <in-vm-connector name="in-vm" server-id="0"/> - </connectors> - <acceptors> - <http-acceptor name="http-acceptor" http-listener="default"/> - <http-acceptor name="http-acceptor-throughput" http-listener="default"> - <param key="batch-delay" value="50"/> - <param key="direct-deliver" value="false"/> - </http-acceptor> - <in-vm-acceptor name="in-vm" server-id="0"/> - </acceptors> - <security-settings> - <security-setting match="#"> - <permission type="send" roles="guest"/> - <permission type="consume" roles="guest"/> - <permission type="createNonDurableQueue" roles="guest"/> - <permission type="deleteNonDurableQueue" roles="guest"/> - </security-setting> - </security-settings> - <address-settings> - <!--default for catch all--> - <address-setting match="#"> - <dead-letter-address>jms.queue.DLQ</dead-letter-address> - <expiry-address>jms.queue.ExpiryQueue</expiry-address> - <redelivery-delay>0</redelivery-delay> - <max-size-bytes>10485760</max-size-bytes> - <address-full-policy>PAGE</address-full-policy> - <page-size-bytes>2097152</page-size-bytes> - <message-counter-history-day-limit>10</message-counter-history-day-limit> - </address-setting> - </address-settings> - <jms-connection-factories> - <connection-factory name="InVmConnectionFactory"> - <connectors> - <connector-ref connector-name="in-vm"/> - </connectors> - <entries> - <entry name="java:/ConnectionFactory"/> - </entries> - </connection-factory> - <connection-factory name="RemoteConnectionFactory"> - <connectors> - <connector-ref connector-name="http-connector"/> - </connectors> - <entries> - <entry name="java:jboss/exported/jms/RemoteConnectionFactory"/> - </entries> - </connection-factory> - <pooled-connection-factory name="activemq-ra"> - <transaction mode="xa"/> - <connectors> - <connector-ref connector-name="in-vm"/> - </connectors> - <entries> - <entry name="java:/JmsXA"/> - <!-- Global JNDI entry used to provide a default JMS Connection factory to EE application --> - <entry name="java:jboss/DefaultJMSConnectionFactory"/> - </entries> - </pooled-connection-factory> - </jms-connection-factories> - <jms-destinations> - <jms-queue name="testQueue"> - <entry name="queue/testQueue"/> - <entry name="java:jboss/exported/jms/queues/testQueue"/> - </jms-queue> - </jms-destinations> - </activemq-server> - </subsystem> - <subsystem xmlns="urn:jboss:domain:naming:2.0"> - <remote-naming/> - </subsystem> - <subsystem xmlns="urn:jboss:domain:pojo:1.0"/> - <subsystem xmlns="urn:jboss:domain:remoting:2.0"> - <endpoint worker="default"/> - <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/> - </subsystem> - <subsystem xmlns="urn:jboss:domain:resource-adapters:2.0"/> - <subsystem xmlns="urn:jboss:domain:sar:1.0"/> - <subsystem xmlns="urn:jboss:domain:security:1.2"> - <security-domains> - <security-domain name="other" cache-type="default"> - <authentication> - <login-module code="Remoting" flag="optional"> - <module-option name="password-stacking" value="useFirstPass"/> - </login-module> - <login-module code="RealmDirect" flag="required"> - <module-option name="password-stacking" value="useFirstPass"/> - </login-module> - </authentication> - </security-domain> - <security-domain name="jboss-web-policy" cache-type="default"> - <authorization> - <policy-module code="Delegating" flag="required"/> - </authorization> - </security-domain> - <security-domain name="jboss-ejb-policy" cache-type="default"> - <authorization> - <policy-module code="Delegating" flag="required"/> - </authorization> - </security-domain> - </security-domains> - </subsystem> - <subsystem xmlns="urn:jboss:domain:threads:1.1"/> - <subsystem xmlns="urn:jboss:domain:transactions:2.0"> - <core-environment> - <process-id> - <uuid/> - </process-id> - </core-environment> - <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/> - <coordinator-environment default-timeout="300"/> - </subsystem> - <subsystem xmlns="urn:jboss:domain:undertow:1.0"> - <buffer-caches> - <buffer-cache name="default" buffer-size="1024" buffers-per-region="1024" max-regions="10"/> - </buffer-caches> - <server name="default-server"> - <http-listener name="default" socket-binding="http"/> - <host name="default-host" alias="localhost"> - <location name="/" handler="welcome-content"/> - <filter-ref name="server-header"/> - <filter-ref name="x-powered-by-header"/> - </host> - </server> - <servlet-container name="default" default-buffer-cache="default" stack-trace-on-error="local-only"> - <jsp-config/> - </servlet-container> - <handlers> - <file name="welcome-content" path="${jboss.home.dir}/welcome-content" directory-listing="true"/> - </handlers> - <filters> - <response-header name="server-header" header-name="Server" header-value="Wildfly 8"/> - <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow 1"/> - </filters> - </subsystem> - <subsystem xmlns="urn:jboss:domain:webservices:1.2"> - <modify-wsdl-address>true</modify-wsdl-address> - <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host> - <endpoint-config name="Standard-Endpoint-Config"/> - <endpoint-config name="Recording-Endpoint-Config"> - <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM"> - <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/> - </pre-handler-chain> - </endpoint-config> - <client-config name="Standard-Client-Config"/> - </subsystem> - <subsystem xmlns="urn:jboss:domain:weld:2.0"/> - </profile> - <interfaces> - <interface name="management"> - <inet-address value="${jboss.bind.address.management:127.0.0.1}"/> - </interface> - <interface name="public"> - <inet-address value="${jboss.bind.address:127.0.0.1}"/> - </interface> - <!-- TODO - only show this if the jacorb subsystem is added --> - <interface name="unsecure"> - <!-- - ~ Used for IIOP sockets in the standard configuration. - ~ To secure JacORB you need to setup SSL - --> - <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/> - </interface> - </interfaces> - <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}"> - <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/> - <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/> - <socket-binding name="ajp" port="${jboss.ajp.port:8009}"/> - <socket-binding name="http" port="${jboss.http.port:8080}"/> - <socket-binding name="https" port="${jboss.https.port:8443}"/> - <socket-binding name="jacorb" interface="unsecure" port="3528"/> - <socket-binding name="jacorb-ssl" interface="unsecure" port="3529"/> - <socket-binding name="messaging-group" port="0" multicast-address="${jboss.messaging.group.address:231.7.7.7}" multicast-port="${jboss.messaging.group.port:9876}"/> - <socket-binding name="txn-recovery-environment" port="4712"/> - <socket-binding name="txn-status-manager" port="4713"/> - <outbound-socket-binding name="mail-smtp"> - <remote-destination host="localhost" port="25"/> - </outbound-socket-binding> - </socket-binding-group> -</server> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/src/main/java/org/apache/activemq/javaee/example/EJBClientExample.java ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/src/main/java/org/apache/activemq/javaee/example/EJBClientExample.java b/examples/javaee/ejb-jms-transaction/src/main/java/org/apache/activemq/javaee/example/EJBClientExample.java deleted file mode 100644 index a02e6b0..0000000 --- a/examples/javaee/ejb-jms-transaction/src/main/java/org/apache/activemq/javaee/example/EJBClientExample.java +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.apache.activemq.javaee.example; - -import javax.jms.Connection; -import javax.jms.ConnectionFactory; -import javax.jms.MessageConsumer; -import javax.jms.Queue; -import javax.jms.Session; -import javax.jms.TextMessage; -import javax.naming.Context; -import javax.naming.InitialContext; -import java.util.Properties; - -import org.apache.activemq.javaee.example.server.SendMessageService; - -/** - * An example showing how to invoke a EJB which sends a JMS message and update a JDBC table in the same transaction. - * - * @author <a href="mailto:andy.tay...@jboss.org">Andy Taylor</a> - * @author <a href="mailto:jmes...@redhat.com">Jeff Mesnil</a> - * @author Justin Bertram - */ -public class EJBClientExample -{ - public static void main(final String[] args) throws Exception - { - InitialContext initialContext = null; - Connection connection = null; - try - { - // Step 1. Create an initial context to perform the EJB lookup. - Properties env = new Properties(); - env.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming"); - initialContext = new InitialContext(env); - - // Step 2. Lookup the EJB - SendMessageService service = (SendMessageService) initialContext.lookup("ejb:/test//SendMessageBean!org.apache.activemq.javaee.example.server.SendMessageService"); - - // Step 3. Create the DB table which will be updated - service.createTable(); - - // Step 4. Invoke the sendAndUpdate method - service.sendAndUpdate("This is a text message"); - System.out.println("invoked the EJB service"); - - // Step 5. Create a new initial context for the JMS JNDI look-ups. - env = new Properties(); - env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); - env.put(Context.PROVIDER_URL, "http-remoting://localhost:8080"); - initialContext = new InitialContext(env); - - // Step 6. Lookup the JMS connection factory - ConnectionFactory cf = (ConnectionFactory) initialContext.lookup("jms/RemoteConnectionFactory"); - - // Step 7. Lookup the queue - Queue queue = (Queue) initialContext.lookup("jms/queues/testQueue"); - - // Step 8. Create a connection, a session and a message consumer for the queue - connection = cf.createConnection("guest", "password"); - Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); - MessageConsumer consumer = session.createConsumer(queue); - - // Step 9. Start the connection - connection.start(); - - // Step 10. Receive the message sent by the EJB - TextMessage messageReceived = (TextMessage) consumer.receive(5000); - System.out.println("Received message: " + messageReceived.getText() + " (" + messageReceived.getJMSMessageID() + ")"); - } - finally - { - // Step 11. Be sure to close the resources! - if (initialContext != null) - { - initialContext.close(); - } - if (connection != null) - { - connection.close(); - } - } - } -} http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/src/main/java/org/apache/activemq/javaee/example/server/SendMessageBean.java ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/src/main/java/org/apache/activemq/javaee/example/server/SendMessageBean.java b/examples/javaee/ejb-jms-transaction/src/main/java/org/apache/activemq/javaee/example/server/SendMessageBean.java deleted file mode 100644 index 432a90b..0000000 --- a/examples/javaee/ejb-jms-transaction/src/main/java/org/apache/activemq/javaee/example/server/SendMessageBean.java +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.apache.activemq.javaee.example.server; - -import java.sql.PreparedStatement; - -import javax.ejb.Remote; -import javax.ejb.Stateless; -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.InitialContext; -import javax.sql.DataSource; - -/** - * An EJB which sends a JMS message and update a JDBC table in the same transaction. - * - * @author <a href="mailto:andy.tay...@jboss.org">Andy Taylor</a> - * @author <a href="mailto:jmes...@redhat.com">Jeff Mesnil</a> - */ -@Stateless -@Remote(SendMessageService.class) -public class SendMessageBean implements SendMessageService -{ - - private static final String TABLE = "activemq_example"; - - public void createTable() throws Exception - { - InitialContext ic = new InitialContext(); - DataSource ds = (DataSource)ic.lookup("java:jboss/datasources/ExampleDS"); - java.sql.Connection con = ds.getConnection(); - - // check if the table exists: - boolean createTable = false; - try - { - PreparedStatement pr = con.prepareStatement("SELECT * FROM " + SendMessageBean.TABLE + ";"); - pr.executeQuery(); - pr.close(); - } - catch (Exception e) - { - createTable = true; - } - - if (createTable) - { - PreparedStatement pr = con.prepareStatement("CREATE TABLE " + SendMessageBean.TABLE + - "(id VARCHAR(100), text VARCHAR(100));"); - pr.execute(); - pr.close(); - System.out.println("Table " + SendMessageBean.TABLE + " created"); - } - - con.close(); - } - - public void sendAndUpdate(final String text) throws Exception - { - InitialContext ic = null; - Connection jmsConnection = null; - java.sql.Connection jdbcConnection = null; - - try - { - // Step 1. Lookup the initial context - ic = new InitialContext(); - - // JMS operations - - // Step 2. Look up the XA Connection Factory - ConnectionFactory cf = (ConnectionFactory)ic.lookup("java:/JmsXA"); - - // Step 3. Look up the Queue - Queue queue = (Queue)ic.lookup("queue/testQueue"); - - // Step 4. Create a connection, a session and a message producer for the queue - jmsConnection = cf.createConnection(); - Session session = jmsConnection.createSession(false, Session.AUTO_ACKNOWLEDGE); - MessageProducer messageProducer = session.createProducer(queue); - - // Step 5. Create a Text Message - TextMessage message = session.createTextMessage(text); - - // Step 6. Send The Text Message - messageProducer.send(message); - System.out.println("Sent message: " + message.getText() + "(" + message.getJMSMessageID() + ")"); - - // DB operations - - // Step 7. Look up the XA Data Source - DataSource ds = (DataSource)ic.lookup("java:jboss/datasources/XADS"); - - // Step 8. Retrieve the JDBC connection - jdbcConnection = ds.getConnection(); - - // Step 9. Create the prepared statement to insert the text and the message's ID in the table - PreparedStatement pr = jdbcConnection.prepareStatement("INSERT INTO " + SendMessageBean.TABLE + - " (id, text) VALUES ('" + - message.getJMSMessageID() + - "', '" + - text + - "');"); - - // Step 10. execute the prepared statement - pr.execute(); - - // Step 11. close the prepared statement - pr.close(); - } - finally - { - // Step 12. Be sure to close all resources! - if (ic != null) - { - ic.close(); - } - if (jmsConnection != null) - { - jmsConnection.close(); - } - if (jdbcConnection != null) - { - jdbcConnection.close(); - } - } - } -} http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/src/main/java/org/apache/activemq/javaee/example/server/SendMessageService.java ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/src/main/java/org/apache/activemq/javaee/example/server/SendMessageService.java b/examples/javaee/ejb-jms-transaction/src/main/java/org/apache/activemq/javaee/example/server/SendMessageService.java deleted file mode 100644 index d24f006..0000000 --- a/examples/javaee/ejb-jms-transaction/src/main/java/org/apache/activemq/javaee/example/server/SendMessageService.java +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.apache.activemq.javaee.example.server; - -/** - * The interface of an EJB which sends a JMS message and updates a JDBC table in the same transaction. - * - * @author <a href="mailto:andy.tay...@jboss.org">Andy Taylor</a> - */ -public interface SendMessageService -{ - void sendAndUpdate(String text) throws Exception; - - void createTable() throws Exception; - -} http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/src/main/resources/jboss-ejb-client.properties ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/src/main/resources/jboss-ejb-client.properties b/examples/javaee/ejb-jms-transaction/src/main/resources/jboss-ejb-client.properties deleted file mode 100644 index fcf57ba..0000000 --- a/examples/javaee/ejb-jms-transaction/src/main/resources/jboss-ejb-client.properties +++ /dev/null @@ -1,7 +0,0 @@ -remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false - -remote.connections=default - -remote.connection.default.host=localhost -remote.connection.default.port = 8080 -remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/src/test/java/org/apache/activemq/javaee/examples/MDBEJBTXRequiredRunnerTest.java ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/src/test/java/org/apache/activemq/javaee/examples/MDBEJBTXRequiredRunnerTest.java b/examples/javaee/ejb-jms-transaction/src/test/java/org/apache/activemq/javaee/examples/MDBEJBTXRequiredRunnerTest.java deleted file mode 100644 index 7c85474..0000000 --- a/examples/javaee/ejb-jms-transaction/src/test/java/org/apache/activemq/javaee/examples/MDBEJBTXRequiredRunnerTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.apache.activemq.javaee.examples; - -import org.apache.activemq.javaee.example.EJBClientExample; -import org.apache.activemq.javaee.example.server.SendMessageBean; -import org.apache.activemq.javaee.example.server.SendMessageService; -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 <a href="mailto:andy.tay...@jboss.org">Andy Taylor</a> - * 5/21/12 - */ -@RunAsClient -@RunWith(Arquillian.class) -public class MDBEJBTXRequiredRunnerTest -{ - @Deployment - public static Archive getDeployment() - { - final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "ejb.jar"); - ejbJar.addClass(SendMessageBean.class); - ejbJar.addClass(SendMessageService.class); - System.out.println(ejbJar.toString(true)); - return ejbJar; - } - - @Test - public void runExample() throws Exception - { - EJBClientExample.main(null); - //give the example time to run - Thread.sleep(10000); - } -} http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/ejb-jms-transaction/src/test/resources/arquillian.xml ---------------------------------------------------------------------- diff --git a/examples/javaee/ejb-jms-transaction/src/test/resources/arquillian.xml b/examples/javaee/ejb-jms-transaction/src/test/resources/arquillian.xml deleted file mode 100644 index 1aada30..0000000 --- a/examples/javaee/ejb-jms-transaction/src/test/resources/arquillian.xml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<arquillian xmlns="http://jboss.org/schema/arquillian" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd"> - - <!-- Uncomment to have test archives exported to the file system for inspection. -This feature can also be controlled using the system property arquillian.deploymentExportPath --> - <!-- -<engine> -<property name="deploymentExportPath">target</property> -</engine> ---> - - <defaultProtocol type="Servlet 3.0" /> - - <container qualifier="jboss" default="true"> - <configuration> - <property name="jbossHome">${basedir}/target/jbossas-node0</property> - <property name="serverConfig">standalone-example.xml</property> - <property name="allowConnectingToRunningServer">true</property> - <property name="managementAddress">${node0:127.0.0.1}</property> - </configuration> - </container> - - <!-- logThreshold proposed --> - <!-- -<container qualifier="jbossas-managed"> -<configuration> -<property name="logThreshold">ERROR</property> -</configuration> -</container> ---> - -</arquillian> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/jca-config/pom.xml ---------------------------------------------------------------------- diff --git a/examples/javaee/jca-config/pom.xml b/examples/javaee/jca-config/pom.xml deleted file mode 100644 index 71982c4..0000000 --- a/examples/javaee/jca-config/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ -<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>org.apache.activemq.example.javaee</groupId> - <artifactId>javaee-examples</artifactId> - <version>6.0.0-SNAPSHOT</version> - </parent> - - <artifactId>activemq-javaee-jca-config-example</artifactId> - <packaging>jar</packaging> - <name>ActiveMQ6 Java EE JCA Config Example</name> - - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-resources-plugin</artifactId> - <executions> - <!-- Copy the AS for the second node into current_submodule/target/as-node1.--> - <execution> - <id>as-node1</id> - <inherited>true</inherited> - <phase>generate-test-resources</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>${basedir}/target/jbossas-node1</outputDirectory> - <overwrite>true</overwrite> - <resources> - <resource> - <directory>${jboss.home}</directory> - <excludes> - <exclude>standalone/data</exclude> - <exclude>standalone/log</exclude> - <exclude>standalone/tmp</exclude> - </excludes> - </resource> - <resource> - <directory>${basedir}/server</directory> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>2.12</version> - <configuration> - <argLine>-Dlogging.configuration=file:///${user.dir}/test/config/logging.properties</argLine> - <!-- Parameters to test cases. --> - <systemPropertyVariables> - <arquillian.launch>clustering-all</arquillian.launch> - </systemPropertyVariables> - </configuration> - </plugin> - </plugins> - </build> -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/jca-config/readme.html ---------------------------------------------------------------------- diff --git a/examples/javaee/jca-config/readme.html b/examples/javaee/jca-config/readme.html deleted file mode 100644 index f303af3..0000000 --- a/examples/javaee/jca-config/readme.html +++ /dev/null @@ -1,109 +0,0 @@ -<html> - <head> - <title>ActiveMQ Java EE JCA Configuration Example</title> - <link rel="stylesheet" type="text/css" href="../../common/common.css" /> - <link rel="stylesheet" type="text/css" href="../../common/prettify.css" /> - <script type="text/javascript" src="../../common/prettify.js"></script> - </head> - <body onload="prettyPrint()"> - <h1>Java EE Resource Adapter Configuration Example</h1> - - <p>This example demonstrates how to configure several properties on the ActiveMQ Resource Adapter. We setup two - WildFly. The enterprise application is being deployed in one application server while the MDBs and JMS - Connections are pointing to a remote server</p> - <p>This example is composed of two message-driven beans (MDB), MDBQueueA and MDBQueueB, and a stateless session - bean StatelessSender, and a main class MDBRemoteClientExample.<p> - <p>MDBRemoteClientExample will invoke the StatelessSender bean on the second server which will in turn send a - message to 2 queues on the first server which will then be consumed by each MDB.</p> - <p>MDBQueueA consumes the message locally.</p> - <p>MDBQueueB is on the second server who's JCA Adapter is configured to consume remotely from the first server</p> - - <h2>WildFly configuration</h2> - - <p>The example leverages the Arquillian framework to run multiple WildFly instances and deploy the MDBs and SLSB.</p> - - <h2>Example step-by-step</h2> - - <p><i>download WildFly 8.0.0.Final from <a href="http://wildfly.org/downloads/">here</a> and install.</i></p> - <p><i>set the JBOSS_HOME property to point to the WildFly install directory</i></p> - <p><i>type <code>mvn verify</code> from the example directory to run</i></p> - - <ol> - <li>First we need to get an initial context so we can look-up the EJB. This initial context will get it's properties from the jboss-ejb-client.properties.</li> - <pre class="prettyprint"> - Properties env = new Properties(); - env.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming"); - initialContext = new InitialContext(env); - </pre> - - <li>Getting a reference to the Stateless Bean</li> - <pre class="prettyprint"> - StatelessSenderService sender = (StatelessSenderService)initialContext.lookup("ejb:/test//StatelessSender!org.apache.activemq.javaee.example.server2.StatelessSenderService"); - </pre> - - <li>Calling the Stateless Bean</li> - <pre class="prettyprint"> - sender.sendHello("Hello there MDB!"); - </pre> - - <li>On the second server we invoke the EJB StatelessSender: This will send 2 messages to server 1 using the configured outbound adapter</li> - <pre class="prettyprint"> - Queue destQueueA = ActiveMQJMSClient.createQueue("A"); - Queue destQueueB = ActiveMQJMSClient.createQueue("B"); - </pre> - - <li>Create a connection to a remote server using a connection-factory we injected. JCA will actually manage this through a <i>connection pool</i></li> - <pre class="prettyprint"> - Connection conn = connectionFactory.createConnection("guest", "password"); - </pre> - - <li>Send a message to a QueueA on server1, which will be received by MDBQueueA on server1</li> - <pre class="prettyprint"> - Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); - MessageProducer prodA = sess.createProducer(destQueueA); - prod.send(sess.createTextMessage(message)); - </pre> - - <li>Send a message to a QueueB on the remote server1, which will be received by MDBQueueA on server2</li> - <pre class="prettyprint"> - MessageProducer prodB = sess.createProducer(destQueueB); - prodB.send(sess.createTextMessage(message)); - </pre> - - <li>Close the connection. (Since this is a JCA connection, this close will return the connection back to the connection pool)</li> - <pre class="prettyprint"> - conn.close(); - </pre> - - <li>The message is received by MDBQueueA on server1 which consumed from a local queue</li> - - <pre class="prettyprint"> -@MessageDriven(name = "MDB_QueueA", - activationConfig = - { - @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), - @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/A") - }) -public class MDBQueueA implements MessageListener -{ - public void onMessage(Message message)... - </pre> - - <li>Another message is received on MDBQueueB on server2 which consumed from a remote queue on server1. - - <pre class="prettyprint"> -@MessageDriven(name = "MDB_QueueB", - activationConfig = - { - @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), - @ActivationConfigProperty(propertyName = "destination", propertyValue = "B"), - @ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "false") - }) -@ResourceAdapter("activemq-ra-remote.rar") -public class MDBQueueB implements MessageListener -{ - public void onMessage(Message message)... - </pre> - </ol> - </body> -</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-6/blob/76d0cee5/examples/javaee/jca-config/server/standalone/configuration/application-roles.properties ---------------------------------------------------------------------- diff --git a/examples/javaee/jca-config/server/standalone/configuration/application-roles.properties b/examples/javaee/jca-config/server/standalone/configuration/application-roles.properties deleted file mode 100644 index 0ade8fb..0000000 --- a/examples/javaee/jca-config/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-6/blob/76d0cee5/examples/javaee/jca-config/server/standalone/configuration/application-users.properties ---------------------------------------------------------------------- diff --git a/examples/javaee/jca-config/server/standalone/configuration/application-users.properties b/examples/javaee/jca-config/server/standalone/configuration/application-users.properties deleted file mode 100644 index c52e923..0000000 --- a/examples/javaee/jca-config/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-6/blob/76d0cee5/examples/javaee/jca-config/server/standalone/configuration/logging.properties ---------------------------------------------------------------------- diff --git a/examples/javaee/jca-config/server/standalone/configuration/logging.properties b/examples/javaee/jca-config/server/standalone/configuration/logging.properties deleted file mode 100644 index 3fa31b0..0000000 --- a/examples/javaee/jca-config/server/standalone/configuration/logging.properties +++ /dev/null @@ -1,47 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF 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. -# - -# 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-6/blob/76d0cee5/examples/javaee/jca-config/server/standalone/configuration/mgmt-users.properties ---------------------------------------------------------------------- diff --git a/examples/javaee/jca-config/server/standalone/configuration/mgmt-users.properties b/examples/javaee/jca-config/server/standalone/configuration/mgmt-users.properties deleted file mode 100644 index 349b004..0000000 --- a/examples/javaee/jca-config/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 <management /> 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