Author: jmesnil
Date: 2010-07-19 09:46:01 -0400 (Mon, 19 Jul 2010)
New Revision: 9417
Modified:
branches/2_2_0_HA_Improvements/examples/jms/instantiate-connection-factory/readme.html
branches/2_2_0_HA_Improvements/examples/jms/instantiate-connection-factory/src/org/hornetq/jms/example/InstantiateConnectionFactoryExample.java
Log:
HA refactoring
* fix JMS Instantiate Connection Factory example to use new HA API
Modified:
branches/2_2_0_HA_Improvements/examples/jms/instantiate-connection-factory/readme.html
===================================================================
---
branches/2_2_0_HA_Improvements/examples/jms/instantiate-connection-factory/readme.html 2010-07-19
13:43:10 UTC (rev 9416)
+++
branches/2_2_0_HA_Improvements/examples/jms/instantiate-connection-factory/readme.html 2010-07-19
13:46:01 UTC (rev 9417)
@@ -55,7 +55,7 @@
<li>Directly instantiate the JMS ConnectionFactory object using that
TransportConfiguration.</li>
<pre class="prettyprint">
<code>
- ConnectionFactory cf =
HornetQJMSClient.createConnectionFactory(transportConfiguration);
+ ConnectionFactory cf =
HornetQJMSClient.createConnectionFactoryWithoutHA(transportConfiguration);
</code>
</pre>
Modified:
branches/2_2_0_HA_Improvements/examples/jms/instantiate-connection-factory/src/org/hornetq/jms/example/InstantiateConnectionFactoryExample.java
===================================================================
---
branches/2_2_0_HA_Improvements/examples/jms/instantiate-connection-factory/src/org/hornetq/jms/example/InstantiateConnectionFactoryExample.java 2010-07-19
13:43:10 UTC (rev 9416)
+++
branches/2_2_0_HA_Improvements/examples/jms/instantiate-connection-factory/src/org/hornetq/jms/example/InstantiateConnectionFactoryExample.java 2010-07-19
13:46:01 UTC (rev 9417)
@@ -65,7 +65,7 @@
connectionParams);
// Step 3 Directly instantiate the JMS ConnectionFactory object using that
TransportConfiguration
- ConnectionFactory cf =
HornetQJMSClient.createConnectionFactory(transportConfiguration);
+ ConnectionFactory cf =
HornetQJMSClient.createConnectionFactoryWithoutHA(transportConfiguration);
// Step 4.Create a JMS Connection
connection = cf.createConnection();
Show replies by date