[hornetq-commits] JBoss hornetq SVN: r9414 - branches/2_2_0_HA_Improvements/examples/jms/applet/src/org/hornetq/jms/example.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Jul 19 09:36:15 EDT 2010


Author: jmesnil
Date: 2010-07-19 09:36:15 -0400 (Mon, 19 Jul 2010)
New Revision: 9414

Modified:
   branches/2_2_0_HA_Improvements/examples/jms/applet/src/org/hornetq/jms/example/AppletExample.java
Log:
HA refactoring

* fix JMS Applet example to use ServerLocator API

Modified: branches/2_2_0_HA_Improvements/examples/jms/applet/src/org/hornetq/jms/example/AppletExample.java
===================================================================
--- branches/2_2_0_HA_Improvements/examples/jms/applet/src/org/hornetq/jms/example/AppletExample.java	2010-07-19 13:35:56 UTC (rev 9413)
+++ branches/2_2_0_HA_Improvements/examples/jms/applet/src/org/hornetq/jms/example/AppletExample.java	2010-07-19 13:36:15 UTC (rev 9414)
@@ -44,8 +44,6 @@
 import javax.swing.SwingUtilities;
 
 import org.hornetq.api.core.TransportConfiguration;
-import org.hornetq.api.core.client.ClientSessionFactory;
-import org.hornetq.api.core.client.HornetQClient;
 import org.hornetq.api.jms.HornetQJMSClient;
 import org.hornetq.core.remoting.impl.netty.NettyConnectorFactory;
 
@@ -108,8 +106,7 @@
 
       Map<String, Object> params = new HashMap<String, Object>();
       TransportConfiguration connector = new TransportConfiguration(NettyConnectorFactory.class.getName(), params);
-      ClientSessionFactory sf = HornetQClient.createClientSessionFactory(connector);
-      ConnectionFactory cf = HornetQJMSClient.createConnectionFactory(sf);
+      ConnectionFactory cf = HornetQJMSClient.createConnectionFactoryWithoutHA(connector);
       destination = HornetQJMSClient.createTopic("exampleTopic");
 
       try



More information about the hornetq-commits mailing list