activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject activemq-artemis git commit: NO-JIRA use URIs on the example
Date Thu, 03 Aug 2017 15:25:26 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master 930a94bac -> d055411f2


NO-JIRA use URIs on the example


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/d055411f
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/d055411f
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/d055411f

Branch: refs/heads/master
Commit: d055411f211974e581d2c657d2f50e21c8f0dbcb
Parents: 930a94b
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Thu Aug 3 11:24:40 2017 -0400
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Thu Aug 3 11:25:25 2017 -0400

----------------------------------------------------------------------
 .../apache/activemq/artemis/jms/example/EmbeddedExample.java   | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d055411f/examples/features/standard/embedded/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/embedded/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
b/examples/features/standard/embedded/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
index 61f5a01..54ce764 100644
--- a/examples/features/standard/embedded/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
+++ b/examples/features/standard/embedded/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
@@ -26,11 +26,8 @@ import javax.jms.TextMessage;
 import java.util.Arrays;
 import java.util.Date;
 
-import org.apache.activemq.artemis.api.core.TransportConfiguration;
 import org.apache.activemq.artemis.core.config.Configuration;
 import org.apache.activemq.artemis.core.config.impl.ConfigurationImpl;
-import org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptorFactory;
-import org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory;
 import org.apache.activemq.artemis.jms.server.config.ConnectionFactoryConfiguration;
 import org.apache.activemq.artemis.jms.server.config.JMSConfiguration;
 import org.apache.activemq.artemis.jms.server.config.JMSQueueConfiguration;
@@ -46,7 +43,8 @@ public final class EmbeddedExample {
 
    public static void main(final String[] args) throws Exception {
       // Step 1. Create ActiveMQ Artemis core configuration, and set the properties accordingly
-      Configuration configuration = new ConfigurationImpl().setPersistenceEnabled(false).setJournalDirectory("target/data/journal").setSecurityEnabled(false).addAcceptorConfiguration(new
TransportConfiguration(NettyAcceptorFactory.class.getName())).addConnectorConfiguration("connector",
new TransportConfiguration(NettyConnectorFactory.class.getName()));
+      Configuration configuration = new ConfigurationImpl().setPersistenceEnabled(false).setJournalDirectory("target/data/journal").setSecurityEnabled(false).addAcceptorConfiguration("tcp",
"tcp://localhost:61616").
+         addConnectorConfiguration("connector", "tcp://localhost:61616");
 
       // Step 2. Create the JMS configuration
       JMSConfiguration jmsConfig = new JMSConfigurationImpl();


Mime
View raw message