http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/en/examples.xml ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/en/examples.xml b/docs/quickstart-guide/en/examples.xml new file mode 100644 index 0000000..8dcccea --- /dev/null +++ b/docs/quickstart-guide/en/examples.xml @@ -0,0 +1,330 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ============================================================================= --> +<!-- Copyright © 2009 Red Hat, Inc. and others. --> +<!-- --> +<!-- The text of and illustrations in this document are licensed by Red Hat under --> +<!-- a Creative Commons AttributionâShare Alike 3.0 Unported license ("CC-BY-SA"). --> +<!-- --> +<!-- An explanation of CC-BY-SA is available at --> +<!-- --> +<!-- http://creativecommons.org/licenses/by-sa/3.0/. --> +<!-- --> +<!-- In accordance with CC-BY-SA, if you distribute this document or an adaptation --> +<!-- of it, you must provide the URL for the original version. --> +<!-- --> +<!-- Red Hat, as the licensor of this document, waives the right to enforce, --> +<!-- and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent --> +<!-- permitted by applicable law. --> +<!-- ============================================================================= --> + +<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ +<!ENTITY % BOOK_ENTITIES SYSTEM "HornetQ_QuickStart_Guide.ent"> +%BOOK_ENTITIES; +]> +<chapter id="examples"> + <title>Running the Examples</title> + <para>In the directory <literal>examples</literal> there are 2 sets of examples, these are </para> + <itemizedlist> + <listitem> + <para>JMS Examples - these demonstrate functionality while sending and consumng JMS + messages.</para> + </listitem> + <listitem> + <para>Java EE Examples - these demonstrate application server integration, e.g. MDBs, EJBs, + Servlets, etc.</para> + </listitem> + </itemizedlist> + <section id="examples.jms"> + <title>The JMS examples</title> + <para>The JMS Examples all follow the same format. Each examples is contained in its own + directory which contains the following.</para> + <itemizedlist> + <listitem> + <para><literal>pom.xml</literal></para> + <para>This is the Maven build file used to run the example</para> + </listitem> + <listitem> + <para><literal>src</literal> directory</para> + <para>This contains the source code for the example</para> + </listitem> + <listitem> + <para><literal>resources/hornetq/server0</literal> configuration directory</para> + <para>This contains the configuration files needed to run the server for the example. + There may be multiple configuration directories <literal>server0</literal>, <literal + >server1</literal> etc for clustered examples etc.</para> + </listitem> + </itemizedlist> + <para>Each example will start one or more stand-alone servers and stop them after the example + has completed.</para> + <para>As a quick start we'll run the queue example. For all other examples refer to the main + user manual.</para> + <para>Firstly open a Shell or a Command prompt and navigate to the <literal + >examples/jms/queue</literal> directory.</para> + <para>Type the command <literal>mvn verify</literal> and you should see the following output:</para> + <programlisting> + +[INFO] Scanning for projects... +[INFO] +[INFO] ------------------------------------------------------------------------ +[INFO] Building HornetQ JMS Queue Example 2.3.0.BETA-SNAPSHOT +[INFO] ------------------------------------------------------------------------ +[INFO] +[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hornetq-jms-queue-example --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 3 resources +[INFO] +[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ hornetq-jms-queue-example --- +[INFO] Nothing to compile - all classes are up to date +[INFO] +[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hornetq-jms-queue-example --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] skip non existing resourceDirectory /home/andy/projects/hornetq-master/examples/jms/queue/src/test/resources +[INFO] +[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ hornetq-jms-queue-example --- +[INFO] No sources to compile +[INFO] +[INFO] --- maven-surefire-plugin:2.13:test (default-test) @ hornetq-jms-queue-example --- +[INFO] +[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ hornetq-jms-queue-example --- +[INFO] Building jar: /home/andy/projects/hornetq-master/examples/jms/queue/target/hornetq-jms-queue-example-2.3.0.BETA-SNAPSHOT.jar +[INFO] +[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) @ hornetq-jms-queue-example >>> +[INFO] +[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) @ hornetq-jms-queue-example <<< +[INFO] +[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ hornetq-jms-queue-example --- +[INFO] Building jar: /home/andy/projects/hornetq-master/examples/jms/queue/target/hornetq-jms-queue-example-2.3.0.BETA-SNAPSHOT-sources.jar +[INFO] +[INFO] >>> maven-source-plugin:2.2.1:jar (default) @ hornetq-jms-queue-example >>> +[INFO] +[INFO] <<< maven-source-plugin:2.2.1:jar (default) @ hornetq-jms-queue-example <<< +[INFO] +[INFO] --- maven-source-plugin:2.2.1:jar (default) @ hornetq-jms-queue-example --- +[WARNING] Artifact org.hornetq.examples.jms:hornetq-jms-queue-example:java-source:sources:2.3.0.BETA-SNAPSHOT already attached to project, ignoring duplicate +[INFO] +[INFO] --- hornetq-maven-plugin:1.1.1-SNAPSHOT:start (start) @ hornetq-jms-queue-example --- +[file:/home/andy/projects/hornetq-master/examples/jms/queue/target/classes/hornetq/server0/] +Apr 17, 2013 10:51:01 AM org.hornetq.core.deployers.impl.FileConfigurationParser parseMainConfig +WARN: HQ222018: AIO was not located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal +Apr 17, 2013 10:51:01 AM org.hornetq.core.server.impl.HornetQServerImpl start +INFO: HQ221000: live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=/home/andy/projects/hornetq-master/examples/jms/queue/target//server0/data/messaging/journal,bindingsDirectory=/home/andy/projects/hornetq-master/examples/jms/queue/target//server0/data/messaging/bindings,largeMessagesDirectory=/home/andy/projects/hornetq-master/examples/jms/queue/target//server0/data/messaging/largemessages,pagingDirectory=/home/andy/projects/hornetq-master/examples/jms/queue/target//server0/data/messaging/paging) +Apr 17, 2013 10:51:01 AM org.hornetq.core.server.impl.HornetQServerImpl$SharedStoreLiveActivation run +INFO: HQ221006: Waiting to obtain live lock +Apr 17, 2013 10:51:01 AM org.hornetq.core.persistence.impl.journal.JournalStorageManager <init> +INFO: HQ221013: Using NIO Journal +Apr 17, 2013 10:51:01 AM org.hornetq.core.server.impl.HornetQServerImpl initialisePart1 +WARN: HQ222007: Security risk! HornetQ is running with the default cluster admin user and default password. Please see the HornetQ user guide, cluster chapter, for instructions on how to change this. +Apr 17, 2013 10:51:01 AM org.hornetq.core.server.impl.FileLockNodeManager startLiveNode +INFO: HQ221034: Waiting to obtain live lock +Apr 17, 2013 10:51:01 AM org.hornetq.core.server.impl.FileLockNodeManager startLiveNode +INFO: HQ221035: Live Server Obtained live lock +Apr 17, 2013 10:51:02 AM org.hornetq.core.server.impl.HornetQServerImpl deployQueue +INFO: HQ221003: trying to deploy queue jms.queue.exampleQueue +Apr 17, 2013 10:51:02 AM org.hornetq.core.remoting.impl.netty.NettyAcceptor start +INFO: HQ221020: Started Netty Acceptor version 3.6.2.Final-c0d783c localhost:5445 for CORE protocol +Apr 17, 2013 10:51:02 AM org.hornetq.core.server.impl.HornetQServerImpl$SharedStoreLiveActivation run +INFO: HQ221007: Server is now live +Apr 17, 2013 10:51:02 AM org.hornetq.core.server.impl.HornetQServerImpl start +INFO: HQ221001: HornetQ Server version 2.3.0.SNAPSHOT (black'n'yellow, 123) [a57893ff-7783-11e2-9787-07ca142fc9f7] +[INFO] +[INFO] --- hornetq-maven-plugin:1.1.1-SNAPSHOT:runClient (runClient) @ hornetq-jms-queue-example --- +Apr 17, 2013 10:51:02 AM org.hornetq.common.example.HornetQExample getContext +INFO: using jnp://localhost:1099 for jndi +Sent message: This is a text message +Received message: This is a text message +example complete + +##################### +### SUCCESS! ### +##################### +[INFO] +[INFO] --- hornetq-maven-plugin:1.1.1-SNAPSHOT:stop (stop) @ hornetq-jms-queue-example --- +Apr 17, 2013 10:51:03 AM org.hornetq.core.server.management.impl.ManagementServiceImpl stop +WARN: HQ222113: On ManagementService stop, there are 1 unexpected registered MBeans: [core.acceptor.netty-acceptor] +Apr 17, 2013 10:51:03 AM org.hornetq.core.server.impl.HornetQServerImpl stop +INFO: HQ221002: HornetQ Server version 2.3.0.SNAPSHOT (black'n'yellow, 123) [a57893ff-7783-11e2-9787-07ca142fc9f7] stopped +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD SUCCESS +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 4.428s +[INFO] Finished at: Wed Apr 17 10:51:03 BST 2013 +[INFO] Final Memory: 11M/456M +[INFO] ------------------------------------------------------------------------ + +</programlisting> + <para>Congratulations! You have successfully run your first HornetQ example. Try some of the + others.</para> + </section> + <section id="examples.messaging"> + <title>The Java EE Examples</title> + <para>The Java EE Examples are examples that require a JEE application server to run. They + include MDB, Servlet, EJB examples etc. For this you will need the JBoss Application Server 7.1.x + installed and uses Arquillian to run the example. How to do this is explained in the previous chapters.</para> + <para>We'll use the MDB example for the purposes of this guide. For the other examples refer + to the user guide. Before going any further ensure that the JBoss Application Server is + running.</para> + <para> The first thing we need to do is set the <literal>JBOSS_HOME</literal> environment property to the location of the JBoss + Application Server, in a Linux shell this would be something like:</para> + <programlisting>export JBOSS_HOME=/home/jbossas7.1/build/output/jboss-7.1.0</programlisting> + <para>Yoy can then run the example via maven by running <literal>mvn test</literal></para> + <para>In the shell window you should see something like the following output:</para> + <programlisting> +[INFO] Scanning for projects... +[INFO] +[INFO] ------------------------------------------------------------------------ +[INFO] Building HornetQ JEE MDB Example 2.3.0.BETA-SNAPSHOT +[INFO] ------------------------------------------------------------------------ +[INFO] +[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hornetq-jee-mdb-bmt-example --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] skip non existing resourceDirectory /home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/src/main/resources +[INFO] +[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ hornetq-jee-mdb-bmt-example --- +[INFO] Nothing to compile - all classes are up to date +[INFO] +[INFO] --- maven-resources-plugin:2.6:copy-resources (as-node-0) @ hornetq-jee-mdb-bmt-example --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 1112 resources +[INFO] Copying 5 resources +[INFO] +[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hornetq-jee-mdb-bmt-example --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 1 resource +[INFO] +[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ hornetq-jee-mdb-bmt-example --- +[INFO] Changes detected - recompiling the module! +[INFO] Compiling 1 source file to /home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/test-classes +[INFO] +[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ hornetq-jee-mdb-bmt-example --- +[INFO] Surefire report directory: /home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/surefire-reports + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running org.hornetq.javaee.example.server.ExampleRunnerTest +log4j:WARN No appenders could be found for logger (org.jboss.logging). +log4j:WARN Please initialize the log4j system properly. +log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. +Apr 17, 2013 10:58:04 AM org.jboss.arquillian.container.impl.MapObject populate +WARNING: Configuration contain properties not supported by the backing object org.jboss.as.arquillian.container.managed.ManagedContainerConfiguration +Unused property entries: {waitForPortsTimeoutInSeconds=8, waitForPorts=8787 9999} +Supported property names: [jbossHome, outputToConsole, enableAssertions, password, managementPort, javaHome, javaVmArguments, username, serverConfig, allowConnectingToRunningServer, managementAddress, startupTimeoutInSeconds, modulePath] +Apr 17, 2013 10:58:04 AM org.jboss.as.arquillian.container.managed.ManagedDeployableContainer startInternal +INFO: Starting container with: [/home/andy/devtools/jdk1.6.0_25//bin/java, -Djboss.inst=/home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0, -ea, -Djboss.home.dir=/home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0, -Dorg.jboss.boot.log.file=/home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/standalone/log/boot.log, -Dlogging.configuration=file:/home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/standalone/configuration/logging.properties, -Djboss.modules.dir=/home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/modules, -Djboss.bundles.dir=/home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/bundles, -jar, /home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/jboss-modules.jar, -mp, /home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/modules, -jaxpmodule, javax.xml. jaxp-provider, org.jboss.as.standalone, -server-config, standalone-example.xml] +10:58:04,525 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA +10:58:04,664 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA +10:58:04,703 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting +10:58:05,492 INFO [org.xnio] XNIO Version 3.0.3.GA +10:58:05,494 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http) +10:58:05,502 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA +10:58:05,509 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA +10:58:05,527 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers +10:58:05,530 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 32) JBAS016200: Activating ConfigAdmin Subsystem +10:58:05,560 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 37) JBAS010280: Activating Infinispan subsystem. +10:58:05,562 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) +10:58:05,573 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 38) JBAS016300: Activating JacORB Subsystem +10:58:05,595 INFO [org.jboss.as.connector] (MSC service thread 1-12) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final) +10:58:05,612 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 48) JBAS011800: Activating Naming Subsystem +10:58:05,625 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 49) JBAS011940: Activating OSGi Subsystem +10:58:05,649 INFO [org.jboss.as.security] (ServerService Thread Pool -- 54) JBAS013101: Activating Security Subsystem +10:58:05,657 INFO [org.jboss.as.naming] (MSC service thread 1-8) JBAS011802: Starting Naming Service +10:58:05,663 INFO [org.jboss.as.mail.extension] (MSC service thread 1-16) JBAS015400: Bound mail session [java:jboss/mail/Default] +10:58:05,675 INFO [org.jboss.as.security] (MSC service thread 1-14) JBAS013100: Current PicketBox version=4.0.7.Final +10:58:05,683 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 58) JBAS015537: Activating WebServices Extension +10:58:05,705 INFO [org.jboss.jaxr] (MSC service thread 1-8) JBAS014000: Started JAXR subsystem, binding JAXR connection factory into JNDI as: java:jboss/jaxr/ConnectionFactory +10:58:05,831 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-4) JBoss Web Services - Stack CXF Server 4.0.2.GA +10:58:05,943 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-6) Starting Coyote HTTP/1.1 on http-localhost.localdomain-127.0.0.1-8080 +10:58:05,966 INFO [org.jboss.as.jacorb] (MSC service thread 1-2) JBAS016330: CORBA ORB Service started +10:58:05,988 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-11) live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=/home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/standalone/data/messagingjournal,bindingsDirectory=/home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/standalone/data/messagingbindings,largeMessagesDirectory=/home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/standalone/data/messaginglargemessages,pagingDirectory=/home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/standalone/data/messagingpaging) +10:58:05,996 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-11) Waiting to obtain live lock +10:58:06,037 INFO [org.hornetq.core.persistence.impl.journal.JournalStorageManager] (MSC service thread 1-11) Using AIO Journal +10:58:06,122 INFO [org.jboss.as.jacorb] (MSC service thread 1-14) JBAS016328: CORBA Naming Service started +10:58:06,184 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS] +10:58:06,204 INFO [org.hornetq.core.server.impl.AIOFileLockNodeManager] (MSC service thread 1-11) Waiting to obtain live lock +10:58:06,205 INFO [org.hornetq.core.server.impl.AIOFileLockNodeManager] (MSC service thread 1-11) Live Server Obtained live lock +10:58:06,434 INFO [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on localhost.localdomain/127.0.0.1:4447 +10:58:06,434 INFO [org.jboss.as.remoting] (MSC service thread 1-15) JBAS017100: Listening on /127.0.0.1:9999 +10:58:06,436 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-16) JBAS015012: Started FileSystemDeploymentService for directory /home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/standalone/deployments +10:58:08,790 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-11) Started Netty Acceptor version 3.2.5.Final-a96d88c localhost.localdomain:5445 for CORE protocol +10:58:08,793 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-11) Started Netty Acceptor version 3.2.5.Final-a96d88c localhost.localdomain:5455 for CORE protocol +10:58:08,795 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-11) Server is now live +10:58:08,797 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-11) HornetQ Server version 2.2.13.Final (HQ_2_2_13_FINAL_AS7, 122) [5c499e88-9c63-11e2-bfa3-fe5400591699]) started +10:58:08,822 INFO [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory +10:58:08,824 INFO [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name java:/RemoteConnectionFactory +10:58:08,825 INFO [org.jboss.as.messaging] (MSC service thread 1-10) JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory +10:58:08,830 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-3) trying to deploy queue jms.queue.testQueue +10:58:08,836 INFO [org.jboss.as.messaging] (MSC service thread 1-3) JBAS011601: Bound messaging object to jndi name java:/queue/test +10:58:08,840 INFO [org.jboss.as.messaging] (MSC service thread 1-3) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/queues/testQueue +10:58:08,859 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-9) JBAS010406: Registered connection factory java:/JmsXA +10:58:08,866 INFO [org.hornetq.ra.HornetQResourceAdapter] (MSC service thread 1-9) HornetQ resource adaptor started +10:58:08,867 INFO [org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-9) IJ020002: Deployed: file://RaActivatorhornetq-ra +10:58:08,870 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-5) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA] +10:58:08,898 INFO [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015876: Starting deployment of "ONT001-1.0.war" +10:58:09,146 INFO [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-1) Add Service + id=com.hpm.webservices.BasicWSImpl + address=http://localhost:8080/hpm/BasicWService + implementor=com.hpm.webservices.BasicWSImpl + invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker + serviceName={http://ont001-hpm.rhcloud.com/BasicWS}BasicWService + portName={http://ont001-hpm.rhcloud.com/BasicWS}BasicWS + wsdlLocation=null + mtomEnabled=false +10:58:09,361 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://ont001-hpm.rhcloud.com/BasicWS}BasicWService from WSDL: WEB-INF/wsdl/BasicWService.wsdl +10:58:09,517 INFO [org.jboss.wsf.stack.cxf.transport.AddressRewritingEndpointInfo] (MSC service thread 1-1) Setting new service endpoint address in wsdl: http://ONT001-HPM.rhcloud.com:80/BasicWService +10:58:09,656 INFO [org.jboss.wsf.stack.cxf.transport.AddressRewritingEndpointInfo] (MSC service thread 1-1) Setting new service endpoint address in wsdl: http://localhost:8080/hpm/BasicWService +10:58:09,688 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://localhost:8080/hpm/BasicWService +10:58:09,729 INFO [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-1) WSDL published to: file:/home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/standalone/data/wsdl/ONT001-1.0.war/BasicWService.wsdl +10:58:09,735 INFO [org.jboss.as.webservices] (MSC service thread 1-11) JBAS015539: Starting service jboss.ws.port-component-link +10:58:09,748 INFO [org.jboss.as.webservices] (MSC service thread 1-10) JBAS015539: Starting service jboss.ws.endpoint."ONT001-1.0.war"."com.hpm.webservices.BasicWSImpl" +10:58:09,753 INFO [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-10) register: jboss.ws:context=hpm,endpoint=com.hpm.webservices.BasicWSImpl +10:58:09,829 INFO [org.jboss.web] (MSC service thread 1-3) JBAS018210: Registering web context: /hpm +10:58:09,834 INFO [org.jboss.as] (MSC service thread 1-7) JBAS015951: Admin console listening on http://127.0.0.1:9990 +10:58:09,835 INFO [org.jboss.as] (MSC service thread 1-7) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 5506ms - Started 216 of 296 services (79 services are passive or on-demand) +10:58:09,979 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "ONT001-1.0.war" +mdb.jar: +/org/ +/org/hornetq/ +/org/hornetq/javaee/ +/org/hornetq/javaee/example/ +/org/hornetq/javaee/example/server/ +/org/hornetq/javaee/example/server/MDB_BMTExample.class +10:58:11,612 INFO [org.jboss.as.repository] (management-handler-thread - 2) JBAS014900: Content added at location /home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/standalone/data/content/f0/e2d589ab9490193e109c8bc833f725c87defae/content +10:58:11,620 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "arquillian-service" +10:58:11,811 WARN [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.jmx:main") which may be changed or removed in future versions without notice. +10:58:11,812 WARN [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.server:main") which may be changed or removed in future versions without notice. +10:58:11,813 WARN [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.osgi:main") which may be changed or removed in future versions without notice. +10:58:11,815 WARN [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.jandex:main") which may be changed or removed in future versions without notice. +10:58:11,817 WARN [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.osgi.framework:main") which may be changed or removed in future versions without notice. +10:58:11,953 INFO [org.jboss.as.server] (management-handler-thread - 2) JBAS018559: Deployed "arquillian-service" +10:58:12,328 INFO [org.jboss.as.repository] (management-handler-thread - 3) JBAS014900: Content added at location /home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/standalone/data/content/59/7dcdb0f420ed57aea638b2599f7a86eecf6c85/content +10:58:12,333 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "mdb.jar" +10:58:12,401 INFO [org.jboss.as.arquillian] (MSC service thread 1-14) Arquillian deployment detected: ArquillianConfig[service=jboss.arquillian.config."mdb.jar",unit=mdb.jar,tests=[org.hornetq.javaee.example.server.ExampleRunnerTest]] +10:58:12,418 INFO [org.jboss.as.ejb3] (MSC service thread 1-15) JBAS014142: Started message driven bean 'MDB_BMTExample' with 'hornetq-ra' resource adapter +10:58:12,562 INFO [org.jboss.as.server] (management-handler-thread - 3) JBAS018559: Deployed "mdb.jar" +Sent message: This is a text message +10:58:13,229 INFO [org.jboss.as.naming] (Remoting "localhost" task-3) JBAS011806: Channel end notification received, closing channel Channel ID 57be4578 (inbound) of Remoting connection 3ac552d5 to /127.0.0.1:58571 +10:58:13,255 INFO [stdout] (Thread-0 (HornetQ-client-global-threads-1402019528)) message This is a text message received +10:58:13,257 INFO [stdout] (Thread-0 (HornetQ-client-global-threads-1402019528)) we're in the middle of a transaction: org.jboss.tm.usertx.client.ServerVMClientUserTransaction@6b04d3c8 +10:58:14,292 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment mdb.jar in 33ms +10:58:14,413 INFO [org.jboss.as.repository] (management-handler-thread - 1) JBAS014901: Content removed from location /home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/standalone/data/content/59/7dcdb0f420ed57aea638b2599f7a86eecf6c85/content +10:58:14,415 INFO [org.jboss.as.server] (management-handler-thread - 1) JBAS018558: Undeployed "mdb.jar" +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.609 sec +10:58:14,436 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment arquillian-service in 6ms +10:58:14,530 INFO [org.jboss.as.repository] (management-handler-thread - 2) JBAS014901: Content removed from location /home/andy/projects/hornetq-master/examples/javaee/mdb-bmt/target/jbossas-node0/standalone/data/content/f0/e2d589ab9490193e109c8bc833f725c87defae/content +10:58:14,532 INFO [org.jboss.as.server] (management-handler-thread - 2) JBAS018558: Undeployed "arquillian-service" + +Results : + +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 + +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD SUCCESS +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 23.441s +[INFO] Finished at: Wed Apr 17 10:58:16 BST 2013 +[INFO] Final Memory: 19M/361M +[INFO] ------------------------------------------------------------------------ +</programlisting> +<para>Congratulations! you have successfully deployed and run a Java EE example.</para> + </section> +</chapter>
http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/en/images/hornetQ_logo_600px.png ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/en/images/hornetQ_logo_600px.png b/docs/quickstart-guide/en/images/hornetQ_logo_600px.png new file mode 100644 index 0000000..b71f4ba Binary files /dev/null and b/docs/quickstart-guide/en/images/hornetQ_logo_600px.png differ http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/en/installation.xml ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/en/installation.xml b/docs/quickstart-guide/en/installation.xml new file mode 100644 index 0000000..80d4844 --- /dev/null +++ b/docs/quickstart-guide/en/installation.xml @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ============================================================================= --> +<!-- Copyright © 2009 Red Hat, Inc. and others. --> +<!-- --> +<!-- The text of and illustrations in this document are licensed by Red Hat under --> +<!-- a Creative Commons AttributionâShare Alike 3.0 Unported license ("CC-BY-SA"). --> +<!-- --> +<!-- An explanation of CC-BY-SA is available at --> +<!-- --> +<!-- http://creativecommons.org/licenses/by-sa/3.0/. --> +<!-- --> +<!-- In accordance with CC-BY-SA, if you distribute this document or an adaptation --> +<!-- of it, you must provide the URL for the original version. --> +<!-- --> +<!-- Red Hat, as the licensor of this document, waives the right to enforce, --> +<!-- and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent --> +<!-- permitted by applicable law. --> +<!-- ============================================================================= --> + +<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ +<!ENTITY % BOOK_ENTITIES SYSTEM "HornetQ_QuickStart_Guide.ent"> +%BOOK_ENTITIES; +]> +<chapter id="installation"> + <title>Installation</title> + <para>This section describes how to install HornetQ. </para> + <section id="installation.prerequisites"> + <title>Prerequisites</title> + <note> + <para>HornetQ only runs on Java 7 or later.</para> + </note> + <para>By default, HornetQ server runs with 1GiB of memory. If your computer has less memory, + or you want to run it with more available RAM, modify the value in <literal + >bin/run.sh</literal> accordingly.</para> + <para>For persistence, HornetQ uses its own fast journal, which you can configure to use + libaio (which is the default when running on Linux) or Java NIO. In order to use the libaio + module on Linux, you'll need to install libaio, if it's not already installed.</para> + <para>If you're not running on Linux then you don't need to worry about this.</para> + <para>You can install libaio using the following steps as the root user:</para> + <para>Using yum, (e.g. on Fedora or Red Hat Enterprise Linux):</para> + <programlisting>yum install libaio</programlisting> + <para>Using aptitude, (e.g. on Ubuntu or Debian system):</para> + <programlisting>apt-get install libaio</programlisting> + </section> + <section id="installation.standalone"> + <title>Stand-alone HornetQ Server</title> + <para>After downloading the distribution, unzip it into your chosen directory. At this point + it should be possible to <link linkend="running.standalone">run straight out of the + box</link>, the following describes the directory structure: </para> + <programlisting> + |___ bin + | + |___ config + | |___ jboss-as-4 + | |___ jboss-as-5 + | |___ stand-alone + | + |___ docs + | |___ api + | |___ quickstart-guide + | |___ user-manual + | + |___ examples + | |___ core + | |___ javaee + | |___ jms + | + |___ lib + | + |___ licenses + | + |___ schemas + </programlisting> + <itemizedlist> + <listitem> + <para><literal>bin</literal> -- binaries and scripts needed to run HornetQ.</para> + </listitem> + <listitem> + <para><literal>config</literal> -- configuration files needed to configure HornetQ. This + contains configurations to run HornetQ either in stand-alone or inside JBoss AS 4 and 5. + Please refer to the reference guide for details on configuration. </para> + </listitem> + <listitem> + <para><literal>docs</literal> -- guides and javadocs for HornetQ </para> + </listitem> + <listitem> + <para><literal>examples</literal> -- JMS and Java EE examples. Please refer to the + 'running examples' chapter for details on how to run them. </para> + </listitem> + <listitem> + <para><literal>lib</literal> -- jars and libraries needed to run HornetQ </para> + </listitem> + <listitem> + <para><literal>licenses</literal> -- licenses for HornetQ </para> + </listitem> + <listitem> + <para><literal>schemas</literal> -- XML Schemas used to validate HornetQ configuration + files</para> + </listitem> + </itemizedlist> + </section> +</chapter> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/en/introduction.xml ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/en/introduction.xml b/docs/quickstart-guide/en/introduction.xml new file mode 100644 index 0000000..faded49 --- /dev/null +++ b/docs/quickstart-guide/en/introduction.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ============================================================================= --> +<!-- Copyright © 2009 Red Hat, Inc. and others. --> +<!-- --> +<!-- The text of and illustrations in this document are licensed by Red Hat under --> +<!-- a Creative Commons AttributionâShare Alike 3.0 Unported license ("CC-BY-SA"). --> +<!-- --> +<!-- An explanation of CC-BY-SA is available at --> +<!-- --> +<!-- http://creativecommons.org/licenses/by-sa/3.0/. --> +<!-- --> +<!-- In accordance with CC-BY-SA, if you distribute this document or an adaptation --> +<!-- of it, you must provide the URL for the original version. --> +<!-- --> +<!-- Red Hat, as the licensor of this document, waives the right to enforce, --> +<!-- and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent --> +<!-- permitted by applicable law. --> +<!-- ============================================================================= --> + +<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ +<!ENTITY % BOOK_ENTITIES SYSTEM "HornetQ_QuickStart_Guide.ent"> +%BOOK_ENTITIES; +]> +<chapter id="introduction"> + <title>Getting Started</title> + <para>This short guide explains how to download, install and quickly get started with + HornetQ.</para> + <para>After downloading and installing we highly recommend you run the examples to get + acquainted with HornetQ. We ship with over 70 examples demonstrating most of the + features.</para> + <para>This guide is not intended to be a replacement for the user manual. The user manual goes + into much more depth, so please consult that for further information.</para> +</chapter> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/en/master.xml ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/en/master.xml b/docs/quickstart-guide/en/master.xml new file mode 100644 index 0000000..e69de29 http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/en/notice.xml ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/en/notice.xml b/docs/quickstart-guide/en/notice.xml new file mode 100644 index 0000000..f5c5f05 --- /dev/null +++ b/docs/quickstart-guide/en/notice.xml @@ -0,0 +1,37 @@ +<!-- ============================================================================= --> +<!-- Copyright © 2009 Red Hat, Inc. and others. --> +<!-- --> +<!-- The text of and illustrations in this document are licensed by Red Hat under --> +<!-- a Creative Commons AttributionâShare Alike 3.0 Unported license ("CC-BY-SA"). --> +<!-- --> +<!-- An explanation of CC-BY-SA is available at --> +<!-- --> +<!-- http://creativecommons.org/licenses/by-sa/3.0/. --> +<!-- --> +<!-- In accordance with CC-BY-SA, if you distribute this document or an adaptation --> +<!-- of it, you must provide the URL for the original version. --> +<!-- --> +<!-- Red Hat, as the licensor of this document, waives the right to enforce, --> +<!-- and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent --> +<!-- permitted by applicable law. --> +<!-- ============================================================================= --> + +<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ +<!ENTITY % BOOK_ENTITIES SYSTEM "HornetQ_QuickStart_Guide.ent"> +%BOOK_ENTITIES; +]> + +<chapter id="notice"> + <title>Legal Notice</title> + + <para>Copyright © 2010 Red Hat, Inc. and others.</para> + <para>The text of and illustrations in this document are licensed by Red Hat under + a Creative Commons AttributionâShare Alike 3.0 Unported license ("CC-BY-SA").</para> + <para>An explanation of CC-BY-SA is available at + <ulink url="http://creativecommons.org/licenses/by-sa/3.0/">http://creativecommons.org/licenses/by-sa/3.0/</ulink>. + In accordance with CC-BY-SA, if you distribute this document or an adaptation + of it, you must provide the URL for the original version.</para> + <para>Red Hat, as the licensor of this document, waives the right to enforce, + and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent + permitted by applicable law.</para> +</chapter> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/en/running.xml ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/en/running.xml b/docs/quickstart-guide/en/running.xml new file mode 100644 index 0000000..39f8797 --- /dev/null +++ b/docs/quickstart-guide/en/running.xml @@ -0,0 +1,125 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ============================================================================= --> +<!-- Copyright © 2009 Red Hat, Inc. and others. --> +<!-- --> +<!-- The text of and illustrations in this document are licensed by Red Hat under --> +<!-- a Creative Commons AttributionâShare Alike 3.0 Unported license ("CC-BY-SA"). --> +<!-- --> +<!-- An explanation of CC-BY-SA is available at --> +<!-- --> +<!-- http://creativecommons.org/licenses/by-sa/3.0/. --> +<!-- --> +<!-- In accordance with CC-BY-SA, if you distribute this document or an adaptation --> +<!-- of it, you must provide the URL for the original version. --> +<!-- --> +<!-- Red Hat, as the licensor of this document, waives the right to enforce, --> +<!-- and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent --> +<!-- permitted by applicable law. --> +<!-- ============================================================================= --> + +<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ +<!ENTITY % BOOK_ENTITIES SYSTEM "HornetQ_QuickStart_Guide.ent"> +%BOOK_ENTITIES; +]> +<chapter id="running"> + <title>Starting The Server</title> + <section id="running.standalone"> + <title>Standalone HornetQ</title> + <para>To run a stand-alone server, open up a shell or command prompt and navigate into the + <literal>bin</literal> directory. Then execute <literal>./run.sh</literal> (or <literal + >run.bat</literal> on Windows) and you should see the following output </para> + <programlisting> + bin$ ./run.sh + + 15:05:54,108 INFO @main [HornetQBootstrapServer] Starting HornetQ server + ... + 15:06:02,566 INFO @main [HornetQServerImpl] HornetQ Server version + 2.0.0.CR3 (yellowjacket, 111) started + </programlisting> + <para>HornetQ is now running.</para> + <para>Both the run and the stop scripts use the config under <literal + >config/stand-alone/non-clustered</literal> by default. The configuration can be changed + by running <literal>./run.sh ../config/stand-alone/clustered</literal> or another config of + your choosing. This is the same for the stop script and the windows bat files.</para> + </section> + <section id="running.jboss.Wildfly"> + <title>HornetQ In Wildfly</title> + <para>HornetQ is the Default Messaging Provider in the <ulink + url="http://www.wildfly.org/" >Wildfly Application Server</ulink> + To run the server you need to run the standalone-full.xml configuration by running the command './standalone.sh -c standalone-full.xml'. + You will see something like:/</para> + <programlisting> + bin$ ./standalone.sh -c standalone-full.xml + ========================================================================= + + JBoss Bootstrap Environment + + JBOSS_HOME: /home/andy/projects/wildfly/build/target/wildfly-8.0.0.Beta1-SNAPSHOT + + JAVA: java + + JAVA_OPTS: -server -XX:+UseCompressedOops -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true + + ========================================================================= + + 14:47:33,642 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.0.Final + 14:47:34,780 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.0.Beta2 + 14:47:34,875 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.0.0.Beta1-SNAPSHOT "WildFly" starting + 14:47:40,382 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http) + 14:47:40,383 INFO [org.xnio] (MSC service thread 1-15) XNIO version 3.1.0.CR7 + 14:47:40,402 INFO [org.xnio.nio] (MSC service thread 1-15) XNIO NIO Implementation Version 3.1.0.CR7 + 14:47:40,488 INFO [org.jboss.remoting] (MSC service thread 1-15) JBoss Remoting version 4.0.0.Beta1 + 14:47:40,547 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 36) JBAS010280: Activating Infinispan subsystem. + 14:47:40,560 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 47) JBAS011800: Activating Naming Subsystem + 14:47:40,560 INFO [org.jboss.as.security] (ServerService Thread Pool -- 52) JBAS013171: Activating Security Subsystem + 14:47:40,567 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 37) JBAS016300: Activating JacORB Subsystem + 14:47:40,571 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 43) JBAS012605: Activated the following JSF Implementations: [main] + 14:47:40,574 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 56) JBAS015537: Activating WebServices Extension + 14:47:40,721 INFO [org.jboss.as.connector.logging] (MSC service thread 1-6) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.0.Final) + 14:47:41,321 INFO [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service + 14:47:41,323 INFO [org.jboss.as.mail.extension] (MSC service thread 1-11) JBAS015400: Bound mail session [java:jboss/mail/Default] + 14:47:41,552 INFO [org.wildfly.extension.undertow] (MSC service thread 1-10) JBAS017502: Undertow 1.0.0.Beta16 starting + 14:47:41,552 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) JBAS017502: Undertow 1.0.0.Beta16 starting + 14:47:41,573 INFO [org.jboss.as.security] (MSC service thread 1-6) JBAS013170: Current PicketBox version=4.0.17.SP1 + 14:47:41,775 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 31) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) + 14:47:41,777 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-16) JBAS010417: Started Driver service with driver-name = h2 + 14:47:42,085 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) JBAS017527: Creating file handler for path /home/andy/projects/wildfly/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/welcome-content + 14:47:42,086 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017525: Started server default-server. + 14:47:42,088 INFO [org.wildfly.extension.undertow] (MSC service thread 1-13) JBAS017531: Host default-host starting + 14:47:42,471 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) JBAS017519: Undertow HTTP listener default listening on /127.0.0.1:8080 + 14:47:42,823 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-10) JBAS015012: Started FileSystemDeploymentService for directory /home/andy/projects/wildfly/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/standalone/deployments + 14:47:42,882 INFO [org.jboss.as.remoting] (MSC service thread 1-16) JBAS017100: Listening on 127.0.0.1:9999 + 14:47:43,037 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221000: live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=/home/andy/projects/wildfly/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/standalone/data/messagingjournal,bindingsDirectory=/home/andy/projects/wildfly/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/standalone/data/messagingbindings,largeMessagesDirectory=/home/andy/projects/wildfly/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/standalone/data/messaginglargemessages,pagingDirectory=/home/andy/projects/wildfly/build/target/wildfly-8.0.0.Beta1-SNAPSHOT/standalone/data/messagingpaging) + 14:47:43,062 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221006: Waiting to obtain live lock + 14:47:43,103 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221012: Using AIO Journal + 14:47:43,313 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ224067: Adding protocol support CORE + 14:47:43,426 INFO [org.jboss.ws.common.management] (MSC service thread 1-3) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.1.Final + 14:47:43,448 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ224067: Adding protocol support AMQP + 14:47:43,451 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ224067: Adding protocol support STOMP + 14:47:43,453 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ224067: Adding protocol support STOMP_WS + 14:47:43,567 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221034: Waiting to obtain live lock + 14:47:43,567 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221035: Live Server Obtained live lock + 14:47:43,777 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS] + 14:47:43,781 INFO [org.jboss.as.jacorb] (MSC service thread 1-1) JBAS016330: CORBA ORB Service started + 14:47:44,115 INFO [org.jboss.as.jacorb] (MSC service thread 1-13) JBAS016328: CORBA Naming Service started + 14:47:44,345 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS018210: Register web context: /hornetq-server + 14:47:44,361 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221020: Started Netty Acceptor version 3.6.6.Final-90e1eb2 127.0.0.1:5455 for CORE protocol + 14:47:44,362 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221020: Started Netty Acceptor version 3.6.6.Final-90e1eb2 127.0.0.1:5445 for CORE protocol + 14:47:44,364 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221020: Started Netty Acceptor version 3.6.6.Final-90e1eb2 org.hornetq.default.servlet:5445 for CORE protocol + 14:47:44,366 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221007: Server is now live + 14:47:44,366 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221001: HornetQ Server version 2.4.0.Beta2 (Andromedian Flyer, 123) [bcc1cd10-2bfb-11e3-ad5f-9f88840f9e1a] + 14:47:44,435 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 58) JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory + 14:47:44,437 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 59) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/ServletConnectionFactory + 14:47:44,439 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 60) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory + 14:47:44,462 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-3) JBAS010406: Registered connection factory java:/JmsXA + 14:47:44,531 INFO [org.hornetq.ra] (MSC service thread 1-3) HornetQ resource adaptor started + 14:47:44,532 INFO [org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-3) IJ020002: Deployed: file://RaActivatorhornetq-ra + 14:47:44,535 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-12) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA] + 14:47:44,536 INFO [org.jboss.as.messaging] (MSC service thread 1-15) JBAS011601: Bound messaging object to jndi name java:jboss/DefaultJMSConnectionFactory + 14:47:44,719 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management + 14:47:44,720 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990 + 14:47:44,721 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.0.0.Beta1-SNAPSHOT "WildFly" started in 12184ms - Started 213 of 249 services (73 services are lazy, passive or on-demand) + + </programlisting> + </section> +</chapter> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/pom.xml ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/pom.xml b/docs/quickstart-guide/pom.xml new file mode 100644 index 0000000..d2e1d02 --- /dev/null +++ b/docs/quickstart-guide/pom.xml @@ -0,0 +1,300 @@ +<?xml version="1.0" encoding="utf-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.hornetq.docs</groupId> + <artifactId>hornetq-docs</artifactId> + <version>2.5.0-SNAPSHOT</version> + </parent> + + <groupId>org.hornetq.docs</groupId> + <artifactId>quickstart-guide</artifactId> + <version>1.0</version> + <packaging>jdocbook</packaging> + <name>quickstart-guide</name> + + <properties> + <translation>en</translation> + <docname>HornetQ_QuickStart_Guide</docname> + <bookname>HornetQ QuickStart Guide</bookname> + </properties> + + <repositories> + <repository> + <id>jboss-public-repository-group</id> + <name>JBoss Public Maven Repository Group</name> + <url>https://repository.jboss.org/nexus/content/groups/public/</url> + <layout>default</layout> + <releases> + <enabled>true</enabled> + <updatePolicy>never</updatePolicy> + </releases> + <snapshots> + <enabled>true</enabled> + <updatePolicy>never</updatePolicy> + </snapshots> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>jboss-public-repository-group</id> + <name>JBoss Public Maven Repository Group</name> + <url>https://repository.jboss.org/nexus/content/groups/public/</url> + <layout>default</layout> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </pluginRepository> + <!--pluginRepository> + <id>jboss-snapshot-repository-group</id> + <name>JBoss Snapshot Maven Repository Group</name> + <url>https://repository.jboss.org/nexus/content/groups/snapshot/</url> + <layout>default</layout> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </pluginRepository--> + </pluginRepositories> + + <profiles> + + <!-- mvn compile --> + <profile> + <id>all</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.jboss.maven.plugins</groupId> + <artifactId>maven-jdocbook-plugin</artifactId> + <version>2.3.5</version> + <extensions>true</extensions> + <configuration> + <formats> + <format> + <formatName>pdf</formatName> + <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource> + <finalName>${docname}.pdf</finalName> + </format> + <format> + <formatName>html</formatName> + <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource> + <finalName>index.html</finalName> + </format> + <format> + <formatName>html_single</formatName> + <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource> + <finalName>index.html</finalName> + </format> + </formats> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <!-- mvn compile -Phtml --> + <profile> + <id>html</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.jboss.maven.plugins</groupId> + <artifactId>maven-jdocbook-plugin</artifactId> + <version>2.2.1</version> + <extensions>true</extensions> + <configuration> + <formats> + <format> + <formatName>html</formatName> + <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource> + <finalName>index.html</finalName> + </format> + </formats> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <!-- mvn compile -Phtml-single --> + <profile> + <id>html-single</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.jboss.maven.plugins</groupId> + <artifactId>maven-jdocbook-plugin</artifactId> + <version>2.2.1</version> + <extensions>true</extensions> + </plugin> + </plugins> + </build> + </profile> + + <!-- mvn compile -Ppdf --> + <profile> + <id>pdf</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.jboss.maven.plugins</groupId> + <artifactId>maven-jdocbook-plugin</artifactId> + <version>2.2.1</version> + <extensions>true</extensions> + <configuration> + <formats> + <format> + <formatName>pdf</formatName> + <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource> + <finalName>${docname}.pdf</finalName> + </format> + </formats> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + </profiles> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.jboss.maven.plugins</groupId> + <artifactId>maven-jdocbook-plugin</artifactId> + <version>2.2.1</version> + <extensions>true</extensions> + <dependencies> + <dependency> + <groupId>org.jboss.pressgang</groupId> + <artifactId>pressgang-xslt</artifactId> + <version>2.0.2</version> + </dependency> + <dependency> + <groupId>org.jboss</groupId> + <artifactId>jbossorg-jdocbook-style</artifactId> + <version>1.1.1</version> + <type>jdocbook-style</type> + </dependency> + </dependencies> + <configuration> + <sourceDirectory>${project.basedir}</sourceDirectory> + <sourceDocumentName>${docname}.xml</sourceDocumentName> + <masterTranslation>en</masterTranslation> + <imageResource> + <directory>${project.basedir}/en</directory> + <includes> + <include>images/*.png</include> + </includes> + </imageResource> + <formats> + <format> + <formatName>pdf</formatName> + <stylesheetResource>classpath:/xslt/org/jboss/pdf.xsl</stylesheetResource> + <finalName>${pdf.name}</finalName> + </format> + <format> + <formatName>html</formatName> + <stylesheetResource>classpath:/xslt/org/jboss/xhtml.xsl</stylesheetResource> + <finalName>index.html</finalName> + </format> + <format> + <formatName>html_single</formatName> + <stylesheetResource>classpath:/xslt/org/jboss/xhtml-single.xsl</stylesheetResource> + <finalName>index.html</finalName> + </format> + </formats> + <options> + <xincludeSupported>true</xincludeSupported> + <xmlTransformerType>saxon</xmlTransformerType> + <docbookVersion>1.72.0</docbookVersion> + <localeSeparator>-</localeSeparator> + <applyStandardInjectionValues>false</applyStandardInjectionValues> + <transformerParameters> + <property> + <name>javax.xml.parsers.DocumentBuilderFactory</name> + <value>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</value> + </property> + <property> + <name>javax.xml.parsers.SAXParserFactory</name> + <value>org.apache.xerces.jaxp.SAXParserFactoryImpl</value> + </property> + </transformerParameters> + </options> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> + <!--<build> + <plugins> + <plugin> + <groupId>org.jboss.maven.plugins</groupId> + <artifactId>maven-jdocbook-plugin</artifactId> + <version>2.2.1</version> + <extensions>true</extensions> + <dependencies> + <dependency> + <groupId>org.jboss.pressgang</groupId> + <artifactId>pressgang-xslt</artifactId> + <version>1.2.0</version> + </dependency> + <dependency> + <groupId>org.jboss</groupId> + <artifactId>jbossorg-jdocbook-style</artifactId> + <version>1.1.1</version> + <type>jdocbook-style</type> + </dependency> + </dependencies> + <configuration> + <sourceDocumentName>${docname}.xml</sourceDocumentName> + <sourceDirectory>.</sourceDirectory> + <imageResource> + <directory>${translation}</directory> + <includes> + <include>images/*</include> + </includes> + </imageResource> + <options> + <xincludeSupported>true</xincludeSupported> + <xmlTransformerType>saxon</xmlTransformerType> + <transformerParameters> + <property> + <name>javax.xml.parsers.DocumentBuilderFactory</name> + <value>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</value> + </property> + <property> + <name>javax.xml.parsers.SAXParserFactory</name> + <value>org.apache.xerces.jaxp.SAXParserFactoryImpl</value> + </property> + </transformerParameters> + </options> + </configuration> + </plugin> + + </plugins> + </build>--> + +</project> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/quickstart-guide.xpr ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/quickstart-guide.xpr b/docs/quickstart-guide/quickstart-guide.xpr new file mode 100644 index 0000000..24c5847 --- /dev/null +++ b/docs/quickstart-guide/quickstart-guide.xpr @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project> + <meta> + <filters directoryPatterns="" filePatterns="" + positiveFilePatterns="" showHiddenFiles="false"/> + <options/> + </meta> + <projectTree name="quickstart-guide.xpr"> + <folder name="en"> + <folder name="images"/> + <file name="en/about.xml"/> + <file name="en/download.xml"/> + <file name="en/examples.xml"/> + <file name="en/installation.xml"/> + <file name="en/introduction.xml"/> + <file name="en/master.xml"/> + <file name="en/notice.xml"/> + <file name="en/running.xml"/> + </folder> + </projectTree> +</project> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/zh/about.xml ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/zh/about.xml b/docs/quickstart-guide/zh/about.xml new file mode 100644 index 0000000..393d60b --- /dev/null +++ b/docs/quickstart-guide/zh/about.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- ============================================================================= --> +<!-- Copyright © 2009 Red Hat, Inc. and others. --> +<!-- --> +<!-- The text of and illustrations in this document are licensed by Red Hat under --> +<!-- a Creative Commons AttributionâShare Alike 3.0 Unported license ("CC-BY-SA"). --> +<!-- --> +<!-- An explanation of CC-BY-SA is available at --> +<!-- --> +<!-- http://creativecommons.org/licenses/by-sa/3.0/. --> +<!-- --> +<!-- In accordance with CC-BY-SA, if you distribute this document or an adaptation --> +<!-- of it, you must provide the URL for the original version. --> +<!-- --> +<!-- Red Hat, as the licensor of this document, waives the right to enforce, --> +<!-- and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent --> +<!-- permitted by applicable law. --> +<!-- ============================================================================= --> + +<chapter id="about"> + <title>å ³äºHornetQ</title> + <para>ä»ä¹æ¯HornetQ?</para> + <itemizedlist> + <listitem> + <para>HornetQæ¯ä¸ä¸ªå¼æºé¡¹ç®ãå®çç®æ æ¯ä¸ä¸ªå¤åè®®ãå¯åµå ¥ãé«æ§è½ãå¯é群çå¼æ¥çæ¶æ¯ç³»ç»ã</para> + </listitem> + <listitem> + <para>æå ³HornetQæ¯ä»ä¹åä¸æ¯ä»ä¹çæ´å¤çé®é¢ï¼è¯·è®¿é® + <ulink url="http://www.jboss.org/community/wiki/HornetQGeneralFAQs">FAQs wiki + 页</ulink>ã</para> + </listitem> + </itemizedlist> + <para>为ä»ä¹è¦ä½¿ç¨HornetQï¼ ä»¥ä¸ç»åºäºå 个çç±ï¼</para> + <itemizedlist> + <listitem> + <para>HornetQæ¯100%çå¼æºè½¯ä»¶ã HornetQ éç¨ Apache v 2.0å¼æºåè®®ï¼å¯¹ç¨æ·çéå¶æå°ã</para> + </listitem> + <listitem> + <para>HornetQç设计强è°å¯ç¨æ§ã</para> + </listitem> + <listitem> + <para>éç¨Javaè¯è¨ç¼åãå¯ä»¥å¨ä»»ä½Java 6+ çå¹³å°ä¸è¿è¡ãè¿å ä¹å æ¬äºä»Windowså°IBM mainframesçæ¯ä¸ªå¹³å°ã</para> + </listitem> + <listitem> + <para>æ§è½åºä¼ãä¸ä½å¯¹éæä¹ åæ¶æ¯çå¤çæ§è½è¾¾å°äºé常é«çæ§è½ãç¬ç¹é«æçæ¥å¿ï¼journalï¼ä½¿æä¹ æ¶æ¯å¤çæ¥è¿éæä¹ æ¶æ¯çæ§è½ã</para> + </listitem> + <listitem> + <para>åè½å ¨é¢ãä¸ä» æ¥æå ¶å®æçæ¶æ¯äº§åæå ·æçå ¨é¨åè½ï¼èä¸è¿æå¾å¤ç¬ç¹çåè½ã</para> + </listitem> + <listitem> + <para>HornetQç设计éµä»äºç®çº¦çååã对第ä¸æ¹è½¯ä»¶çä¾èµæå°ãæ ¹æ®ä¸åçéè¦ï¼ + HornetQå¯ä»¥åç¬è¿è¡ï¼ä¹å¯ä»¥è¿è¡äºJEEåºç¨æå¡å¨ä¸ãå®è¿å¯ä»¥åµå ¥å°ä½ èªå·±çåºç¨ç¨åºä¸ã</para> + </listitem> + <listitem> + <para>å®ç¾çå¯è·å¾æ§ãHornetQæä¾èªå¨å®¢æ·ç«¯å¤±æå¤æ´ï¼automatic client failoverï¼åè½ï¼è½ä¿è¯å¨æå¡å¨æ éæ¶æ²¡ææ¶æ¯ä¸¢å¤±ææ¶æ¯éå¤ã</para> + </listitem> + <listitem> + <para>è¶ çº§çµæ´»çé群æ¹æ¡ãå¯ä»¥æ§å¶é群è¿è¡æ¶æ¯è´è½½åè¡¡çæ¹å¼ãåå¸å¨ä¸åå°çä½ç½®çå个é群é´å¯ä»¥éè¿éå¯é çç½ç»è¿æ¥å½¢æä¸ä¸ªå ¨çç½ç»ã + è¿å¯ä»¥é常çµæ´»å°é ç½®æ¶æ¯è·¯ç±ã</para> + </listitem> + <listitem> + <para>è¯·è®¿é® <ulink + url="http://www.jboss.org/community/wiki/HornetQFeatures">wiki</ulink>æ¥å ¨é¢äºè§£HornetQçææåè½ä»ç»ã</para> + </listitem> + </itemizedlist> +</chapter> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/zh/download.xml ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/zh/download.xml b/docs/quickstart-guide/zh/download.xml new file mode 100644 index 0000000..a15a51a --- /dev/null +++ b/docs/quickstart-guide/zh/download.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ============================================================================= --> +<!-- Copyright © 2009 Red Hat, Inc. and others. --> +<!-- --> +<!-- The text of and illustrations in this document are licensed by Red Hat under --> +<!-- a Creative Commons AttributionâShare Alike 3.0 Unported license ("CC-BY-SA"). --> +<!-- --> +<!-- An explanation of CC-BY-SA is available at --> +<!-- --> +<!-- http://creativecommons.org/licenses/by-sa/3.0/. --> +<!-- --> +<!-- In accordance with CC-BY-SA, if you distribute this document or an adaptation --> +<!-- of it, you must provide the URL for the original version. --> +<!-- --> +<!-- Red Hat, as the licensor of this document, waives the right to enforce, --> +<!-- and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent --> +<!-- permitted by applicable law. --> +<!-- ============================================================================= --> +<chapter id="download"> + <title>ä¸è½½</title> + <para>HornetQ项ç®çå®æ¹å°åæ¯ <ulink url="http://hornetq.org/" + >http://hornetq.org/</ulink>ã</para> + <section id="download.software"> + <title>软件ä¸è½½</title> + <para>HornetQçä¸è½½å°åæ¯<ulink + url="http://hornetq.org/downloads.html/" + >http://hornetq.org/downloads.html</ulink></para> + </section> + <section id="download.git"> + <title>项ç®ä¿¡æ¯</title> + <para> + <itemizedlist> + <listitem> + <para>HornetQç <ulink + url="http://www.jboss.org/community/wiki/HornetQ">wiki</ulink></para> + </listitem> + <listitem> + <para>å¦æå¨ä½¿ç¨HornetQä¸åçä»»ä½é®é¢ï¼å¯ä»¥å»æ们ç <ulink + url="http://www.jboss.org/index.html?module=bb&op=viewforum&f=312">ç¨æ·è®ºå + </ulink></para> + </listitem> + <listitem> + <para>å¦æä½ æå¼åæ¹é¢çé®é¢ä¸æ³æ³ï¼è¯·è®¿é®æ们ç <ulink + url="http://www.jboss.org/index.html?module=bb&op=viewforum&f=313" + >å¼å论å</ulink></para> + </listitem> + <listitem> + <para>请å å ¥æ们ç<ulink url="irc://irc.freenode.net:6667/hornetq" + >IRCé¢é</ulink>ä¸æ们çæ ¸å¿å¼åå·¥ç¨å¸äº¤æµã</para> + </listitem> + <listitem> + <para>æ们项ç®æèªå·±ç <ulink url="http://hornetq.blogspot.com/">å客</ulink></para> + </listitem> + <listitem> + <para>è¿å¯ä»¥è·è¸ªæ们ç<ulink url="http://twitter.com/hornetq">twitter</ulink></para> + </listitem> + <listitem> + <para>HornetQçGit代ç åºå°å <ulink + url="https://github.com/hornetq/hornetq" + >https://github.com/hornetq/hornetq</ulink></para> + </listitem> + <listitem> + <para>æ¯æ¬¡åå¸ççæ¬æ ç¾é½å¨<ulink + url="https://github.com/hornetq/hornetq/tags" + >https://github.com/hornetq/hornetq/tags</ulink>ä¸è½æ¾å°ã</para> + </listitem> + </itemizedlist> + </para> + </section> +</chapter> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/zh/examples.xml ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/zh/examples.xml b/docs/quickstart-guide/zh/examples.xml new file mode 100644 index 0000000..dab594a --- /dev/null +++ b/docs/quickstart-guide/zh/examples.xml @@ -0,0 +1,216 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- ============================================================================= --> +<!-- Copyright © 2009 Red Hat, Inc. and others. --> +<!-- --> +<!-- The text of and illustrations in this document are licensed by Red Hat under --> +<!-- a Creative Commons AttributionâShare Alike 3.0 Unported license ("CC-BY-SA"). --> +<!-- --> +<!-- An explanation of CC-BY-SA is available at --> +<!-- --> +<!-- http://creativecommons.org/licenses/by-sa/3.0/. --> +<!-- --> +<!-- In accordance with CC-BY-SA, if you distribute this document or an adaptation --> +<!-- of it, you must provide the URL for the original version. --> +<!-- --> +<!-- Red Hat, as the licensor of this document, waives the right to enforce, --> +<!-- and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent --> +<!-- permitted by applicable law. --> +<!-- ============================================================================= --> +<chapter id="examples"> + <title>è¿è¡HornetQä¾å</title> + <para>å¨HornetQç<literal>examples</literal>ç®å½ä¸æ两ç»ä¾åï¼å®ä»¬æ¯ï¼</para> + <itemizedlist> + <listitem> + <para>JMSä¾å - è¿äºä¾åå±ç¤ºçæ¯ä½¿ç¨JMSåéä¸æ¥æ¶æ¶æ¯çåè½ã</para> + </listitem> + <listitem> + <para>Java EE ä¾å - è¿äºä¾åå±ç¤ºçæ¯ä¸åºç¨æå¡å¨çéæï¼ä¾å¦MDBï¼EJBï¼Servletçã</para> + </listitem> + </itemizedlist> + <section id="examples.jms"> + <title>JMSä¾å</title> + <para>ææJMSé½æç»ä¸çæ ¼å¼ãæ¯ä¸ªä¾åé½æèªå·±çç®å½ï¼å®çå 容å æ¬ï¼</para> + <itemizedlist> + <listitem> + <para><literal>build.xml</literal></para> + <para>antçbuildæ件ï¼ç¨æ¥è¿è¡ä¾åã</para> + </listitem> + <listitem> + <para><literal>src</literal> ç®å½</para> + <para>ä¾åç代ç ã</para> + </listitem> + <listitem> + <para><literal>server0</literal>é ç½®ç®å½</para> + <para>å®å å«äºè¿è¡æå¡å¨æéè¦çé ç½®æ件ãæçé群çä¾åå¯è½æå¤ä¸ªè¿æ ·çç®å½ï¼å¦<literal>server0</literal>, + <literal>server1</literal>çã</para> + </listitem> + </itemizedlist> + <para>å¨è¿è¡æ¯ä¸ªä¾åæ¶ï¼é½è¦å å¯å¨ä¸ä¸ªæå¤ä¸ªåç¬çæå¡å¨ãå½ä¾åè¿è¡å®æ¯ï¼åå°å®ä»¬åæ¢ã</para> + <para>å为æ¼ç¤ºæ们è¿éè¿è¡queueä¾åãå ¶å®çä¾åå¯ä»¥åè§ç¨æ·æåã</para> + <para>é¦å æå¼ä¸ä¸ªå½ä»¤è¡çªå£ï¼shellï¼ï¼è¿å ¥å°HornetQç <literal + >examples/jms/queue</literal>ç®å½ã</para> + <para>æ²å ¥å½ä»¤<literal>./build.sh</literal> (æè å¨Windowsä¸<literal>build.bat</literal>ï¼ï¼ä½ + å°çå°å¦ä¸çè¾åºï¼</para> + <programlisting>Buildfile: build.xml + +run: + +init: + +compile: + [echo] src.example.dir=/home/andy/projects/hornetq/trunk/examples/jms/queue/src + [javac] Compiling 5 source files to /home/andy/projects/hornetq/trunk/examples/jms/queue +/build/classes + +runExample: + [java] 10:41:04,149 INFO @main [JMSExample] hornetq.example.runServer is true + [java] 10:41:04,149 INFO @main [JMSExample] starting server with config 'server0' + logServerOutput true + [java] 10:41:04,149 INFO @main [JMSExample] and vm args: -Xms512M,-Xmx512M,-XX:+U +seParallelGC,-XX:+AggressiveOpts,-XX:+UseFastAccessorMethods,-Djava.util.logging.config. +file=/home/andy/projects/hornetq/trunk/examples/jms/common/../../../src/config/stand-alone/no +n-clustered/logging.properties + [java] org.hornetq.jms.example.SpawnedJMSServer out:10:41:08,437 INFO @main [Journal +StorageManager] AIO journal selected + [java] org.hornetq.jms.example.SpawnedJMSServer out:10:41:08,437 WARN @main [Journal +StorageManager] AIO wasn't located on this platform, it will fall back to using pure Jav +a NIO. If your platform is Linux, install LibAIO to enable the AIO journal + [java] org.hornetq.jms.example.SpawnedJMSServer out:10:41:08,437 WARN @main [Securit +yStoreImpl] It has been detected that the cluster admin password which is used to replic +ate management operation from one node to the other has not had its password changed fro +m the installation default. Please see the HornetQ user guide for instructions o +n how to do this. + [java] org.hornetq.jms.example.SpawnedJMSServer out:10:41:10,941 INFO @main [HornetQCo +nnectionFactory] read only is false + [java] org.hornetq.jms.example.SpawnedJMSServer out:10:41:10,941 INFO @main [HornetQCo +nnectionFactory] read only is false + [java] org.hornetq.jms.example.SpawnedJMSServer out:10:41:10,941 INFO @main [HornetQCo +nnectionFactory] read only is false + [java] org.hornetq.jms.example.SpawnedJMSServer out:10:41:10,991 WARN @main [JMSServ +erManagerImpl] Binding for java:/ConnectionFactory already exists + [java] org.hornetq.jms.example.SpawnedJMSServer out:10:41:10,991 WARN @main [JMSServ +erManagerImpl] Binding for java:/XAConnectionFactory already exists + [java] org.hornetq.jms.example.SpawnedJMSServer out:10:41:11,241 INFO @main [Messagi +ngServerImpl] HornetQ Server version 2.0.0.BETA5 (buzz-buzz, 107) started + [java] org.hornetq.jms.example.SpawnedJMSServer out:10:41:11,241 INFO @main [HornetQBoot +strapServer] HornetQ server started + [java] org.hornetq.jms.example.SpawnedJMSServer out:STARTED:: + [java] 10:41:11,276 INFO @main [JMSExample] using server0/client-jndi.properties f +or jndi + [java] Sent message: This is a text message + [java] Received message: This is a text message + [java] + [java] ##################### + [java] ### SUCCESS! ### + [java] ##################### + +BUILD SUCCESSFUL +Total time: 13 seconds +</programlisting> + <para>æåï¼ä½ å·²ç»æåå°è¿è¡äºä½ ç第ä¸ä¸ªHornetQä¾åãè¯çè¿è¡å ¶å®çä¾åã</para> + </section> + <section id="examples.messaging"> + <title>Java EEä¾å</title> + <para>Java EEçä¾åéè¦é¦å è¿è¡ä¸ä¸ªJEEåºç¨æå¡å¨ãè¿äºä¾åå æ¬MDBï¼Servletï¼EJBççãä½ é¦å è¦å®è£ JBossåºç¨æå¡ + å¨ãåè§åé¢çç« èè¿è¡å®è£ ã</para> + <para>è¿éæ们å°ç¨MDBä¾åæ¥è¯´æãæå ³å ¶å®ä¾åç详ç»ä¿¡æ¯åè§ç¨æ·æåãé¦å 确认JBossåºç¨æå¡å¨å·²ç»å¯å¨ã</para> + <para>å¦åå ¶å®Java EEä¾åä¸æ ·ï¼MDBéè¦é¨ç½²å°åºç¨æå¡å¨ã第ä¸ï¼å°<literal>JBOSS_HOME</literal>ç¯å¢åé + æåä½ çåºç¨æå¡å¨å®è£ ç®å½ãå¦å¨Linuxä¸ï¼</para> + <programlisting>export JBOSS_HOME=/home/jbossas5.1/build/output/jboss-5.1.0.GA</programlisting> + <para>ç¶åå°±å¯ä»¥è¿è¡é¨ç½²äºãå¨<literal>examples/javaee/mdb</literal>ç®å½ä¸è¿è¡ï¼</para> + <programlisting>./build.sh deploy</programlisting> + <para>å®å°å建ä¸ä¸ªâmessaging"çASé ç½®ï¼å¹¶ç¨å®æ¥å¯å¨ASæå¡å¨ã</para> + <para>å¨å½ä»¤è¡çªå£ä½ ä¼çå°å¦ä¸çè¾åºï¼</para> + <programlisting>Buildfile: build.xml + +validate-jboss: + +deploy: + +deploy-resources: + [copy] Copying 1 file to /home/andy/projects/jbossas5.1/build/output/jboss-5.1.0.GA + /server/default-with-hornetq/deploy/hornetq.sar + [copy] Copying 1 file to /home/andy/projects/jbossas5.1/build/output/jboss-5.1.0.GA + /server/default-with-hornetq/deploy/hornetq.sar + +init: + +compile: + +jar: + [jar] Building jar: /home/andy/projects/hornetq/trunk/examples/javaee/mdb/build/mdb-exa + mple.jar + +ear: + [jar] Building jar: /home/andy/projects/hornetq/trunk/examples/javaee/mdb/build/mdb-exa + mple.ear + +deploy-ear: + [copy] Copying 1 file to /home/andy/projects/jbossas5.1/build/output/jboss-5.1.0.GA + + ....... + + + [exec] 16:01:04,607 INFO [JBossASKernel] Class:javax.jms.MessageListener + [exec] 16:01:04,607 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=mdb-example.ear, + jar=mdb-example.jar,name=MessageMDBExample,service=EJB3) to KernelDeployment of: + mdb-example.jar + [exec] 16:01:04,702 INFO [EJBContainer] STARTED EJB: org.hornetq.javaee.example.server + .MDBExample ejbName: MessageMDBExample + [exec] 16:01:09,496 INFO [TomcatDeployment] deploy, ctxPath=/mdb-example + [exec] 16:01:09,812 WARNING [config] Unable to process deployment descriptor for cont + ext '/mdb-example' + [exec] 16:01:09,812 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context + '/mdb-example' + [exec] 16:01:09,958 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1- + 8080 + [exec] 16:01:09,990 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 + [exec] 16:01:10,001 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag + =JBoss_5_1_0_GA date=200905151005)] Started in 6m:21s:797ms + +</programlisting> + <para>ç°å¨æ们å¯ä»¥è¿è¡ä¾åäºãå¨<literal>mdb</literal>ç®å½ä¸è¿è¡ä¸åå½ä»¤ï¼</para> + <programlisting>./build.sh</programlisting> + <para>ä½ å°çå°å¦ä¸è¾åºï¼</para> + <programlisting>Buildfile: build.xml + +run: + +init: + +compile: + +runExample: + [java] Sent message: This is a text message + +BUILD SUCCESSFUL +Total time: 7 seconds</programlisting> + <para>å¨JBossåºç¨æå¡å¨ç«¯ä½ è¿ä¼çå°å¦ä¸çè¾åºï¼</para> + <programlisting>16:27:54,703 INFO [STDOUT] message This is a text message received</programlisting> + <para>ç¶åå¨<literal>mdb</literal>ç®å½ä¸è¿è¡ä¸é¢çå½ä»¤å¯ä»¥å°è¿ä¸ªä¾åå¸è½½ã</para> + <programlisting>./build.sh undeploy</programlisting> + <para>ä½ å°ä¼çå°å¦ä¸çè¾åºï¼</para> + <programlisting>Buildfile: build.xml + +validate-jboss: + +undeploy: + +undeploy-misc: + [delete] Deleting: /home/andy/projects/jbossas5.1/build/output/jboss-5.1.0.GA + /server/default-with-hornetq/deploy/mdb-example.ear + [delete] Deleting: /home/andy/projects/jbossas5.1/build/output/jboss-5.1.0.GA + /server/default-with-hornetq/deploy/hornetq.sar/hornetq-queues.xml + [delete] Deleting: /home/andy/projects/jbossas5.1/build/output/jboss-5.1.0.GA + /server/default-with-hornetq/deploy/hornetq.sar/hornetq-jms.xml + +BUILD SUCCESSFUL +Total time: 1 second +</programlisting> + <para>ä½ è¿ä¼å¨çªå£è¾åºä¸çå°MDBçåºç¨æçµè¢«å é¤äºï¼å¦ï¼</para> + <programlisting>16:36:45,277 INFO [EJBContainer] STOPPED EJB: org.jboss.javaee.example.server.MDBExample + ejbName: MessageMDBExample +</programlisting> + <para>æåï¼ä½ å·²ç»æåå°é¨ç½²å¹¶è¿è¡äºä¸ä¸ªJava EEçä¾åã</para> + </section> +</chapter> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8ecd255f/docs/quickstart-guide/zh/images/hornetQ_logo_600px.png ---------------------------------------------------------------------- diff --git a/docs/quickstart-guide/zh/images/hornetQ_logo_600px.png b/docs/quickstart-guide/zh/images/hornetQ_logo_600px.png new file mode 100644 index 0000000..b71f4ba Binary files /dev/null and b/docs/quickstart-guide/zh/images/hornetQ_logo_600px.png differ