JBoss hornetq SVN: r9224 - trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue.
by do-not-reply@jboss.org
Author: clebert.suconic(a)jboss.com
Date: 2010-05-10 20:51:32 -0400 (Mon, 10 May 2010)
New Revision: 9224
Modified:
trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue/TemporaryQueueTest.java
Log:
accidental commit, reverting it
Modified: trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue/TemporaryQueueTest.java
===================================================================
--- trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue/TemporaryQueueTest.java 2010-05-11 00:46:42 UTC (rev 9223)
+++ trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue/TemporaryQueueTest.java 2010-05-11 00:51:32 UTC (rev 9224)
@@ -18,7 +18,6 @@
import javax.jms.QueueReceiver;
import javax.jms.TemporaryQueue;
import javax.jms.TextMessage;
-import javax.jms.Topic;
import junit.framework.Assert;
import junit.framework.Test;
@@ -52,10 +51,6 @@
receiverConnection.stop();
// we create a temporary queue to receive messages
tempQueue = receiverSession.createTemporaryQueue();
-
- // someone may consider it silly, but lots of users do this kind of thing
- assertFalse(tempQueue instanceof Topic);
-
// we recreate the sender because it has been
// already created with a Destination as parameter
sender = senderSession.createSender(null);
14 years, 10 months
JBoss hornetq SVN: r9223 - trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue.
by do-not-reply@jboss.org
Author: clebert.suconic(a)jboss.com
Date: 2010-05-10 20:46:42 -0400 (Mon, 10 May 2010)
New Revision: 9223
Modified:
trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue/TemporaryQueueTest.java
Log:
tweak on test
Modified: trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue/TemporaryQueueTest.java
===================================================================
--- trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue/TemporaryQueueTest.java 2010-05-10 23:11:36 UTC (rev 9222)
+++ trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue/TemporaryQueueTest.java 2010-05-11 00:46:42 UTC (rev 9223)
@@ -18,6 +18,7 @@
import javax.jms.QueueReceiver;
import javax.jms.TemporaryQueue;
import javax.jms.TextMessage;
+import javax.jms.Topic;
import junit.framework.Assert;
import junit.framework.Test;
@@ -51,6 +52,10 @@
receiverConnection.stop();
// we create a temporary queue to receive messages
tempQueue = receiverSession.createTemporaryQueue();
+
+ // someone may consider it silly, but lots of users do this kind of thing
+ assertFalse(tempQueue instanceof Topic);
+
// we recreate the sender because it has been
// already created with a Destination as parameter
sender = senderSession.createSender(null);
14 years, 10 months
JBoss hornetq SVN: r9222 - trunk/src/main/org/hornetq/jms/client.
by do-not-reply@jboss.org
Author: clebert.suconic(a)jboss.com
Date: 2010-05-10 19:11:36 -0400 (Mon, 10 May 2010)
New Revision: 9222
Modified:
trunk/src/main/org/hornetq/jms/client/HornetQDestination.java
trunk/src/main/org/hornetq/jms/client/HornetQSession.java
Log:
https://jira.jboss.org/jira/browse/HORNETQ-384 - Fixing CreateQueueTest
Modified: trunk/src/main/org/hornetq/jms/client/HornetQDestination.java
===================================================================
--- trunk/src/main/org/hornetq/jms/client/HornetQDestination.java 2010-05-10 21:31:57 UTC (rev 9221)
+++ trunk/src/main/org/hornetq/jms/client/HornetQDestination.java 2010-05-10 23:11:36 UTC (rev 9222)
@@ -170,21 +170,40 @@
return new HornetQTopic(name);
}
+ public static HornetQTemporaryQueue createTemporaryQueue(final String name, final HornetQSession session)
+ {
+ return new HornetQTemporaryQueue(JMS_TEMP_QUEUE_ADDRESS_PREFIX.concat(name), name, session);
+ }
+
+ public static HornetQTemporaryQueue createTemporaryQueue(final String name)
+ {
+ return createTemporaryQueue(name, null);
+ }
+
public static HornetQTemporaryQueue createTemporaryQueue(final HornetQSession session)
{
String name = UUID.randomUUID().toString();
- return new HornetQTemporaryQueue(JMS_TEMP_QUEUE_ADDRESS_PREFIX.concat(name), name, session);
+ return createTemporaryQueue(name, session);
}
public static HornetQTemporaryTopic createTemporaryTopic(final HornetQSession session)
{
String name = UUID.randomUUID().toString();
+ return createTemporaryTopic(name, session);
+ }
+
+ public static HornetQTemporaryTopic createTemporaryTopic(String name, final HornetQSession session)
+ {
return new HornetQTemporaryTopic(JMS_TEMP_TOPIC_ADDRESS_PREFIX.concat(name), name, session);
}
-
+ public static HornetQTemporaryTopic createTemporaryTopic(String name)
+ {
+ return createTemporaryTopic(name, null);
+ }
+
// Attributes ----------------------------------------------------
/**
Modified: trunk/src/main/org/hornetq/jms/client/HornetQSession.java
===================================================================
--- trunk/src/main/org/hornetq/jms/client/HornetQSession.java 2010-05-10 21:31:57 UTC (rev 9221)
+++ trunk/src/main/org/hornetq/jms/client/HornetQSession.java 2010-05-10 23:11:36 UTC (rev 9222)
@@ -385,13 +385,16 @@
throw new IllegalStateException("Cannot create a queue using a TopicSession");
}
- HornetQQueue queue = HornetQDestination.createQueue(queueName);
-
try
{
- QueueQuery response = session.queueQuery(queue.getSimpleAddress());
+ HornetQQueue queue = lookupQueue(queueName, false);
+
+ if (queue == null)
+ {
+ queue = lookupQueue(queueName, true);
+ }
- if (!response.isExists())
+ if (queue == null)
{
throw new JMSException("There is no queue with name " + queueName);
}
@@ -405,6 +408,7 @@
throw JMSExceptionHelper.convertFromHornetQException(e);
}
}
+
public Topic createTopic(final String topicName) throws JMSException
{
@@ -414,14 +418,18 @@
throw new IllegalStateException("Cannot create a topic on a QueueSession");
}
- HornetQTopic topic = HornetQDestination.createTopic(topicName);
try
{
- BindingQuery query = session.bindingQuery(topic.getSimpleAddress());
+ HornetQTopic topic = lookupTopic(topicName, false);
- if (!query.isExists())
+ if (topic == null)
{
+ topic = lookupTopic(topicName, true);
+ }
+
+ if (topic == null)
+ {
throw new JMSException("There is no topic with name " + topicName);
}
else
@@ -994,7 +1002,59 @@
throw new IllegalStateException("Session is closed");
}
}
+
+ private HornetQQueue lookupQueue(final String queueName, boolean isTemporary) throws HornetQException
+ {
+ HornetQQueue queue;
+
+ if (isTemporary)
+ {
+ queue = HornetQDestination.createTemporaryQueue(queueName);
+ }
+ else
+ {
+ queue = HornetQDestination.createQueue(queueName);
+ }
+
+ QueueQuery response = session.queueQuery(queue.getSimpleAddress());
+ if (response.isExists())
+ {
+ return queue;
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ private HornetQTopic lookupTopic(final String topicName, final boolean isTemporary) throws HornetQException
+ {
+
+ HornetQTopic topic;
+
+ if (isTemporary)
+ {
+ topic = HornetQDestination.createTemporaryTopic(topicName);
+ }
+ else
+ {
+ topic = HornetQDestination.createTopic(topicName);
+ }
+
+ BindingQuery query = session.bindingQuery(topic.getSimpleAddress());
+
+ if (!query.isExists())
+ {
+ return null;
+ }
+ else
+ {
+ return topic;
+ }
+ }
+
+
// Inner classes -------------------------------------------------
}
14 years, 10 months
JBoss hornetq SVN: r9221 - trunk/src/main/org/hornetq/jms/client.
by do-not-reply@jboss.org
Author: clebert.suconic(a)jboss.com
Date: 2010-05-10 17:31:57 -0400 (Mon, 10 May 2010)
New Revision: 9221
Modified:
trunk/src/main/org/hornetq/jms/client/HornetQDestination.java
Log:
https://jira.jboss.org/jira/browse/HORNETQ-384 - Fixing a joram test
Modified: trunk/src/main/org/hornetq/jms/client/HornetQDestination.java
===================================================================
--- trunk/src/main/org/hornetq/jms/client/HornetQDestination.java 2010-05-10 21:13:40 UTC (rev 9220)
+++ trunk/src/main/org/hornetq/jms/client/HornetQDestination.java 2010-05-10 21:31:57 UTC (rev 9221)
@@ -48,8 +48,12 @@
public static final String JMS_QUEUE_ADDRESS_PREFIX = "jms.queue.";
+ public static final String JMS_TEMP_QUEUE_ADDRESS_PREFIX = "jms.tempqueue.";
+
public static final String JMS_TOPIC_ADDRESS_PREFIX = "jms.topic.";
-
+
+ public static final String JMS_TEMP_TOPIC_ADDRESS_PREFIX = "jms.temptopic.";
+
private static final char SEPARATOR = '.';
protected static String escape(final String input)
@@ -75,6 +79,18 @@
return createTopic(name);
}
+ else if (address.startsWith(HornetQTemporaryQueue.JMS_TEMP_QUEUE_ADDRESS_PREFIX))
+ {
+ String name = address.substring(HornetQTemporaryQueue.JMS_TEMP_QUEUE_ADDRESS_PREFIX.length());
+
+ return new HornetQTemporaryQueue(address, name, null);
+ }
+ else if (address.startsWith(HornetQTemporaryTopic.JMS_TEMP_TOPIC_ADDRESS_PREFIX))
+ {
+ String name = address.substring(HornetQTemporaryTopic.JMS_TEMP_TOPIC_ADDRESS_PREFIX.length());
+
+ return new HornetQTemporaryTopic(address, name, null);
+ }
else
{
throw new IllegalArgumentException("Invalid address " + address);
@@ -158,14 +174,14 @@
{
String name = UUID.randomUUID().toString();
- return new HornetQTemporaryQueue(JMS_QUEUE_ADDRESS_PREFIX.concat(name), name, session);
+ return new HornetQTemporaryQueue(JMS_TEMP_QUEUE_ADDRESS_PREFIX.concat(name), name, session);
}
public static HornetQTemporaryTopic createTemporaryTopic(final HornetQSession session)
{
String name = UUID.randomUUID().toString();
- return new HornetQTemporaryTopic(JMS_TOPIC_ADDRESS_PREFIX.concat(name), name, session);
+ return new HornetQTemporaryTopic(JMS_TEMP_TOPIC_ADDRESS_PREFIX.concat(name), name, session);
}
14 years, 10 months
JBoss hornetq SVN: r9220 - in trunk/tests/src/org/hornetq/tests/integration: jms/server and 1 other directory.
by do-not-reply@jboss.org
Author: clebert.suconic(a)jboss.com
Date: 2010-05-10 17:13:40 -0400 (Mon, 10 May 2010)
New Revision: 9220
Modified:
trunk/tests/src/org/hornetq/tests/integration/core/deployers/impl/QueueDeployerTest.java
trunk/tests/src/org/hornetq/tests/integration/jms/server/JMSServerStartStopTest.java
Log:
Twek on tests: Tests should always have the journal on /tmp and not on workspace
Modified: trunk/tests/src/org/hornetq/tests/integration/core/deployers/impl/QueueDeployerTest.java
===================================================================
--- trunk/tests/src/org/hornetq/tests/integration/core/deployers/impl/QueueDeployerTest.java 2010-05-10 20:35:28 UTC (rev 9219)
+++ trunk/tests/src/org/hornetq/tests/integration/core/deployers/impl/QueueDeployerTest.java 2010-05-10 21:13:40 UTC (rev 9220)
@@ -23,6 +23,7 @@
import org.hornetq.core.postoffice.impl.LocalQueueBinding;
import org.hornetq.core.server.HornetQServer;
import org.hornetq.core.server.impl.HornetQServerImpl;
+import org.hornetq.tests.util.ServiceTestBase;
import org.hornetq.tests.util.UnitTestCase;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
@@ -33,7 +34,7 @@
* @author <a href="jmesnil(a)redhat.com">Jeff Mesnil</a>
*
*/
-public class QueueDeployerTest extends UnitTestCase
+public class QueueDeployerTest extends ServiceTestBase
{
// Constants -----------------------------------------------------
@@ -87,12 +88,11 @@
protected void setUp() throws Exception
{
super.setUp();
+
+ server = createServer(true);
DeploymentManager deploymentManager = new FileDeploymentManager(500);
- ConfigurationImpl config = new ConfigurationImpl();
- config.setJournalType(getDefaultJournalType());
- server = new HornetQServerImpl(config);
+ deployer = new QueueDeployer(deploymentManager, server);
server.start();
- deployer = new QueueDeployer(deploymentManager, server);
}
@Override
Modified: trunk/tests/src/org/hornetq/tests/integration/jms/server/JMSServerStartStopTest.java
===================================================================
--- trunk/tests/src/org/hornetq/tests/integration/jms/server/JMSServerStartStopTest.java 2010-05-10 20:35:28 UTC (rev 9219)
+++ trunk/tests/src/org/hornetq/tests/integration/jms/server/JMSServerStartStopTest.java 2010-05-10 21:13:40 UTC (rev 9220)
@@ -34,6 +34,7 @@
import org.hornetq.jms.server.impl.JMSServerManagerImpl;
import org.hornetq.spi.core.security.HornetQSecurityManager;
import org.hornetq.spi.core.security.HornetQSecurityManagerImpl;
+import org.hornetq.tests.util.ServiceTestBase;
import org.hornetq.tests.util.UnitTestCase;
/**
@@ -178,6 +179,10 @@
fc.setConfigurationUrl("server-start-stop-config1.xml");
fc.start();
+
+ fc.setJournalDirectory(getJournalDir());
+ fc.setBindingsDirectory(getBindingsDir());
+ fc.setLargeMessagesDirectory(getLargeMessagesDir());
HornetQSecurityManager sm = new HornetQSecurityManagerImpl();
14 years, 10 months
JBoss hornetq SVN: r9219 - in trunk: src/main/org/hornetq/jms/server/impl and 4 other directories.
by do-not-reply@jboss.org
Author: clebert.suconic(a)jboss.com
Date: 2010-05-10 16:35:28 -0400 (Mon, 10 May 2010)
New Revision: 9219
Added:
trunk/src/main/org/hornetq/jms/client/HornetQQueue.java
trunk/src/main/org/hornetq/jms/client/HornetQTemporaryQueue.java
trunk/src/main/org/hornetq/jms/client/HornetQTemporaryTopic.java
trunk/src/main/org/hornetq/jms/client/HornetQTopic.java
Modified:
trunk/src/main/org/hornetq/jms/client/HornetQDestination.java
trunk/src/main/org/hornetq/jms/client/HornetQQueueBrowser.java
trunk/src/main/org/hornetq/jms/client/HornetQSession.java
trunk/src/main/org/hornetq/jms/server/impl/JMSServerManagerImpl.java
trunk/src/main/org/hornetq/jms/server/management/JMSManagementService.java
trunk/src/main/org/hornetq/jms/server/management/impl/JMSManagementServiceImpl.java
trunk/tests/jms-tests/src/org/hornetq/jms/tests/ReferenceableTest.java
trunk/tests/src/org/hornetq/tests/integration/jms/server/management/JMSQueueControlTest.java
trunk/tests/src/org/hornetq/tests/integration/jms/server/management/JMSQueueControlUsingJMSTest.java
trunk/tests/src/org/hornetq/tests/integration/jms/server/management/JMSServerControlUsingJMSTest.java
trunk/tests/src/org/hornetq/tests/integration/jms/server/management/TopicControlTest.java
trunk/tests/src/org/hornetq/tests/integration/jms/server/management/TopicControlUsingJMSTest.java
Log:
HORNETQ-384 - Separating Queues and Topics implementation
Modified: trunk/src/main/org/hornetq/jms/client/HornetQDestination.java
===================================================================
--- trunk/src/main/org/hornetq/jms/client/HornetQDestination.java 2010-05-10 14:29:02 UTC (rev 9218)
+++ trunk/src/main/org/hornetq/jms/client/HornetQDestination.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -18,8 +18,6 @@
import javax.jms.Destination;
import javax.jms.JMSException;
-import javax.jms.TemporaryQueue;
-import javax.jms.TemporaryTopic;
import javax.naming.NamingException;
import javax.naming.Reference;
import javax.naming.Referenceable;
@@ -37,7 +35,7 @@
*
* $Id$
*/
-public class HornetQDestination implements TemporaryQueue, TemporaryTopic, Serializable, Referenceable
+public class HornetQDestination implements Destination, Serializable, Referenceable
{
// Constants -----------------------------------------------------
@@ -146,28 +144,28 @@
return new SimpleString(JMS_TOPIC_ADDRESS_PREFIX + name);
}
- public static HornetQDestination createQueue(final String name)
+ public static HornetQQueue createQueue(final String name)
{
- return new HornetQDestination(JMS_QUEUE_ADDRESS_PREFIX.concat(name), name, false, true, null);
+ return new HornetQQueue(name);
}
- public static HornetQDestination createTopic(final String name)
+ public static HornetQTopic createTopic(final String name)
{
- return new HornetQDestination(JMS_TOPIC_ADDRESS_PREFIX.concat(name), name, false, false, null);
+ return new HornetQTopic(name);
}
- public static HornetQDestination createTemporaryQueue(final HornetQSession session)
+ public static HornetQTemporaryQueue createTemporaryQueue(final HornetQSession session)
{
String name = UUID.randomUUID().toString();
- return new HornetQDestination(JMS_QUEUE_ADDRESS_PREFIX.concat(name), name, true, true, session);
+ return new HornetQTemporaryQueue(JMS_QUEUE_ADDRESS_PREFIX.concat(name), name, session);
}
- public static HornetQDestination createTemporaryTopic(final HornetQSession session)
+ public static HornetQTemporaryTopic createTemporaryTopic(final HornetQSession session)
{
String name = UUID.randomUUID().toString();
- return new HornetQDestination(JMS_TOPIC_ADDRESS_PREFIX.concat(name), name, true, false, session);
+ return new HornetQTemporaryTopic(JMS_TOPIC_ADDRESS_PREFIX.concat(name), name, session);
}
@@ -196,7 +194,7 @@
// Constructors --------------------------------------------------
- private HornetQDestination(final String address, final String name,
+ protected HornetQDestination(final String address, final String name,
final boolean temporary,
final boolean queue,
final HornetQSession session)
@@ -224,16 +222,6 @@
null);
}
- public String getQueueName()
- {
- return name;
- }
-
- public String getTopicName()
- {
- return name;
- }
-
public void delete() throws JMSException
{
if (session != null)
Added: trunk/src/main/org/hornetq/jms/client/HornetQQueue.java
===================================================================
--- trunk/src/main/org/hornetq/jms/client/HornetQQueue.java (rev 0)
+++ trunk/src/main/org/hornetq/jms/client/HornetQQueue.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -0,0 +1,97 @@
+/*
+ * Copyright 2010 Red Hat, Inc.
+ * Red Hat licenses this file to you under the Apache License, version
+ * 2.0 (the "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+package org.hornetq.jms.client;
+
+import javax.jms.Queue;
+
+import org.hornetq.api.core.SimpleString;
+import org.hornetq.core.logging.Logger;
+
+/**
+ * HornetQ implementation of a JMS Queue.
+ * <br>
+ * This class can be instantiated directly.
+ *
+ * @author <a href="mailto:ovidiu@feodorov.com">Ovidiu Feodorov</a>
+ * @author <a href="mailto:tim.fox@jboss.com">Tim Fox</a>
+ * @version <tt>$Revision: 8737 $</tt>
+ *
+ * $Id: HornetQQueue.java 8737 2010-01-06 12:41:30Z jmesnil $
+ */
+public class HornetQQueue extends HornetQDestination implements Queue
+{
+ // Constants -----------------------------------------------------
+
+ private static final Logger log = Logger.getLogger(HornetQQueue.class);
+
+ private static final long serialVersionUID = -1106092883162295462L;
+
+ // Static --------------------------------------------------------
+
+ public static SimpleString createAddressFromName(final String name)
+ {
+ return new SimpleString(HornetQQueue.JMS_QUEUE_ADDRESS_PREFIX + name);
+ }
+
+ // Attributes ----------------------------------------------------
+
+ // Constructors --------------------------------------------------
+
+ public HornetQQueue(final String name)
+ {
+ super(HornetQQueue.JMS_QUEUE_ADDRESS_PREFIX + name, name, false, true, null);
+ }
+
+
+
+ /**
+ * @param address
+ * @param name
+ * @param temporary
+ * @param queue
+ * @param session
+ */
+ public HornetQQueue(String address, String name, boolean temporary, HornetQSession session)
+ {
+ super(address, name, temporary, true, session);
+ }
+
+ protected HornetQQueue(final String address, final String name)
+ {
+ super(address, name, false, true, null);
+ }
+
+ // Queue implementation ------------------------------------------
+
+ // Public --------------------------------------------------------
+
+ public String getQueueName()
+ {
+ return name;
+ }
+
+ @Override
+ public String toString()
+ {
+ return "HornetQQueue[" + name + "]";
+ }
+
+ // Package protected ---------------------------------------------
+
+ // Protected -----------------------------------------------------
+
+ // Private -------------------------------------------------------
+
+ // Inner classes -------------------------------------------------
+}
Modified: trunk/src/main/org/hornetq/jms/client/HornetQQueueBrowser.java
===================================================================
--- trunk/src/main/org/hornetq/jms/client/HornetQQueueBrowser.java 2010-05-10 14:29:02 UTC (rev 9218)
+++ trunk/src/main/org/hornetq/jms/client/HornetQQueueBrowser.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -49,13 +49,13 @@
private ClientConsumer consumer;
- private final HornetQDestination queue;
+ private final HornetQQueue queue;
private SimpleString filterString;
// Constructors ---------------------------------------------------------------------------------
- protected HornetQQueueBrowser(final HornetQDestination queue, final String messageSelector, final ClientSession session) throws JMSException
+ protected HornetQQueueBrowser(final HornetQQueue queue, final String messageSelector, final ClientSession session) throws JMSException
{
this.session = session;
this.queue = queue;
Modified: trunk/src/main/org/hornetq/jms/client/HornetQSession.java
===================================================================
--- trunk/src/main/org/hornetq/jms/client/HornetQSession.java 2010-05-10 14:29:02 UTC (rev 9218)
+++ trunk/src/main/org/hornetq/jms/client/HornetQSession.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -385,7 +385,7 @@
throw new IllegalStateException("Cannot create a queue using a TopicSession");
}
- HornetQDestination queue = HornetQDestination.createQueue(queueName);
+ HornetQQueue queue = HornetQDestination.createQueue(queueName);
try
{
@@ -414,7 +414,7 @@
throw new IllegalStateException("Cannot create a topic on a QueueSession");
}
- HornetQDestination topic = HornetQDestination.createTopic(topicName);
+ HornetQTopic topic = HornetQDestination.createTopic(topicName);
try
{
@@ -684,7 +684,7 @@
throw JMSExceptionHelper.convertFromHornetQException(e);
}
- return new HornetQQueueBrowser(jbq, filterString, session);
+ return new HornetQQueueBrowser((HornetQQueue)jbq, filterString, session);
}
@@ -698,7 +698,7 @@
try
{
- HornetQDestination queue = HornetQDestination.createTemporaryQueue(this);
+ HornetQTemporaryQueue queue = HornetQDestination.createTemporaryQueue(this);
SimpleString simpleAddress = queue.getSimpleAddress();
@@ -724,7 +724,7 @@
try
{
- HornetQDestination topic = HornetQDestination.createTemporaryTopic(this);
+ HornetQTemporaryTopic topic = HornetQDestination.createTemporaryTopic(this);
SimpleString simpleAddress = topic.getSimpleAddress();
Added: trunk/src/main/org/hornetq/jms/client/HornetQTemporaryQueue.java
===================================================================
--- trunk/src/main/org/hornetq/jms/client/HornetQTemporaryQueue.java (rev 0)
+++ trunk/src/main/org/hornetq/jms/client/HornetQTemporaryQueue.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -0,0 +1,72 @@
+/*
+ * Copyright 2010 Red Hat, Inc.
+ * Red Hat licenses this file to you under the Apache License, version
+ * 2.0 (the "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+package org.hornetq.jms.client;
+
+import javax.jms.JMSException;
+import javax.jms.TemporaryQueue;
+
+
+/**
+ * HornetQ implementation of a JMS TemporaryQueue.
+ * <br>
+ * This class can be instantiated directly.
+ *
+ * @author <a href="mailto:tim.fox@jboss.com">Tim Fox</a>
+ * @version <tt>$Revision: 3569 $</tt>
+ *
+ * $Id: HornetQQueue.java 3569 2008-01-15 21:14:04Z timfox $
+ */
+public class HornetQTemporaryQueue extends HornetQQueue implements TemporaryQueue
+{
+ // Constants -----------------------------------------------------
+
+ private static final long serialVersionUID = -4624930377557954624L;
+
+ // Static --------------------------------------------------------
+
+ // Attributes ----------------------------------------------------
+
+ // Constructors --------------------------------------------------
+
+
+ // TemporaryQueue implementation ------------------------------------------
+
+ // Public --------------------------------------------------------
+
+ /**
+ * @param address
+ * @param name
+ * @param temporary
+ * @param queue
+ * @param session
+ */
+ public HornetQTemporaryQueue(String address, String name, HornetQSession session)
+ {
+ super(address, name, true, session);
+ }
+
+ @Override
+ public String toString()
+ {
+ return "HornetQTemporaryQueue[" + name + "]";
+ }
+
+ // Package protected ---------------------------------------------
+
+ // Protected -----------------------------------------------------
+
+ // Private -------------------------------------------------------
+
+ // Inner classes -------------------------------------------------
+}
Added: trunk/src/main/org/hornetq/jms/client/HornetQTemporaryTopic.java
===================================================================
--- trunk/src/main/org/hornetq/jms/client/HornetQTemporaryTopic.java (rev 0)
+++ trunk/src/main/org/hornetq/jms/client/HornetQTemporaryTopic.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2010 Red Hat, Inc.
+ * Red Hat licenses this file to you under the Apache License, version
+ * 2.0 (the "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+package org.hornetq.jms.client;
+
+import javax.jms.TemporaryTopic;
+
+/**
+ * A HornetQTemporaryTopic
+ *
+ * @author <a href="mailto:clebert.suconic@jboss.org">Clebert Suconic</a>
+ *
+ *
+ */
+public class HornetQTemporaryTopic extends HornetQTopic implements TemporaryTopic
+{
+
+ // Constants -----------------------------------------------------
+
+ private static final long serialVersionUID = 845450764835635266L;
+
+ // Attributes ----------------------------------------------------
+
+ // Static --------------------------------------------------------
+
+ // Constructors --------------------------------------------------
+
+ protected HornetQTemporaryTopic(final String address, final String name,
+ final HornetQSession session)
+ {
+ super(address, name, true, session);
+ }
+
+ // Public --------------------------------------------------------
+
+ // Package protected ---------------------------------------------
+
+ // Protected -----------------------------------------------------
+
+ // Private -------------------------------------------------------
+
+ // Inner classes -------------------------------------------------
+
+}
Added: trunk/src/main/org/hornetq/jms/client/HornetQTopic.java
===================================================================
--- trunk/src/main/org/hornetq/jms/client/HornetQTopic.java (rev 0)
+++ trunk/src/main/org/hornetq/jms/client/HornetQTopic.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -0,0 +1,91 @@
+/*
+ * Copyright 2010 Red Hat, Inc.
+ * Red Hat licenses this file to you under the Apache License, version
+ * 2.0 (the "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+package org.hornetq.jms.client;
+
+import javax.jms.JMSException;
+import javax.jms.Topic;
+
+import org.hornetq.api.core.Pair;
+import org.hornetq.api.core.SimpleString;
+import org.hornetq.jms.client.HornetQDestination;
+
+/**
+ * HornetQ implementation of a JMS Topic.
+ * <br>
+ * This class can be instantiated directly.
+ *
+ * @author <a href="mailto:ovidiu@feodorov.com">Ovidiu Feodorov</a>
+ * @author <a href="mailto:tim.fox@jboss.com">Tim Fox</a>
+ * @version <tt>$Revision: 8737 $</tt>
+ *
+ * $Id: HornetQTopic.java 8737 2010-01-06 12:41:30Z jmesnil $
+ */
+public class HornetQTopic extends HornetQDestination implements Topic
+{
+ // Constants -----------------------------------------------------
+
+ private static final long serialVersionUID = 7873614001276404156L;
+ // Static --------------------------------------------------------
+
+ public static SimpleString createAddressFromName(final String name)
+ {
+ return new SimpleString(HornetQTopic.JMS_TOPIC_ADDRESS_PREFIX + name);
+ }
+
+ // Attributes ----------------------------------------------------
+
+ // Constructors --------------------------------------------------
+
+ public HornetQTopic(final String name)
+ {
+ super(HornetQQueue.JMS_TOPIC_ADDRESS_PREFIX + name, name, false, false, null);
+ }
+
+
+ /**
+ * @param address
+ * @param name
+ * @param temporary
+ * @param queue
+ * @param session
+ */
+ protected HornetQTopic(String address, String name, boolean temporary, HornetQSession session)
+ {
+ super(address, name, temporary, false, session);
+ }
+
+
+ // Topic implementation ------------------------------------------
+
+ public String getTopicName()
+ {
+ return name;
+ }
+
+ // Public --------------------------------------------------------
+
+ @Override
+ public String toString()
+ {
+ return "HornetQTopic[" + name + "]";
+ }
+
+ // Package protected ---------------------------------------------
+
+ // Protected -----------------------------------------------------
+
+ // Private -------------------------------------------------------
+
+ // Inner classes -------------------------------------------------
+}
Modified: trunk/src/main/org/hornetq/jms/server/impl/JMSServerManagerImpl.java
===================================================================
--- trunk/src/main/org/hornetq/jms/server/impl/JMSServerManagerImpl.java 2010-05-10 14:29:02 UTC (rev 9218)
+++ trunk/src/main/org/hornetq/jms/server/impl/JMSServerManagerImpl.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -47,6 +47,8 @@
import org.hornetq.core.settings.impl.AddressSettings;
import org.hornetq.jms.client.HornetQConnectionFactory;
import org.hornetq.jms.client.HornetQDestination;
+import org.hornetq.jms.client.HornetQQueue;
+import org.hornetq.jms.client.HornetQTopic;
import org.hornetq.jms.client.SelectorTranslator;
import org.hornetq.jms.persistence.JMSStorageManager;
import org.hornetq.jms.persistence.config.PersistedConnectionFactory;
@@ -92,9 +94,9 @@
*/
private Context context;
- private Map<String, HornetQDestination> queues = new HashMap<String, HornetQDestination>();
+ private Map<String, HornetQQueue> queues = new HashMap<String, HornetQQueue>();
- private Map<String, HornetQDestination> topics = new HashMap<String, HornetQDestination>();
+ private Map<String, HornetQTopic> topics = new HashMap<String, HornetQTopic>();
private final Map<String, HornetQConnectionFactory> connectionFactories = new HashMap<String, HornetQConnectionFactory>();
@@ -439,7 +441,7 @@
{
checkInitialised();
- HornetQDestination destination = topics.get(topicName);
+ HornetQTopic destination = topics.get(topicName);
if (destination == null)
{
throw new IllegalArgumentException("Topic does not exist");
@@ -477,7 +479,7 @@
{
checkInitialised();
- HornetQDestination destination = queues.get(queueName);
+ HornetQQueue destination = queues.get(queueName);
if (destination == null)
{
throw new IllegalArgumentException("Queue does not exist");
@@ -1082,7 +1084,7 @@
}
else
{
- HornetQDestination hqQueue = HornetQDestination.createQueue(queueName);
+ HornetQQueue hqQueue = HornetQDestination.createQueue(queueName);
// Convert from JMS selector to core filter
String coreFilterString = null;
@@ -1122,7 +1124,7 @@
}
else
{
- HornetQDestination hqTopic = HornetQDestination.createTopic(topicName);
+ HornetQTopic hqTopic = HornetQDestination.createTopic(topicName);
// We create a dummy subscription on the topic, that never receives messages - this is so we can perform JMS
// checks when routing messages to a topic that
// does not exist - otherwise we would not be able to distinguish from a non existent topic and one with no
Modified: trunk/src/main/org/hornetq/jms/server/management/JMSManagementService.java
===================================================================
--- trunk/src/main/org/hornetq/jms/server/management/JMSManagementService.java 2010-05-10 14:29:02 UTC (rev 9218)
+++ trunk/src/main/org/hornetq/jms/server/management/JMSManagementService.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -15,7 +15,8 @@
import org.hornetq.api.jms.management.JMSServerControl;
import org.hornetq.jms.client.HornetQConnectionFactory;
-import org.hornetq.jms.client.HornetQDestination;
+import org.hornetq.jms.client.HornetQQueue;
+import org.hornetq.jms.client.HornetQTopic;
import org.hornetq.jms.server.JMSServerManager;
/**
@@ -30,11 +31,11 @@
void unregisterJMSServer() throws Exception;
- void registerQueue(HornetQDestination queue) throws Exception;
+ void registerQueue(HornetQQueue queue) throws Exception;
void unregisterQueue(String name) throws Exception;
- void registerTopic(HornetQDestination topic) throws Exception;
+ void registerTopic(HornetQTopic topic) throws Exception;
void unregisterTopic(String name) throws Exception;
Modified: trunk/src/main/org/hornetq/jms/server/management/impl/JMSManagementServiceImpl.java
===================================================================
--- trunk/src/main/org/hornetq/jms/server/management/impl/JMSManagementServiceImpl.java 2010-05-10 14:29:02 UTC (rev 9218)
+++ trunk/src/main/org/hornetq/jms/server/management/impl/JMSManagementServiceImpl.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -27,6 +27,8 @@
import org.hornetq.core.server.management.ManagementService;
import org.hornetq.jms.client.HornetQConnectionFactory;
import org.hornetq.jms.client.HornetQDestination;
+import org.hornetq.jms.client.HornetQQueue;
+import org.hornetq.jms.client.HornetQTopic;
import org.hornetq.jms.management.impl.JMSConnectionFactoryControlImpl;
import org.hornetq.jms.management.impl.JMSQueueControlImpl;
import org.hornetq.jms.management.impl.JMSServerControlImpl;
@@ -78,7 +80,7 @@
managementService.unregisterFromRegistry(ResourceNames.JMS_SERVER);
}
- public synchronized void registerQueue(final HornetQDestination queue) throws Exception
+ public synchronized void registerQueue(final HornetQQueue queue) throws Exception
{
QueueControl coreQueueControl = (QueueControl)managementService.getResource(ResourceNames.CORE_QUEUE + queue.getAddress());
MessageCounterManager messageCounterManager = managementService.getMessageCounterManager();
@@ -102,7 +104,7 @@
managementService.unregisterFromRegistry(ResourceNames.JMS_QUEUE + name);
}
- public synchronized void registerTopic(final HornetQDestination topic) throws Exception
+ public synchronized void registerTopic(final HornetQTopic topic) throws Exception
{
ObjectName objectName = managementService.getObjectNameBuilder().getJMSTopicObjectName(topic.getTopicName());
AddressControl addressControl = (AddressControl)managementService.getResource(ResourceNames.CORE_ADDRESS + topic.getAddress());
Modified: trunk/tests/jms-tests/src/org/hornetq/jms/tests/ReferenceableTest.java
===================================================================
--- trunk/tests/jms-tests/src/org/hornetq/jms/tests/ReferenceableTest.java 2010-05-10 14:29:02 UTC (rev 9218)
+++ trunk/tests/jms-tests/src/org/hornetq/jms/tests/ReferenceableTest.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -27,6 +27,8 @@
import org.hornetq.jms.client.HornetQConnectionFactory;
import org.hornetq.jms.client.HornetQDestination;
+import org.hornetq.jms.client.HornetQQueue;
+import org.hornetq.jms.client.HornetQTopic;
import org.hornetq.jms.referenceable.ConnectionFactoryObjectFactory;
import org.hornetq.jms.referenceable.DestinationObjectFactory;
import org.hornetq.jms.tests.util.ProxyAssertSupport;
@@ -105,7 +107,7 @@
ProxyAssertSupport.assertTrue(instance instanceof HornetQDestination);
- HornetQDestination queue2 = (HornetQDestination)instance;
+ HornetQQueue queue2 = (HornetQQueue)instance;
ProxyAssertSupport.assertEquals(HornetQServerTestCase.queue1.getQueueName(), queue2.getQueueName());
@@ -127,7 +129,7 @@
ProxyAssertSupport.assertTrue(instance instanceof HornetQDestination);
- HornetQDestination topic2 = (HornetQDestination)instance;
+ HornetQTopic topic2 = (HornetQTopic)instance;
ProxyAssertSupport.assertEquals(HornetQServerTestCase.topic1.getTopicName(), topic2.getTopicName());
Modified: trunk/tests/src/org/hornetq/tests/integration/jms/server/management/JMSQueueControlTest.java
===================================================================
--- trunk/tests/src/org/hornetq/tests/integration/jms/server/management/JMSQueueControlTest.java 2010-05-10 14:29:02 UTC (rev 9218)
+++ trunk/tests/src/org/hornetq/tests/integration/jms/server/management/JMSQueueControlTest.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -40,6 +40,7 @@
import org.hornetq.core.settings.impl.AddressSettings;
import org.hornetq.jms.client.HornetQConnectionFactory;
import org.hornetq.jms.client.HornetQDestination;
+import org.hornetq.jms.client.HornetQQueue;
import org.hornetq.jms.server.impl.JMSServerManagerImpl;
import org.hornetq.tests.integration.management.ManagementControlHelper;
import org.hornetq.tests.integration.management.ManagementTestBase;
@@ -66,7 +67,7 @@
private JMSServerManagerImpl serverManager;
- protected HornetQDestination queue;
+ protected HornetQQueue queue;
protected Context context;
@@ -416,7 +417,7 @@
{
JMSQueueControl queueControl = createManagementControl();
String expiryQueueName = RandomUtil.randomString();
- HornetQDestination expiryQueue = (HornetQDestination)HornetQJMSClient.createQueue(expiryQueueName);
+ HornetQQueue expiryQueue = (HornetQQueue)HornetQJMSClient.createQueue(expiryQueueName);
serverManager.createQueue(false, expiryQueueName, null, true, expiryQueueName);
queueControl.setExpiryAddress(expiryQueue.getAddress());
@@ -545,7 +546,7 @@
{
String deadLetterQueue = RandomUtil.randomString();
serverManager.createQueue(false, deadLetterQueue, null, true, deadLetterQueue);
- HornetQDestination dlq = (HornetQDestination)HornetQJMSClient.createQueue(deadLetterQueue);
+ HornetQQueue dlq = (HornetQQueue)HornetQJMSClient.createQueue(deadLetterQueue);
Connection conn = createConnection();
Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
@@ -606,7 +607,7 @@
String deadLetterQueue = RandomUtil.randomString();
serverManager.createQueue(false, deadLetterQueue, null, true, deadLetterQueue);
- HornetQDestination dlq = (HornetQDestination)HornetQJMSClient.createQueue(deadLetterQueue);
+ HornetQQueue dlq = (HornetQQueue)HornetQJMSClient.createQueue(deadLetterQueue);
Connection conn = createConnection();
Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
@@ -835,7 +836,7 @@
String queueName = RandomUtil.randomString();
serverManager.createQueue(false, queueName, null, true, queueName);
- queue = (HornetQDestination)HornetQJMSClient.createQueue(queueName);
+ queue = (HornetQQueue)HornetQJMSClient.createQueue(queueName);
}
@Override
Modified: trunk/tests/src/org/hornetq/tests/integration/jms/server/management/JMSQueueControlUsingJMSTest.java
===================================================================
--- trunk/tests/src/org/hornetq/tests/integration/jms/server/management/JMSQueueControlUsingJMSTest.java 2010-05-10 14:29:02 UTC (rev 9218)
+++ trunk/tests/src/org/hornetq/tests/integration/jms/server/management/JMSQueueControlUsingJMSTest.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -27,6 +27,7 @@
import org.hornetq.core.remoting.impl.invm.InVMConnectorFactory;
import org.hornetq.jms.client.HornetQConnectionFactory;
import org.hornetq.jms.client.HornetQDestination;
+import org.hornetq.jms.client.HornetQQueue;
/**
*
@@ -78,7 +79,7 @@
@Override
protected JMSQueueControl createManagementControl() throws Exception
{
- HornetQDestination managementQueue = (HornetQDestination) HornetQJMSClient.createQueue("hornetq.management");
+ HornetQQueue managementQueue = (HornetQQueue) HornetQJMSClient.createQueue("hornetq.management");
final JMSMessagingProxy proxy = new JMSMessagingProxy(session,
managementQueue,
Modified: trunk/tests/src/org/hornetq/tests/integration/jms/server/management/JMSServerControlUsingJMSTest.java
===================================================================
--- trunk/tests/src/org/hornetq/tests/integration/jms/server/management/JMSServerControlUsingJMSTest.java 2010-05-10 14:29:02 UTC (rev 9218)
+++ trunk/tests/src/org/hornetq/tests/integration/jms/server/management/JMSServerControlUsingJMSTest.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -29,6 +29,7 @@
import org.hornetq.core.security.Role;
import org.hornetq.jms.client.HornetQConnectionFactory;
import org.hornetq.jms.client.HornetQDestination;
+import org.hornetq.jms.client.HornetQQueue;
/**
* A JMSServerControlUsingCoreTest
@@ -88,7 +89,7 @@
@Override
protected JMSServerControl createManagementControl() throws Exception
{
- HornetQDestination managementQueue = (HornetQDestination) HornetQJMSClient.createQueue("hornetq.management");
+ HornetQQueue managementQueue = (HornetQQueue) HornetQJMSClient.createQueue("hornetq.management");
final JMSMessagingProxy proxy = new JMSMessagingProxy(session, managementQueue, ResourceNames.JMS_SERVER);
return new JMSServerControl()
Modified: trunk/tests/src/org/hornetq/tests/integration/jms/server/management/TopicControlTest.java
===================================================================
--- trunk/tests/src/org/hornetq/tests/integration/jms/server/management/TopicControlTest.java 2010-05-10 14:29:02 UTC (rev 9218)
+++ trunk/tests/src/org/hornetq/tests/integration/jms/server/management/TopicControlTest.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -31,6 +31,7 @@
import org.hornetq.core.server.HornetQServer;
import org.hornetq.core.server.HornetQServers;
import org.hornetq.jms.client.HornetQDestination;
+import org.hornetq.jms.client.HornetQTopic;
import org.hornetq.jms.server.impl.JMSServerManagerImpl;
import org.hornetq.tests.integration.management.ManagementControlHelper;
import org.hornetq.tests.integration.management.ManagementTestBase;
@@ -62,7 +63,7 @@
private String subscriptionName;
- protected HornetQDestination topic;
+ protected HornetQTopic topic;
private String topicBinding = "/topic/" + RandomUtil.randomString();
@@ -433,7 +434,7 @@
String topicName = RandomUtil.randomString();
serverManager.createTopic(false, topicName, topicBinding);
- topic = (HornetQDestination)HornetQJMSClient.createTopic(topicName);
+ topic = (HornetQTopic)HornetQJMSClient.createTopic(topicName);
}
@Override
Modified: trunk/tests/src/org/hornetq/tests/integration/jms/server/management/TopicControlUsingJMSTest.java
===================================================================
--- trunk/tests/src/org/hornetq/tests/integration/jms/server/management/TopicControlUsingJMSTest.java 2010-05-10 14:29:02 UTC (rev 9218)
+++ trunk/tests/src/org/hornetq/tests/integration/jms/server/management/TopicControlUsingJMSTest.java 2010-05-10 20:35:28 UTC (rev 9219)
@@ -33,6 +33,8 @@
import org.hornetq.core.server.HornetQServers;
import org.hornetq.jms.client.HornetQConnectionFactory;
import org.hornetq.jms.client.HornetQDestination;
+import org.hornetq.jms.client.HornetQQueue;
+import org.hornetq.jms.client.HornetQTopic;
import org.hornetq.jms.server.impl.JMSServerManagerImpl;
import org.hornetq.tests.integration.management.ManagementTestBase;
import org.hornetq.tests.unit.util.InVMContext;
@@ -53,7 +55,7 @@
private String subscriptionName;
- protected HornetQDestination topic;
+ protected HornetQTopic topic;
protected JMSMessagingProxy proxy;
@@ -358,14 +360,14 @@
String topicName = RandomUtil.randomString();
serverManager.createTopic(false, topicName, topicBinding );
- topic = (HornetQDestination)HornetQJMSClient.createTopic(topicName);
+ topic = (HornetQTopic)HornetQJMSClient.createTopic(topicName);
HornetQConnectionFactory cf = (HornetQConnectionFactory)HornetQJMSClient.createConnectionFactory(new TransportConfiguration(InVMConnectorFactory.class.getName()));
connection = cf.createQueueConnection();
session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
connection.start();
- HornetQDestination managementQueue = (HornetQDestination)HornetQJMSClient.createQueue("hornetq.management");
+ HornetQQueue managementQueue = (HornetQQueue)HornetQJMSClient.createQueue("hornetq.management");
proxy = new JMSMessagingProxy(session, managementQueue, ResourceNames.JMS_TOPIC + topic.getTopicName());
}
14 years, 10 months
JBoss hornetq SVN: r9218 - in branches/HnetQ_323_cn: docs/quickstart-guide/zh and 4 other directories.
by do-not-reply@jboss.org
Author: gaohoward
Date: 2010-05-10 10:29:02 -0400 (Mon, 10 May 2010)
New Revision: 9218
Added:
branches/HnetQ_323_cn/lib/docbook-support/styles/zh/
branches/HnetQ_323_cn/lib/docbook-support/styles/zh/fopdf.xsl
branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.css
branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.xsl
branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html_chunk.xsl
Modified:
branches/HnetQ_323_cn/docs/quickstart-guide/build.xml
branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml
branches/HnetQ_323_cn/docs/user-manual/build.xml
branches/HnetQ_323_cn/docs/user-manual/zh/appserver-integration.xml
branches/HnetQ_323_cn/docs/user-manual/zh/clusters.xml
branches/HnetQ_323_cn/docs/user-manual/zh/configuring-transports.xml
branches/HnetQ_323_cn/docs/user-manual/zh/management.xml
branches/HnetQ_323_cn/docs/user-manual/zh/security.xml
branches/HnetQ_323_cn/docs/user-manual/zh/using-server.xml
Log:
zh support lib, fix missing tags
Modified: branches/HnetQ_323_cn/docs/quickstart-guide/build.xml
===================================================================
--- branches/HnetQ_323_cn/docs/quickstart-guide/build.xml 2010-05-10 13:26:02 UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/quickstart-guide/build.xml 2010-05-10 14:29:02 UTC (rev 9218)
@@ -7,6 +7,7 @@
<target name="all" depends="clean">
<mkdir dir="en/images" />
<antcall target="lang.all"><param name="lang" value="en"/></antcall>
+ <antcall target="lang.all"><param name="lang" value="zh"/></antcall>
</target>
<target name="html.doc" description="creates the html docs only and opens a browser">
Modified: branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml
===================================================================
--- branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml 2010-05-10 13:26:02 UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml 2010-05-10 14:29:02 UTC (rev 9218)
@@ -136,8 +136,7 @@
</listitem>
<listitem>
<para>运行HornetQ的<literal>config/jboss-as-4</literal>下的<literal>./build.sh</literal> (或
- 者如果在Windows下运行<literal>build.bat</literal>)。</literal>
- directory</para>
+ 者如果在Windows下运行<literal>build.bat</literal>)。</para>
</listitem>
</orderedlist>
<para>这将会在<literal>$JBOSS_HOME/server</literal>创建两个服务器配置:</para>
Modified: branches/HnetQ_323_cn/docs/user-manual/build.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/build.xml 2010-05-10 13:26:02 UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/user-manual/build.xml 2010-05-10 14:29:02 UTC (rev 9218)
@@ -7,6 +7,7 @@
<target name="all" depends="clean">
<mkdir dir="en/images" />
<antcall target="lang.all"><param name="lang" value="en"/></antcall>
+ <antcall target="lang.all"><param name="lang" value="zh"/></antcall>
</target>
<target name="html.doc" description="creates the html docs only and opens a browser">
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/appserver-integration.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/appserver-integration.xml 2010-05-10 13:26:02 UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/appserver-integration.xml 2010-05-10 14:29:02 UTC (rev 9218)
@@ -395,18 +395,18 @@
<entry>String</entry>
<entry>备份传输的配置参数</entry>
</row>
- <row>
- <link linkend="configuration.discovery-group.group-address">DiscoveryAddress</link></entry>
+ <row>399
+ <entry><link linkend="configuration.discovery-group.group-address">DiscoveryAddress</link></entry>
<entry>String</entry>
<entry>服务器自动检测所使用的发现组(discovery group)地址</entry>
</row>
<row>
- <link linkend="configuration.discovery-group.group-port">DiscoveryPort</link></entry>
+ <entry><link linkend="configuration.discovery-group.group-port">DiscoveryPort</link></entry>
<entry>Integer</entry>
<entry>检测所使用的端口号</entry>
</row>
<row>
- <entry><link linkend="configuration.discovery-group.refresh-timeout">DiscoveryRefreshTimeout</link></entry></entry>
+ <entry><link linkend="configuration.discovery-group.refresh-timeout">DiscoveryRefreshTimeout</link></entry>
<entry>Long</entry>
<entry>刷新的时间(timeout)。单位为毫秒</entry>
</row>
@@ -599,7 +599,7 @@
</row>
</tbody>
</tgroup>
- </informaltable>
+ </table>
</section>
<section>
<title>适配器外部(outbound)配置</title>
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/clusters.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/clusters.xml 2010-05-10 13:26:02 UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/clusters.xml 2010-05-10 14:29:02 UTC (rev 9218)
@@ -192,7 +192,7 @@
Connection jmsConnection2 = jmsConnectionFactory.createConnection();</programlisting></para>
<para><literal>refresh-timeout</literal>参数可以直接在连接工厂上使用
- <literal>setDiscoveryRefreshTimeout()</literal>方法设置。</literal></para>
+ <literal>setDiscoveryRefreshTimeout()</literal>方法设置。</para>
<para>连接工厂还有一个方法<literal>setDiscoveryInitialWaitTimeout()</literal>。它可以设置连接工厂的
初始等待时间。当一个连接工厂被创建后立即进行用于创建连接的话,连接工厂可能没有足够的时间来接收各
个服务器发出的广播信息,也就无法建立完整的服务器列表。有了这个参数,连接工厂会在首次创建连接时
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/configuring-transports.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/configuring-transports.xml 2010-05-10 13:26:02 UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/configuring-transports.xml 2010-05-10 14:29:02 UTC (rev 9218)
@@ -160,6 +160,7 @@
<para>我们建议使用Java NIO。因为Java NIO不是为每一个连接分配一个线程,所以它要比传统的阻塞式
Java IO具有更强的并发连接的处理能力。另外我们还建议使用Java 6的NIO以获得最佳性能。这个参
数的默认值在服务器端是<literal>true</literal>,在客户端是<literal>false</literal>。
+ </para>
</listitem>
<listitem>
<para><literal>host</literal>。主机名或IP地址。对于接收器来说,它是服务器接收连接的地址。
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/management.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/management.xml 2010-05-10 13:26:02 UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/management.xml 2010-05-10 14:29:02 UTC (rev 9218)
@@ -172,7 +172,7 @@
</listitem>
<listitem>
<para>消息计数器</para>
- <para>用<literal>listMessageCounter()方法和<literal>
+ <para>用<literal>listMessageCounter()</literal>方法和<literal>
listMessageCounterHistory()</literal>方法可以列出一个队列的消息计数器。
(参见 <xref linkend="management.message-counters"/>)。消息计数器还可以
用<literal>resetMessageCounter()</literal>方法重置。</para>
@@ -185,8 +185,8 @@
</listitem>
<listitem>
<para>暂停和恢复队列</para>
- <literal>QueueControl</literal>可用来暂停与恢复队列。如果一个队列被暂停,它
- 虽然可以继续接收消息但是不传递消息;当被恢复时,队列又会开始传递消息。<para>
+ <para><literal>QueueControl</literal>可用来暂停与恢复队列。如果一个队列被暂停,它
+ 虽然可以继续接收消息但是不传递消息;当被恢复时,队列又会开始传递消息。</para>
</listitem>
</itemizedlist>
</section>
@@ -428,7 +428,7 @@
<!-- false to disable JMX management for HornetQ -->
<jmx-management-enabled>false</jmx-management-enabled>
</programlisting>
- <para>如果JMX功能是打开的,则使用<literal>jconsole</literal>可以管理本地的HornetQ。
+ <para>如果JMX功能是打开的,则使用<literal>jconsole</literal>可以管理本地的HornetQ。</para>
<note>
<para>出于安全考虑,默认情况下JMX远程连接是关闭的。参见<ulink url="http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html#remote"
>Java管理指南</ulink>来配置服务器的远程管理(系统变量必须在<literal>run.sh</literal>或<literal>run.bat</literal>中定义)。</para>
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/security.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/security.xml 2010-05-10 13:26:02 UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/security.xml 2010-05-10 14:29:02 UTC (rev 9218)
@@ -191,7 +191,7 @@
<para>注意你需要为JAAS安全管理器提供三个参数:</para>
<itemizedlist>
<listitem>
- <para>ConfigurationName: <literal>LoginModule</literal>的名字。
+ <para>ConfigurationName: <literal>LoginModule</literal>的名字。</para>
</listitem>
<listitem>
<para>Configuration: <literal>Configuration</literal>的实现。</para>
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/using-server.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/using-server.xml 2010-05-10 13:26:02 UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/using-server.xml 2010-05-10 14:29:02 UTC (rev 9218)
@@ -134,7 +134,7 @@
<section id="server.microcontainer.configuration">
<title>JBoss Microcontainer Beans 文件</title>
<para>HornetQ的POJO对象是由<ulink url="http://www.jboss.org/jbossmc/"> JBoss Microcontainer
- </ulink>进行加载和运行的。JBoss Microcontainer是一个轻量级的加载工具。
+ </ulink>进行加载和运行的。JBoss Microcontainer是一个轻量级的加载工具。</para>
<note>
<para>如果是在JBoss应用服务器内运行,HornetQ同样需要一个bean的配置文件来将其部署到JBoss中。但是这与单独运行时的配置文件略有不同。
这是因为应用服务器内已经部署了一些服务,如安全服务等。所以在HornetQ中这些服务就不需要再部署了。</para>
Added: branches/HnetQ_323_cn/lib/docbook-support/styles/zh/fopdf.xsl
===================================================================
--- branches/HnetQ_323_cn/lib/docbook-support/styles/zh/fopdf.xsl (rev 0)
+++ branches/HnetQ_323_cn/lib/docbook-support/styles/zh/fopdf.xsl 2010-05-10 14:29:02 UTC (rev 9218)
@@ -0,0 +1,543 @@
+<?xml version="1.0"?>
+
+<!--
+ This was originally the XSL FO configuration file for the Hibernate
+ Reference Documentation. It defines a custom titlepage and
+ the parameters for the A4 sized PDF printable output. It is released
+ under the LGPL.
+
+ Modifications were made to better suit the needs of the JBoss documentation.
+-->
+
+<!DOCTYPE xsl:stylesheet [
+ <!ENTITY db_xsl_path "../../support/docbook-xsl/">
+]>
+
+<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="#default">
+
+
+ <!-- import the main docbook.xsl before we apply our overrides -->
+ <xsl:import href="&db_xsl_path;/fo/docbook.xsl"/>
+
+
+ <!-- ########## XRef -->
+ <!-- this controls whether xrefs have the title in it. We
+ don't want that -->
+ <xsl:param name="xref.with.number.and.title" select="0"/>
+
+ <xsl:template match="processing-instruction('lb')">
+ <fo:block>
+ <xsl:text> </xsl:text>
+ </fo:block>
+ </xsl:template>
+
+ <!--########## Custom Title Page -->
+ <xsl:template name="book.titlepage.recto">
+ <fo:block>
+ <fo:table table-layout="fixed" width="175mm">
+ <fo:table-column column-width="175mm"/>
+ <fo:table-body>
+ <fo:table-row>
+ <fo:table-cell text-align="center">
+ <xsl:if test="bookinfo/mediaobject">
+ <fo:block>
+ <fo:external-graphic>
+ <xsl:attribute name="src">
+ FILE:<xsl:value-of
+ select="bookinfo/mediaobject/imageobject/imagedata/@fileref" />
+ </xsl:attribute>
+ </fo:external-graphic>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="bookinfo/title">
+ <fo:block font-family="Helvetica" font-size="22pt" padding-before="10mm">
+ <xsl:value-of select="bookinfo/title"/>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="bookinfo/subtitle">
+ <fo:block font-family="Helvetica" font-size="18pt" padding-before="10mm">
+ <xsl:value-of select="bookinfo/subtitle"/>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="bookinfo/releaseinfo">
+ <fo:block font-family="Helvetica" font-size="12pt"
+ padding="10mm"><xsl:value-of select="bookinfo/releaseinfo"/>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="bookinfo/copyright">
+ <fo:block font-family="Helvetica" font-size="12pt"
+ padding="10mm">
+
+ <xsl:apply-templates select="bookinfo/copyright"
+ mode="titlepage.mode"/>
+ </fo:block>
+ </xsl:if>
+ </fo:table-cell>
+ </fo:table-row>
+ </fo:table-body>
+ </fo:table>
+ </fo:block>
+ </xsl:template>
+
+ <!-- Prevent blank pages in output -->
+ <xsl:template name="book.titlepage.before.verso"/>
+ <xsl:template name="book.titlepage.verso"/>
+ <xsl:template name="book.titlepage.separator"/>
+
+
+ <!--###################################################
+ Header
+ ################################################### -->
+ <!-- More space in the center header for long text -->
+ <xsl:attribute-set name="header.content.properties">
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$body.font.family"/>
+ </xsl:attribute>
+ <xsl:attribute name="margin-left">-5em</xsl:attribute>
+ <xsl:attribute name="margin-right">-5em</xsl:attribute>
+ </xsl:attribute-set>
+
+
+ <!--###################################################
+ Custom Footer
+ ################################################### -->
+ <!-- This footer prints the Hibernate version number on the left side -->
+ <xsl:template name="footer.content">
+ <xsl:param name="pageclass" select="''"/>
+ <xsl:param name="sequence" select="''"/>
+ <xsl:param name="position" select="''"/>
+ <xsl:param name="gentext-key" select="''"/>
+ <xsl:variable name="Version">
+ <xsl:choose>
+ <xsl:when test="//releaseinfo">
+ <xsl:text>JBoss </xsl:text>
+ <xsl:value-of select="//releaseinfo"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- nop -->
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$sequence='blank'">
+ <xsl:choose>
+ <xsl:when test="$double.sided != 0 and $position = 'left'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:when test="$double.sided = 0 and $position = 'center'">
+ <!-- nop -->
+ </xsl:when>
+ <xsl:otherwise>
+ <fo:page-number/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="$pageclass='titlepage'">
+ <!-- nop: other titlepage sequences have no footer -->
+ </xsl:when>
+ <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='left'">
+ <fo:page-number/>
+ </xsl:when>
+ <xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='right'">
+ <fo:page-number/>
+ </xsl:when>
+ <xsl:when test="$double.sided = 0 and $position='right'">
+ <fo:page-number/>
+ </xsl:when>
+ <xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='left'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='right'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:when test="$double.sided = 0 and $position='left'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- nop -->
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+
+
+ <!--###################################################
+ Custom Toc Line
+ ################################################### -->
+ <!-- Improve the TOC. -->
+ <xsl:template name="toc.trt">
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <fo:block text-align-last="justify" end-indent="{$toc.indent.width}pt" last-line-end-indent="-{$toc.indent.width}pt">
+ <fo:inline keep-with-next.within-line="always">
+ <fo:basic-link internal-destination="{$id}">
+ <!-- Chapter titles should be bold. -->
+ <xsl:choose>
+ <xsl:when test="local-name(.) = 'chapter'">
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:if test="$label != ''">
+ <xsl:copy-of select="$label"/>
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
+ <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+ </fo:basic-link>
+ </fo:inline>
+ <fo:inline keep-together.within-line="always">
+ <xsl:text/>
+ <fo:leader leader-pattern="dots" leader-pattern-width="3pt"
+ leader-alignment="reference-area" keep-with-next.within-line="always"/>
+ <xsl:text/>
+ <fo:basic-link internal-destination="{$id}">
+ <fo:page-number-citation ref-id="{$id}"/>
+ </fo:basic-link>
+ </fo:inline>
+ </fo:block>
+ </xsl:template>
+
+
+ <!--###################################################
+ Extensions
+ ################################################### -->
+ <!-- These extensions are required for table printing and other stuff -->
+ <xsl:param name="use.extensions">1</xsl:param>
+
+ <xsl:param name="linenumbering.extension">1</xsl:param>
+ <xsl:param name="linenumbering.everyNth">1</xsl:param>
+ <xsl:param name="linenumbering.separator">: </xsl:param>
+
+ <xsl:param name="tablecolumns.extension">0</xsl:param>
+ <!-- FOP provide only PDF Bookmarks at the moment -->
+ <xsl:param name="fop.extensions">1</xsl:param>
+
+
+
+ <!--###################################################
+ Table Of Contents
+ ################################################### -->
+ <!-- Generate the TOCs for named components only -->
+ <xsl:param name="generate.toc"> book toc,title</xsl:param>
+ <!-- ,figure,table,equation -->
+ <!-- Show only Sections up to level 3 in the TOCs -->
+ <xsl:param name="toc.section.depth">3</xsl:param>
+ <!-- Dot and Whitespace as separator in TOC between Label and Title-->
+ <xsl:param name="autotoc.label.separator" select="'. '"/>
+
+
+ <!--###################################################
+ Paper & Page Size
+ ################################################### -->
+ <!-- Paper type, no headers on blank pages, no double sided printing -->
+<!-- <xsl:param name="paper.type" select="'A4'"/>-->
+ <xsl:param name="double.sided">0</xsl:param>
+ <xsl:param name="headers.on.blank.pages">0</xsl:param>
+ <xsl:param name="footers.on.blank.pages">0</xsl:param>
+ <!-- Space between paper border and content (chaotic stuff, don't touch) -->
+ <xsl:param name="page.margin.top">5mm</xsl:param>
+ <xsl:param name="region.before.extent">10mm</xsl:param>
+ <xsl:param name="body.margin.top">10mm</xsl:param>
+ <xsl:param name="body.margin.bottom">15mm</xsl:param>
+ <xsl:param name="region.after.extent">10mm</xsl:param>
+ <xsl:param name="page.margin.bottom">0mm</xsl:param>
+ <xsl:param name="page.margin.outer">18mm</xsl:param>
+ <xsl:param name="page.margin.inner">18mm</xsl:param>
+ <!-- No intendation of Titles -->
+ <xsl:param name="title.margin.left">0pc</xsl:param>
+
+
+ <!--###################################################
+ Fonts & Styles
+ ################################################### -->
+ <!-- Default Font size -->
+ <xsl:param name="body.font.master">11</xsl:param>
+ <!-- Line height in body text -->
+ <xsl:param name="line-height">1.4</xsl:param>
+ <!-- Monospaced fonts are smaller than regular text -->
+ <xsl:attribute-set name="monospace.properties">
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$monospace.font.family"/>
+ </xsl:attribute>
+ <xsl:attribute name="font-size">0.8em</xsl:attribute>
+ </xsl:attribute-set>
+
+
+ <!--###################################################
+ Tables
+ ################################################### -->
+ <!-- The table width should be adapted to the paper size -->
+ <xsl:param name="default.table.width">17.4cm</xsl:param>
+ <!-- Some padding inside tables -->
+ <xsl:attribute-set name="table.cell.padding">
+ <xsl:attribute name="padding-left">4pt</xsl:attribute>
+ <xsl:attribute name="padding-right">4pt</xsl:attribute>
+ <xsl:attribute name="padding-top">4pt</xsl:attribute>
+ <xsl:attribute name="padding-bottom">4pt</xsl:attribute>
+ </xsl:attribute-set>
+ <!-- Only hairlines as frame and cell borders in tables -->
+ <xsl:param name="table.frame.border.thickness">0.1pt</xsl:param>
+ <xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
+
+
+
+ <!--###################################################
+ Labels
+ ################################################### -->
+ <!-- Label Chapters and Sections (numbering) -->
+ <xsl:param name="chapter.autolabel">1</xsl:param>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.label.includes.component.label" select="1"/>
+
+
+ <!--###################################################
+ Titles
+ ################################################### -->
+
+ <xsl:attribute-set name="chapter.titlepage.recto.style">
+ <xsl:attribute name="text-align">right</xsl:attribute>
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.8"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ </xsl:attribute-set>
+
+
+ <xsl:attribute-set name="appendix.titlepage.recto.style">
+ <xsl:attribute name="text-align">right</xsl:attribute>
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.8"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ </xsl:attribute-set>
+
+ <xsl:template name="appendix.titlepage.before.recto">
+ <xsl:param name="node" select="ancestor-or-self::appendix[1]"/>
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ text-align="right"
+ font-size="72pt" font-weight="bold">
+ <xsl:number from="book" format="A"/>
+ </fo:block>
+ </xsl:template>
+
+ <xsl:template name="chapter.titlepage.before.recto">
+ <xsl:param name="node" select="ancestor-or-self::chapter[1]"/>
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ text-align="right"
+ font-size="72pt" font-weight="bold">
+ <xsl:number from="book" format="1"/>
+ </fo:block>
+ </xsl:template>
+
+ <xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
+ <xsl:variable name="titleabbrev">
+ <xsl:apply-templates select="ancestor-or-self::appendix[1]"
+ mode="titleabbrev.markup"/>
+ </xsl:variable>
+
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xsl:use-attribute-sets="appendix.titlepage.recto.style">
+ <xsl:value-of select="$titleabbrev" />
+ </fo:block>
+ </xsl:template>
+
+ <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
+ <xsl:variable name="titleabbrev">
+ <xsl:apply-templates select="ancestor-or-self::chapter[1]"
+ mode="titleabbrev.markup"/>
+ </xsl:variable>
+
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xsl:use-attribute-sets="chapter.titlepage.recto.style">
+ <xsl:value-of select="$titleabbrev" />
+ </fo:block>
+ </xsl:template>
+
+
+ <!-- Sections 1, 2 and 3 titles have a small bump factor and padding -->
+ <xsl:attribute-set name="section.title.level1.properties">
+ <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.5"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+ <xsl:attribute-set name="section.title.level2.properties">
+ <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0.6em</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.25"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+ <xsl:attribute-set name="section.title.level3.properties">
+ <xsl:attribute name="space-before.optimum">0.4em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0.4em</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.0"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!-- Titles of formal objects (tables, examples, ...) -->
+ <xsl:attribute-set name="formal.title.properties"
+ use-attribute-sets="normal.para.spacing">
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="hyphenate">false</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
+ </xsl:attribute-set>
+
+
+
+ <!-- ########## blockquote -->
+ <xsl:attribute-set name="blockquote.properties">
+ <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ <xsl:attribute name="border-color">#444444</xsl:attribute>
+ <xsl:attribute name="border-style">solid</xsl:attribute>
+ <xsl:attribute name="border-width">0.1pt</xsl:attribute>
+ <xsl:attribute name="padding-top">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-left">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-right">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-left">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-right">0.5em</xsl:attribute>
+ <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
+ </xsl:attribute-set>
+
+
+
+ <!--###################################################
+ Programlistings
+ ################################################### -->
+ <!-- Verbatim text formatting (programlistings) -->
+ <xsl:attribute-set name="verbatim.properties">
+ <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ <xsl:attribute name="border-color">#444444</xsl:attribute>
+ <xsl:attribute name="border-style">solid</xsl:attribute>
+ <xsl:attribute name="border-width">0.1pt</xsl:attribute>
+ <xsl:attribute name="padding-top">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-left">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-right">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-left">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-right">0.5em</xsl:attribute>
+ </xsl:attribute-set>
+ <!-- Shade (background) programlistings -->
+ <xsl:param name="shade.verbatim">1</xsl:param>
+ <xsl:attribute-set name="shade.verbatim.style">
+ <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
+ </xsl:attribute-set>
+
+
+
+ <!--###################################################
+ Callouts
+ ################################################### -->
+ <!-- We want to use callouts... -->
+ <xsl:param name="callout.extensions">1</xsl:param>
+ <!-- Place callout bullets at this column in programmlisting.-->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
+ <!--
+ No, don't use crappy graphics for the callout bullets. This setting
+ enables some weird Unicode rendering for some fancy bullet points
+ in callouts. By default, this can only count to 10 and produces
+ strange results if you ever have more than 10 callouts for one
+ programlisting. We will fix that next.
+ -->
+ <xsl:param name="callout.graphics">0</xsl:param>
+ <!--
+ Again, fun with DocBook XSL: The callout bullets are rendered in
+ two places: In the programlisting itself and in the list below
+ the listing, with the actual callout text. The rendering in the
+ programlisting is some XSL transformer extension (e.g. a Saxon
+ extension), so we can't change that without messing with the
+ extensions. We only can turn it off by setting this limit to
+ zero, then, a simple bracket style like "(3)" and "(4)" will
+ be used in the programlisting.
+ -->
+ <xsl:param name="callout.unicode.number.limit" select="'0'"/>
+ <!--
+ The callout bullets in the actual callout list will be rendered
+ with an XSL FO template. The default template is broken: limited to 10
+ nice looking Unicode bullet points and then it doesn't print anything,
+ the fallback doesn't work. We implement our own template, which is not
+ as complicated, more ugly, but works. As always, function is more
+ important than form.
+ -->
+ <xsl:template name="callout-bug">
+ <xsl:param name="conum" select="1"/>
+ <fo:inline color="black" padding-top="0.1em" padding-bottom="0.1em"
+ padding-start="0.2em" padding-end="0.2em" baseline-shift="0.1em"
+ font-family="{$monospace.font.family}" font-weight="bold" font-size="75%">
+ <xsl:text>(</xsl:text>
+ <xsl:value-of select="$conum"/>
+ <xsl:text>)</xsl:text>
+ </fo:inline>
+ </xsl:template>
+
+
+
+ <!--###################################################
+ Misc
+ ################################################### -->
+ <!-- Correct placement of titles for figures and examples. -->
+ <xsl:param name="formal.title.placement"> figure after example before
+ equation before table before procedure before </xsl:param>
+ <!-- Format Variable Lists as Blocks (prevents horizontal overflow). -->
+ <xsl:param name="variablelist.as.blocks">1</xsl:param>
+ <!-- The horrible list spacing problems, this is much better. -->
+ <xsl:attribute-set name="list.block.spacing">
+ <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+ <!-- Newer DocBook XSL apparently thinks that some sections are by
+ default "draft" status, and this idiotic thing is by default
+ also set to "maybe", so it spits out a lot of errors with the
+ latest FOP as the XSL/FO styles have references to some draft
+ watermarks, which you actually don't want in the first place.
+ Turn this crap off. If you have to work with the "status"
+ attribute, don't.
+ -->
+ <xsl:param name="draft.mode" select="'no'"/>
+
+</xsl:stylesheet>
Added: branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.css
===================================================================
--- branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.css (rev 0)
+++ branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.css 2010-05-10 14:29:02 UTC (rev 9218)
@@ -0,0 +1,122 @@
+ * {
+ font-family: "Verdana", "Arial", "Helvetica";
+ font-size: 14px;
+ }
+
+ A {
+ color: #0000CC;
+ }
+
+ A:active {
+ color: #0000CC;
+ }
+
+ A:visited {
+ color: #0000CC;
+ }
+
+ P, OL, UL, LI, DL, DT, DD, BLOCKQUOTE {
+ color: #000000;
+ }
+
+ TD, TH, SPAN {
+ color: #000000;
+ }
+
+ BLOCKQUOTE {
+ margin-right: 0px;
+ }
+
+
+ H1, H2, H3, H4, H5, H6 {
+ color: #003399;
+ font-weight: 500;
+ margin-top: 10px;
+ padding-top: 5px;
+ }
+
+ H1 { font-size: 150%; }
+ H2 { font-size: 140%; }
+ H3 { font-size: 110%; font-weight: bold; }
+ H4 { font-size: 110%; font-weight: bold;}
+ H5 { font-size: 100%; font-style: italic; }
+ H6 { font-size: 100%; font-style: italic; }
+
+ TABLE {
+ border-collapse: collapse;
+ border-spacing: 0;
+ /*border: 1px dashed #CCCCCC;*/
+ empty-cells: hide;
+ width: 100%
+ }
+
+ TD {
+ padding: 4pt;
+ }
+
+
+ TT {
+ font-size: 90%;
+ font-style: monospace;
+ color: #111111;
+ }
+
+ PRE {
+ font-size: 100%;
+ padding: 5px;
+ border-style: solid;
+ border-width: 1px;
+ border-color: #CCCCCC;
+ background-color: #F4F4F4;
+ }
+
+ HR {
+ width: 100%;
+ height: 1px;
+ background-color: #CCCCCC;
+ border-width: 0px;
+ padding: 0px;
+ color: #CCCCCC;
+ }
+
+ .variablelist {
+ padding-top: 10;
+ padding-bottom: 10;
+ margin: 0;
+ }
+
+ .itemizedlist {
+ padding-top: 0;
+ padding-bottom: 0;
+ margin: 0;
+ list-style-type: disc;
+
+ }
+
+ .orderedlist{
+ padding-top: 0;
+ padding-bottom: 0;
+ margin: 0;
+ }
+
+ .term {
+ font-weight: bold;
+ }
+
+ .note
+ {
+ padding-bottom: 5px;
+ padding-left: 5px;
+ padding-right: 5px;
+ background-color: #FFFFCC;
+ }
+
+ .warning
+ {
+ padding-bottom: 5px;
+ padding-left: 5px;
+ padding-right: 5px;
+ background-color: #FBDADA;
+ }
+
+
Added: branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.xsl
===================================================================
--- branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.xsl (rev 0)
+++ branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.xsl 2010-05-10 14:29:02 UTC (rev 9218)
@@ -0,0 +1,84 @@
+<?xml version="1.0"?>
+
+<!--
+
+ This is the XSL HTML configuration file for the Hibernate
+ Reference Documentation.
+
+ It took me days to figure out this stuff and fix most of
+ the obvious bugs in the DocBook XSL distribution. Some of
+ the workarounds might not be appropriate with a newer version
+ of DocBook XSL. This file is released as part of Hibernate,
+ hence LGPL licensed.
+
+ christian(a)hibernate.org
+-->
+
+<!DOCTYPE xsl:stylesheet [
+ <!ENTITY db_xsl_path "../../support/docbook-xsl/">
+]>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0"
+ xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+
+<xsl:import href="&db_xsl_path;/html/docbook.xsl"/>
+
+<!--###################################################
+ HTML Settings
+ ################################################### -->
+
+ <xsl:param name="html.stylesheet">css/html.css</xsl:param>
+
+ <!-- These extensions are required for table printing and other stuff -->
+ <xsl:param name="use.extensions">1</xsl:param>
+ <xsl:param name="tablecolumns.extension">0</xsl:param>
+ <xsl:param name="callout.extensions">1</xsl:param>
+ <xsl:param name="graphicsize.extension">0</xsl:param>
+
+<!--###################################################
+ Table Of Contents
+ ################################################### -->
+
+ <!-- Generate the TOCs for named components only -->
+ <xsl:param name="generate.toc">
+ book toc
+ </xsl:param>
+
+ <!-- Show only Sections up to level 3 in the TOCs -->
+ <xsl:param name="toc.section.depth">3</xsl:param>
+
+<!--###################################################
+ Labels
+ ################################################### -->
+
+ <!-- Label Chapters and Sections (numbering) -->
+ <xsl:param name="chapter.autolabel">1</xsl:param>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.label.includes.component.label" select="1"/>
+
+<!--###################################################
+ Callouts
+ ################################################### -->
+
+ <!-- Don't use graphics, use a simple number style -->
+ <xsl:param name="callout.graphics">0</xsl:param>
+
+ <!-- Place callout marks at this column in annotated areas -->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
+
+<!--###################################################
+ Misc
+ ################################################### -->
+
+ <!-- Placement of titles -->
+ <xsl:param name="formal.title.placement">
+ figure after
+ example before
+ equation before
+ table before
+ procedure before
+ </xsl:param>
+
+</xsl:stylesheet>
Added: branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html_chunk.xsl
===================================================================
--- branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html_chunk.xsl (rev 0)
+++ branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html_chunk.xsl 2010-05-10 14:29:02 UTC (rev 9218)
@@ -0,0 +1,86 @@
+<?xml version="1.0"?>
+
+<!--
+
+ This is the XSL HTML configuration file for the Hibernate
+ Reference Documentation.
+
+ It took me days to figure out this stuff and fix most of
+ the obvious bugs in the DocBook XSL distribution. Some of
+ the workarounds might not be appropriate with a newer version
+ of DocBook XSL. This file is released as part of Hibernate,
+ hence LGPL licensed.
+
+ christian(a)hibernate.org
+-->
+
+<!DOCTYPE xsl:stylesheet [
+ <!ENTITY db_xsl_path "../../support/docbook-xsl/">
+]>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0"
+ xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+
+<xsl:import href="&db_xsl_path;/html/chunk.xsl"/>
+
+<!--###################################################
+ HTML Settings
+ ################################################### -->
+
+ <xsl:param name="chunk.section.depth">'5'</xsl:param>
+ <xsl:param name="use.id.as.filename">'1'</xsl:param>
+ <xsl:param name="html.stylesheet">css/html.css</xsl:param>
+
+ <!-- These extensions are required for table printing and other stuff -->
+ <xsl:param name="use.extensions">1</xsl:param>
+ <xsl:param name="tablecolumns.extension">0</xsl:param>
+ <xsl:param name="callout.extensions">1</xsl:param>
+ <xsl:param name="graphicsize.extension">0</xsl:param>
+
+<!--###################################################
+ Table Of Contents
+ ################################################### -->
+
+ <!-- Generate the TOCs for named components only -->
+ <xsl:param name="generate.toc">
+ book toc
+ </xsl:param>
+
+ <!-- Show only Sections up to level 3 in the TOCs -->
+ <xsl:param name="toc.section.depth">4</xsl:param>
+
+<!--###################################################
+ Labels
+ ################################################### -->
+
+ <!-- Label Chapters and Sections (numbering) -->
+ <xsl:param name="chapter.autolabel">1</xsl:param>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.label.includes.component.label" select="1"/>
+
+<!--###################################################
+ Callouts
+ ################################################### -->
+
+ <!-- Don't use graphics, use a simple number style -->
+ <xsl:param name="callout.graphics">0</xsl:param>
+
+ <!-- Place callout marks at this column in annotated areas -->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
+
+<!--###################################################
+ Misc
+ ################################################### -->
+
+ <!-- Placement of titles -->
+ <xsl:param name="formal.title.placement">
+ figure after
+ example before
+ equation before
+ table before
+ procedure before
+ </xsl:param>
+
+</xsl:stylesheet>
14 years, 10 months
JBoss hornetq SVN: r9217 - branches/HnetQ_323_cn/docs/user-manual/zh.
by do-not-reply@jboss.org
Author: gaohoward
Date: 2010-05-10 09:26:02 -0400 (Mon, 10 May 2010)
New Revision: 9217
Modified:
branches/HnetQ_323_cn/docs/user-manual/zh/project-info.xml
Log:
correction
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/project-info.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/project-info.xml 2010-05-10 13:12:38 UTC (rev 9216)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/project-info.xml 2010-05-10 13:26:02 UTC (rev 9217)
@@ -48,7 +48,7 @@
>IRC频道</ulink>与我们的核心开发工程师交流。</para>
</listitem>
<listitem>
- <para>我们项目有自己的 <ulink url="http://hornetq.blogspot.com/">blog</ulink></para>
+ <para>我们项目有自己的 <ulink url="http://hornetq.blogspot.com/">博客</ulink></para>
</listitem>
<listitem>
<para>还可以跟踪我们的<ulink url="http://twitter.com/hornetq">twitter</ulink></para>
14 years, 10 months
JBoss hornetq SVN: r9216 - branches/HnetQ_323_cn/docs/quickstart-guide/zh.
by do-not-reply@jboss.org
Author: gaohoward
Date: 2010-05-10 09:12:38 -0400 (Mon, 10 May 2010)
New Revision: 9216
Modified:
branches/HnetQ_323_cn/docs/quickstart-guide/zh/examples.xml
branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml
branches/HnetQ_323_cn/docs/quickstart-guide/zh/running.xml
Log:
done
Modified: branches/HnetQ_323_cn/docs/quickstart-guide/zh/examples.xml
===================================================================
--- branches/HnetQ_323_cn/docs/quickstart-guide/zh/examples.xml 2010-05-10 08:50:33 UTC (rev 9215)
+++ branches/HnetQ_323_cn/docs/quickstart-guide/zh/examples.xml 2010-05-10 13:12:38 UTC (rev 9216)
@@ -17,46 +17,40 @@
<!-- permitted by applicable law. -->
<!-- ============================================================================= -->
<chapter id="examples">
- <title>Running the Examples</title>
- <para>In the directory <literal>examples</literal> there are 2 sets of examples, these are </para>
+ <title>运行HornetQ例子</title>
+ <para>在HornetQ的<literal>examples</literal>目录下有两组例子,它们是:</para>
<itemizedlist>
<listitem>
- <para>JMS Examples - these demonstrate functionality while sending and consumng JMS
- messages.</para>
+ <para>JMS例子 - 这些例子展示的是使用JMS发送与接收消息的功能。</para>
</listitem>
<listitem>
- <para>Java EE Examples - these demonstrate application server integration, e.g. MDBs, EJBs,
- Servlets, etc.</para>
+ <para>Java EE 例子 - 这些例子展示的是与应用服务器的集成,例如MDB,EJB,Servlet等。</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>
+ <title>JMS例子</title>
+ <para>所有JMS都有统一的格式。每个例子都有自己的目录,它的内容包括:</para>
<itemizedlist>
<listitem>
<para><literal>build.xml</literal></para>
- <para>This is the ant build file used to run the example</para>
+ <para>ant的build文件,用来运行例子。</para>
</listitem>
<listitem>
- <para><literal>src</literal> directory</para>
- <para>This contains the source code for the example</para>
+ <para><literal>src</literal> 目录</para>
+ <para>例子的代码。</para>
</listitem>
<listitem>
- <para><literal>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>
+ <para><literal>server0</literal>配置目录</para>
+ <para>它包含了运行服务器所需要的配置文件。有的集群的例子可能有多个这样的目录,如<literal>server0</literal>,
+ <literal>server1</literal>等。</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>./build.sh</literal> (or <literal>build.bat</literal> if you
- are running on Windows), and you should see the following output:</para>
+ <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:
@@ -113,28 +107,20 @@
BUILD SUCCESSFUL
Total time: 13 seconds
</programlisting>
- <para>Congratulations! You have successfully run your first HornetQ example. Try some of the
- others.</para>
+ <para>恭喜!你已经成功地运行了你的第一个HornetQ例子。试着运行其它的例子。</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
- installed. 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>Like the other Java EE examples the MDB example is a JEE Application which first needs
- deploying in the JBoss Application Server. 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>
+ <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>Once set we can then deploy the application, from inside the <literal
- >examples/javaee/mdb</literal> directory run the command:</para>
+ <para>然后就可以进行部署了。在<literal>examples/javaee/mdb</literal>目录下运行:</para>
<programlisting>./build.sh deploy</programlisting>
- <para>This will make a copy of the messaging profile in the JBoss Application server and start
- the server.</para>
- <para>In the shell window you should see something like the following output:</para>
+ <para>它将创建一个“messaging"的AS配置,并用它来启动AS服务器。</para>
+ <para>在命令行窗口你会看到如下的输出:</para>
<programlisting>Buildfile: build.xml
validate-jboss:
@@ -183,10 +169,9 @@
=JBoss_5_1_0_GA date=200905151005)] Started in 6m:21s:797ms
</programlisting>
- <para>We can now run the example, do this by running the following command from within the
- <literal>mdb</literal> directory.</para>
+ <para>现在我们可以运行例子了。在<literal>mdb</literal>目录下运行下列命令:</para>
<programlisting>./build.sh</programlisting>
- <para>You should see some output similar to the following:</para>
+ <para>你将看到如下输出:</para>
<programlisting>Buildfile: build.xml
run:
@@ -224,11 +209,10 @@
BUILD SUCCESSFUL
Total time: 1 second
</programlisting>
- <para>You can verify that the application has been undeployed by checking the output from the
- JBoss Application Server, in this instance it will be something like:</para>
+ <para>你还会在窗口输出中看到MDB的应用最終被删除了,如:</para>
<programlisting>16:36:45,277 INFO [EJBContainer] STOPPED EJB: org.jboss.javaee.example.server.MDBExample
ejbName: MessageMDBExample
</programlisting>
- <para>Congratulations! you have successfully deployed and run a Java EE example.</para>
+ <para>恭喜!你已经成功地部署并运行了一个Java EE的例子。</para>
</section>
</chapter>
Modified: branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml
===================================================================
--- branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml 2010-05-10 08:50:33 UTC (rev 9215)
+++ branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml 2010-05-10 13:12:38 UTC (rev 9216)
@@ -104,59 +104,56 @@
</listitem>
<listitem>
<para>运行HornetQ的<literal>config/jboss-as-5</literal>下的<literal>./build.sh</literal> (或
- 者如果在Windows下运行<literal>build.bat</literal>)。 if you are on
- Windows) in HornetQ <literal>config/jboss-as-5</literal> directory</para>
+ 者如果在Windows下运行<literal>build.bat</literal>)。</para>
</listitem>
</orderedlist>
- <para>This will create 2 new profiles in <literal>$JBOSS_HOME/server</literal>:</para>
+ <para>这将会在<literal>$JBOSS_HOME/server</literal>创建两个服务器配置:</para>
<itemizedlist>
<listitem>
- <para><literal>default-with-hornetq</literal> -- it corresponds to AS 5 <literal
- >default</literal> profile with HornetQ as its JMS provider. In this profile,
- HornetQ is <emphasis>non-clustered</emphasis></para>
+ <para><literal>default-with-hornetq</literal> -- 这个相当于AS 5的<literal
+ >default</literal>配置但其JMS提供者替换成为HornetQ。在这个配置中的HornetQ
+ 是<emphasis>非集群</emphasis>的。</para>
</listitem>
<listitem>
- <para><literal>all-with-hornetq</literal> -- it corresponds to AS 5 <literal
- >all</literal> profile with HornetQ as its JMS provider. In this profile, HornetQ
- is <emphasis>clustered</emphasis></para>
+ <para><literal>all-with-hornetq</literal> -- 这个相当于AS 5的<literal
+ >all</literal>配置但其JMS提供者替换成为HornetQ。这个配置中的HornetQ
+ 是<emphasis>集群</emphasis>的。</para>
</listitem>
</itemizedlist>
- <para>You can then start JBoss AS 5 using one of these profiles, e.g. :</para>
+ <para>这时,你就可以启动上面其中任何一个配置的JBoss AS 5服务器了,例如:</para>
<programlisting>$JBOSS_HOME/bin/run.sh -c default-with-hornetq</programlisting>
</section>
<section id="installation.jboss.as4">
- <title>HornetQ In JBoss Application Server 4.x</title>
- <para>As in AS 4, it is not shipped by default with the application server, so you will need
- to create new AS 4 profiles to run AS 4 with HornetQ.</para>
- <para>To create AS 4 profiles:</para>
+ <title>HornetQ运行于JBoss应用服务器4.x</title>
+ <para>为了在AS 4中安装HornetQ,你需要创建新的配置(profile)。</para>
+ <para>步骤如下:</para>
<orderedlist>
<listitem>
- <para>Download JBoss AS 4</para>
+ <para>下载并安装JBoss AS 4</para>
</listitem>
<listitem>
- <para>Set the environment property <literal>JBOSS_HOME</literal> to point to the
- directory where you installed JBoss AS 4</para>
+ <para>设置环境变量<literal>JBOSS_HOME</literal>指向JBoss AS 4的安装目录。</para>
</listitem>
<listitem>
- <para>run <literal>./build.sh</literal> (or <literal>build.bat as4</literal> if you
- are on Windows) in HornetQ <literal>config/jboss-as-4</literal>
+ <para>运行HornetQ的<literal>config/jboss-as-4</literal>下的<literal>./build.sh</literal> (或
+ 者如果在Windows下运行<literal>build.bat</literal>)。</literal>
directory</para>
</listitem>
</orderedlist>
- <para>This will create 2 new profiles in <literal>$JBOSS_HOME/server</literal>:</para>
+ <para>这将会在<literal>$JBOSS_HOME/server</literal>创建两个服务器配置:</para>
<itemizedlist>
<listitem>
- <para><literal>default-with-hornetq</literal> -- it corresponds to AS 4 <literal
- >default</literal> profile with HornetQ as its JMS provider. In this profile,
- HornetQ is <emphasis>non-clustered</emphasis></para>
+ <para><literal>default-with-hornetq</literal> -- 这个相当于AS 4的<literal
+ >default</literal>配置但其JMS提供者替换成为HornetQ。在这个配置中的HornetQ
+ 是<emphasis>非集群</emphasis>的。</para>
</listitem>
<listitem>
- <para><literal>all-with-hornetq</literal> -- it corresponds to AS 4 <literal
- >all</literal> profile with HornetQ as its JMS provider. In this profile, HornetQ
- is <emphasis>clustered</emphasis></para>
+ <para><literal>all-with-hornetq</literal> -- 这个相当于AS 4的<literal
+ >all</literal>配置但其JMS提供者替换成为HornetQ。这个配置中的HornetQ
+ 是<emphasis>集群</emphasis>的。</para>
</listitem>
</itemizedlist>
- <para>You can then start JBoss AS 4 using one of these profiles:</para>
+ <para>这时,你就可以启动上面其中任何一个配置的JBoss AS 4服务器了,例如:</para>
<programlisting>$JBOSS_HOME/bin/run.sh -c default-with-hornetq</programlisting>
</section>
</chapter>
Modified: branches/HnetQ_323_cn/docs/quickstart-guide/zh/running.xml
===================================================================
--- branches/HnetQ_323_cn/docs/quickstart-guide/zh/running.xml 2010-05-10 08:50:33 UTC (rev 9215)
+++ branches/HnetQ_323_cn/docs/quickstart-guide/zh/running.xml 2010-05-10 13:12:38 UTC (rev 9216)
@@ -19,10 +19,10 @@
<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>
+ <title>单独HornetQ</title>
+ <para>要运行单独的HornetQ服务,打开一个命令行窗口,进入到HornetQ的<literal>bin</literal>
+ 目录下,执行<literal>./run.sh</literal> (或者在Windows下 <literal
+ >run.bat</literal>)。你将看到如下的输出:</para>
<programlisting>
bin$ ./run.sh
@@ -31,19 +31,17 @@
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>
+ <para>这表明HornetQ已经启动并运行了。</para>
+ <para>默认情况下,不论是启动还是停止脚本都使用<literal>config/stand-alone/non-clustered</literal>
+ 下的配置文件。要使用不同的配置目录,可运行<literal>./run.sh ../config/stand-alone/clustered</literal>
+ 或者其它选定的目录。同样方法适用于停止脚本。</para>
</section>
<section id="running.jboss.as5">
- <title>HornetQ In JBoss AS 5.x</title>
- <para>To run HornetQ in JBoss AS 5, you need to create the <link
- linkend="installation.jboss.as5">AS 5 profiles for HornetQ</link> first. Then run JBoss
- AS 5 with one these profiles. For example, to run JBoss AS 5 with a
- <emphasis>non-clustered</emphasis> HornetQ server, got to <literal
- >$JBOSS_HOME/bin</literal> directory and type:</para>
+ <title>HornetQ在JBoss AS 5.x中运行</title>
+ <para>要在JBoss AS 5运行HornetQ,你需要创建<link
+ linkend="installation.jboss.as5">安装有HornetQ的AS 5的配置</link>。然后用这个配置启动AS 5。
+ 例如,要运行一个带有<emphasis>非集群</emphasis>的HornetQ服务的AS 5,进入<literal
+ >$JBOSS_HOME/bin</literal>目录,然后键入:</para>
<programlisting>
bin$ ./run.sh -c default-with-hornetq
@@ -59,13 +57,12 @@
</programlisting>
</section>
<section id="running.jboss.as4">
- <title>HornetQ In JBoss AS 4.x</title>
- <para>To run HornetQ in JBoss AS 4 you must follow the same steps described for AS5 without
- forgetting to create the <link linkend="installation.jboss.as4">AS 4 profiles for
- HornetQ</link> first. </para>
+ <title>HornetQ在JBoss AS 4中运行</title>
+ <para>首先按照与JBoss AS 5相同的步骤创建<link linkend="installation.jboss.as4">安装有HornetQ的AS 4配置
+ </link>然后以相同的方式启动AS。</para>
</section>
<section id="running.jboss.as6">
- <title>HornetQ In JBoss AS 6.0</title>
- <para>From JBoss AS 6.0 M3 onwards, HornetQ is the default (built-in) JMS provider in JBoss AS, so there's no need to install it - it's already there.</para>
+ <title>HornetQ在JBoss AS 6.0中运行</title>
+ <para>从JBoss AS 6.0 M3开始,HornetQ已经是默认的(内建)JMS提供者。所以无需安装即可运行。</para>
</section>
</chapter>
14 years, 10 months
JBoss hornetq SVN: r9215 - branches/HnetQ_323_cn/docs/quickstart-guide/zh.
by do-not-reply@jboss.org
Author: gaohoward
Date: 2010-05-10 04:50:33 -0400 (Mon, 10 May 2010)
New Revision: 9215
Modified:
branches/HnetQ_323_cn/docs/quickstart-guide/zh/about.xml
branches/HnetQ_323_cn/docs/quickstart-guide/zh/download.xml
branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml
branches/HnetQ_323_cn/docs/quickstart-guide/zh/introduction.xml
branches/HnetQ_323_cn/docs/quickstart-guide/zh/notice.xml
Log:
quick start
Modified: branches/HnetQ_323_cn/docs/quickstart-guide/zh/about.xml
===================================================================
--- branches/HnetQ_323_cn/docs/quickstart-guide/zh/about.xml 2010-05-10 06:09:57 UTC (rev 9214)
+++ branches/HnetQ_323_cn/docs/quickstart-guide/zh/about.xml 2010-05-10 08:50:33 UTC (rev 9215)
@@ -19,61 +19,49 @@
<!-- ============================================================================= -->
<chapter id="about">
- <title>About HornetQ</title>
- <para>What is HornetQ?</para>
+ <title>关于HornetQ</title>
+ <para>什么是HornetQ?</para>
<itemizedlist>
<listitem>
- <para>HornetQ is an open source project to build a multi-protocol, embeddable, very high
- performance, clustered, asynchronous messaging system.</para>
+ <para>HornetQ是一个开源项目。它的目标是一个多协议、可嵌入、高性能、可集群的异步的消息系统。</para>
</listitem>
<listitem>
- <para>For answers to more questions about what HornetQ is and what it isn't please visit
- the <ulink url="http://www.jboss.org/community/wiki/HornetQGeneralFAQs">FAQs wiki
- page</ulink>.</para>
+ <para>有关HornetQ是什么及不是什么的更多的问题,请访问
+ <ulink url="http://www.jboss.org/community/wiki/HornetQGeneralFAQs">FAQs wiki
+ 页</ulink>。</para>
</listitem>
</itemizedlist>
- <para>Why use HornetQ? Here are just a few of the reasons:</para>
+ <para>为什么要使用HornetQ? 以下给出了几个理由:</para>
<itemizedlist>
<listitem>
- <para>100% open source software. HornetQ is licenced using the Apache Software License v2.0
- to minimise barriers to adoption.</para>
+ <para>HornetQ是100%的开源软件。 HornetQ 采用 Apache v 2.0开源协议,对用户的限制最小。</para>
</listitem>
<listitem>
- <para>HornetQ is designed with usability in mind.</para>
+ <para>HornetQ的设计强调可用性。</para>
</listitem>
<listitem>
- <para>Written in Java. Runs on any platform with a Java 6+ runtime, that's everything
- from Windows desktops to IBM mainframes.</para>
+ <para>采用Java语言编写。可以在任何Java 6+ 的平台上运行。这几乎包括了从Windows到IBM mainframes的每个平台。</para>
</listitem>
<listitem>
- <para>Amazing performance. Our class beating high performance journal provides persistent
- messaging performance at rates normally seen for non persistent messaging, our non
- persistent messaging performance rocks the boat too.</para>
+ <para>性能出众。不但对非持久化消息的处理性能达到了非常高的性能。独特高效的日志(journal)使持久消息处理接近非持久消息的性能。</para>
</listitem>
<listitem>
- <para>Full feature set. All the features you'd expect in any serious messaging system,
- and others you won't find anywhere else.</para>
+ <para>功能全面。不仅拥有其它成熟消息产品所具有的全部功能,而且还有很多独特的功能。</para>
</listitem>
<listitem>
- <para>Elegant, clean-cut design with minimal third party dependencies. Run HornetQ
- stand-alone, run it in integrated in your favourite JEE application server, or run
- it embedded inside your own product. It's up to you.</para>
+ <para>HornetQ的设计遵从了简约的原则。对第三方软件的依赖极少。根据不同的需要,
+ HornetQ可以单独运行,也可以运行于JEE应用服务器中。它还可以嵌入到你自己的应用程序中。</para>
</listitem>
<listitem>
- <para>Seamless high availability. We provide a HA solution with automatic client
- failover so you can guarantee zero message loss or duplication in event of server
- failure.</para>
+ <para>完美的可获得性。HornetQ提供自动客户端失效备援(automatic client failover)功能,能保证在服务器故障时没有消息丢失或消息重复。</para>
</listitem>
<listitem>
- <para>Hugely flexible clustering. Create clusters of servers that know how to load
- balance messages. Link geographically distributed clusters over unreliable
- connections to form a global network. Configure routing of messages in a highly
- flexible way.</para>
+ <para>超级灵活的集群方案。可以控制集群进行消息负载均衡的方式。分布在不同地理位置的各个集群间可以通过非可靠的网络连接形成一个全球网络。
+ 还可以非常灵活地配置消息路由。</para>
</listitem>
<listitem>
- <para>For a full list of features, please see the <ulink
- url="http://www.jboss.org/community/wiki/HornetQFeatures">features wiki
- page</ulink> .</para>
+ <para>请访问 <ulink
+ url="http://www.jboss.org/community/wiki/HornetQFeatures">wiki</ulink>来全面了解HornetQ的所有功能介绍。</para>
</listitem>
</itemizedlist>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: branches/HnetQ_323_cn/docs/quickstart-guide/zh/download.xml
===================================================================
--- branches/HnetQ_323_cn/docs/quickstart-guide/zh/download.xml 2010-05-10 06:09:57 UTC (rev 9214)
+++ branches/HnetQ_323_cn/docs/quickstart-guide/zh/download.xml 2010-05-10 08:50:33 UTC (rev 9215)
@@ -17,52 +17,52 @@
<!-- permitted by applicable law. -->
<!-- ============================================================================= -->
<chapter id="download">
- <title>Download</title>
- <para>The official HornetQ project page is <ulink url="http://hornetq.org/"
- >http://hornetq.org/</ulink>.</para>
+ <title>下载</title>
+ <para>HornetQ项目的官方地址是 <ulink url="http://hornetq.org/"
+ >http://hornetq.org/</ulink>。</para>
<section id="download.software">
- <title>Software Download</title>
- <para>The software can be download from the Download page:<ulink
+ <title>软件下载</title>
+ <para>HornetQ的下载地址是<ulink
url="http://hornetq.org/downloads.html/"
>http://hornetq.org/downloads.html</ulink></para>
</section>
<section id="download.svn">
- <title>Project Information</title>
+ <title>项目信息</title>
<para>
<itemizedlist>
<listitem>
- <para>Please take a look at our project <ulink
+ <para>HornetQ的 <ulink
url="http://www.jboss.org/community/wiki/HornetQ">wiki</ulink></para>
</listitem>
<listitem>
- <para>If you have any user questions please use our <ulink
- url="http://www.jboss.org/index.html?module=bb&op=viewforum&f=312">user
- forum</ulink></para>
+ <para>如果在使用HornetQ中发生任何问题,可以去我们的 <ulink
+ url="http://www.jboss.org/index.html?module=bb&op=viewforum&f=312">用户论坛
+ </ulink></para>
</listitem>
<listitem>
- <para>If you have development related questions, please use our <ulink
+ <para>如果你有开发方面的问题与想法,请访问我们的 <ulink
url="http://www.jboss.org/index.html?module=bb&op=viewforum&f=313"
- >developer forum</ulink></para>
+ >开发论坛</ulink></para>
</listitem>
<listitem>
- <para>Pop in and chat to us in our <ulink url="irc://irc.freenode.net:6667/hornetq"
- >IRC channel</ulink></para>
+ <para>请加入我们的<ulink url="irc://irc.freenode.net:6667/hornetq"
+ >IRC频道</ulink>与我们的核心开发工程师交流。</para>
</listitem>
<listitem>
- <para>Our project <ulink url="http://hornetq.blogspot.com/">blog</ulink></para>
+ <para>我们项目有自己的 <ulink url="http://hornetq.blogspot.com/">博客</ulink></para>
</listitem>
<listitem>
- <para>Follow us on <ulink url="http://twitter.com/hornetq">twitter</ulink></para>
+ <para>还可以跟踪我们的<ulink url="http://twitter.com/hornetq">twitter</ulink></para>
</listitem>
<listitem>
- <para>HornetQ Subversion trunk is <ulink
+ <para>HornetQ的Subversion代码库地址 <ulink
url="http://anonsvn.jboss.org/repos/hornetq/trunk"
>http://anonsvn.jboss.org/repos/hornetq/trunk</ulink></para>
</listitem>
<listitem>
- <para>All release tags are availble from <ulink
+ <para>每次发布的版本标签都在<ulink
url="http://anonsvn.jboss.org/repos/hornetq/tags"
- >http://anonsvn.jboss.org/repos/hornetq/tags</ulink></para>
+ >http://anonsvn.jboss.org/repos/hornetq/tags</ulink>下能找到。</para>
</listitem>
</itemizedlist>
</para>
Modified: branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml
===================================================================
--- branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml 2010-05-10 06:09:57 UTC (rev 9214)
+++ branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml 2010-05-10 08:50:33 UTC (rev 9215)
@@ -17,31 +17,28 @@
<!-- permitted by applicable law. -->
<!-- ============================================================================= -->
<chapter id="installation">
- <title>Installation</title>
- <para>This section describes how to install HornetQ. </para>
+ <title>安装</title>
+ <para>本章讲述如何安装HornetQ。</para>
<section id="installation.prerequisites">
- <title>Prerequisites</title>
+ <title>准备</title>
<note>
- <para>HornetQ only runs on Java 6 or later.</para>
+ <para>HornetQ只能在Java 6或以上版本中运行</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>
+ <para>默认情况下HornetQ运行的内存是1GiB。如果你的电脑内存少于1GiB,或者你希望更多的内存给HornetQ,你
+ 可以修改 <literal>bin/run.sh</literal>脚本文件。</para>
+ <para>HornetQ有自己的快速日志系统,它能够使用libaio(在Linux上它是默认的)或Java的NIO。
+ 如果要使用libaio,你需要首先在你的Linux上安装它。</para>
+ <para>如果你不在使用Linux,则不需要考虑这个问题。</para>
+ <para>要安装libaio,你可以使用root用户完成以下步骤:</para>
+ <para>使用yum(例如在Fedora 或 Red Hat Enterprise Linux上):</para>
<programlisting>yum install libaio</programlisting>
- <para>Using aptitude, (e.g. on Ubuntu or Debian system):</para>
+ <para>使用aptitude, (例如在Ubuntu或Debian系统上):</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>
+ <title>单独的HornetQ服务器</title>
+ <para>将软件包下载后,将其解压到你选定的目录下。这里你就可以<link linkend="running.standalone">直接运行了</link>。
+ 下面给出了它的目录结构: </para>
<programlisting>
|___ bin
|
@@ -68,49 +65,46 @@
</programlisting>
<itemizedlist>
<listitem>
- <para><literal>bin</literal> -- binaries and scripts needed to run HornetQ.</para>
+ <para><literal>bin</literal> -- 运行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>
+ <para><literal>config</literal> -- HornetQ的配置文件。它包括了单独模式或者运行在
+ JBoss AS 4 或 5中的配置。请参考配置索引来了解配置有详细信息。</para>
</listitem>
<listitem>
- <para><literal>docs</literal> -- guides and javadocs for HornetQ </para>
+ <para><literal>docs</literal> -- HornetQ的文档及Javadoc。 </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>
+ <para><literal>examples</literal> -- JMS and Java EE例子。有关详细信息请参见
+ 'running examples'一章。 </para>
</listitem>
<listitem>
- <para><literal>lib</literal> -- jars and libraries needed to run HornetQ </para>
+ <para><literal>lib</literal> -- 运行HornetQ所需要的jar文件和库文件 </para>
</listitem>
<listitem>
- <para><literal>licenses</literal> -- licenses for HornetQ </para>
+ <para><literal>licenses</literal> -- HornetQ的软件协议</para>
</listitem>
<listitem>
- <para><literal>schemas</literal> -- XML Schemas used to validate HornetQ configuration
- files</para>
+ <para><literal>schemas</literal> -- HornetQ配置文件的XML Schema</para>
</listitem>
</itemizedlist>
</section>
<section id="installation.jboss.as5">
- <title>HornetQ In JBoss Application Server 5.x</title>
- <para>HornetQ can also be deployed in <ulink url="http://www.jboss.org/jbossas/">JBoss AS
- 5</ulink>. It is not currently shipped by default with the application server (it is
- scheduled to be shipped as default JMS provider in JBoss Application Server 6.0), so you
- will need to create new AS 5 profiles to run AS 5 with HornetQ.</para>
- <para>To create AS 5 profiles:</para>
+ <title>HornetQ运行于JBoss应用服务器5.x</title>
+ <para>HornetQ可以部署在<ulink url="http://www.jboss.org/jbossas/">JBoss AS
+ 5</ulink>中。目前默认的应用服务器没有安装HornetQ(HornetQ将是JBoss 6的默认JMS提供者),因此
+ 你需要为HornetQ创建新的AS 5的配置(profile)。</para>
+ <para>创建AS 5新配置的步骤:</para>
<orderedlist>
<listitem>
- <para>Download JBoss AS 5</para>
+ <para>下载并安装JBoss AS 5</para>
</listitem>
<listitem>
- <para>Set the environment property <literal>JBOSS_HOME</literal> to point to the
- directory where you installed JBoss AS 5</para>
+ <para>设置环境变量<literal>JBOSS_HOME</literal>指向JBoss AS 5的安装目录。</para>
</listitem>
<listitem>
- <para>run <literal>./build.sh</literal> (or <literal>build.bat</literal> if you are on
+ <para>运行HornetQ的<literal>config/jboss-as-5</literal>下的<literal>./build.sh</literal> (或
+ 者如果在Windows下运行<literal>build.bat</literal>)。 if you are on
Windows) in HornetQ <literal>config/jboss-as-5</literal> directory</para>
</listitem>
</orderedlist>
Modified: branches/HnetQ_323_cn/docs/quickstart-guide/zh/introduction.xml
===================================================================
--- branches/HnetQ_323_cn/docs/quickstart-guide/zh/introduction.xml 2010-05-10 06:09:57 UTC (rev 9214)
+++ branches/HnetQ_323_cn/docs/quickstart-guide/zh/introduction.xml 2010-05-10 08:50:33 UTC (rev 9215)
@@ -17,12 +17,9 @@
<!-- permitted by applicable law. -->
<!-- ============================================================================= -->
<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>
+ <title>快速入手</title>
+ <para>本简短的指南给出了如何下载、安装HornetQ,以及尽快开始使用HornetQ。</para>
+ <para>我们强烈建议当下载安装完成后,运行HornetQ的例子来了解HornetQ。我们有70多个例子来展示几乎
+ 所有HornetQ的功能。</para>
+ <para>本指南不能代替用户手册。用户手册包括更加完整和深入的信息,供用户进一步全面掌握HornetQ。</para>
</chapter>
Modified: branches/HnetQ_323_cn/docs/quickstart-guide/zh/notice.xml
===================================================================
--- branches/HnetQ_323_cn/docs/quickstart-guide/zh/notice.xml 2010-05-10 06:09:57 UTC (rev 9214)
+++ branches/HnetQ_323_cn/docs/quickstart-guide/zh/notice.xml 2010-05-10 08:50:33 UTC (rev 9215)
@@ -16,17 +16,14 @@
<!-- permitted by applicable law. -->
<!-- ============================================================================= -->
+
<chapter id="notice">
- <title>Legal Notice</title>
+ <title>法律声明</title>
+
+ <para>Red Hat, Inc. 以及其他公司2010年版权所有。</para>
+ <para>Red Hat公司依照 CC-BY-SA 3.0 Unported(Creative Commons
+ Attribution-Share Alike)条款之规定授权用戶是用本手册中的文字和插图。</para>
+ <para>有关 CC-BY-SA 的解释请访问<ulink url="http://creativecommons.org/licenses/by-sa/3.0/">http://creativecommons.org/licenses/by-sa/3.0/</ulink>。根据CC-BY-SA的规定,如果要发布本文档或任何本文档的修改版本,都必须给出原始版本文档的URL。</para>
+ <para>Red Hat 作为本文档的授权方声明在相关法律允许的最大范围内放弃CC-BY-SA第4d节所规定的权利。</para>
+</chapter>
- <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
14 years, 10 months