Author: ataylor
Date: 2009-12-08 09:12:26 -0500 (Tue, 08 Dec 2009)
New Revision: 8619
Modified:
trunk/docs/user-manual/en/appserver-integration.xml
trunk/src/main/org/hornetq/ra/ConnectionFactoryProperties.java
Log:
reconnect attemots now -1 by default for the ra. updated docs also
Modified: trunk/docs/user-manual/en/appserver-integration.xml
===================================================================
--- trunk/docs/user-manual/en/appserver-integration.xml 2009-12-08 10:36:45 UTC (rev
8618)
+++ trunk/docs/user-manual/en/appserver-integration.xml 2009-12-08 14:12:26 UTC (rev
8619)
@@ -375,7 +375,13 @@
be left unchanged. This is the HornetQ resource adapter
class.</para>
<para>After that there is a list of configuration properties. This will
be where most of
the configuration is done. The first 2 configure the transport used by
the adapter
- and the rest configure the connection itself.</para>
+ and the rest configure the connection factory
itself.<note><para>All connection
+ factory properties will use the defaults when not provided. This
is accept
+ for the <literal>reconnectAttempts</literal> which
will default to -1 which
+ signifies that the connection should attempt to reconnect on
connection
+ failure indefinately. This is only used when the adapter is
configured to
+ connect to a remote server as an InVM connector can never
+ fail.</para></note></para>
<para>The following table explains what each property is
for.</para>
<table frame="topbot" border="2">
<title>Global Configuration Properties</title>
@@ -541,7 +547,7 @@
<entry>AutoGroup</entry>
<entry>boolean</entry>
<entry>If true then auto group messages</entry>
- </row>
+ </row>
<row>
<entry>PreAcknowledge</entry>
<entry>boolean</entry>
@@ -549,6 +555,11 @@
consumer</entry>
</row>
<row>
+ <entry>reconnectAttempts</entry>
+ <entry>Integer</entry>
+ <entry>How attemts to try at reconnecting, default is
-1</entry>
+ </row>
+ <row>
<entry>RetryInterval</entry>
<entry>long</entry>
<entry>How long to wait , in milli seconds, before
retrying a failed
@@ -642,7 +653,6 @@
url="http://www.jboss.org/file-access/default/members/jbossas/freezo...
JBoss Application Server clustering
documentation</ulink></para>
</section>
-
<section id="xa-recovery">
<title>XA Recovery</title>
<para><emphasis>XA recovery</emphasis> deals with system or
application failures to ensure
Modified: trunk/src/main/org/hornetq/ra/ConnectionFactoryProperties.java
===================================================================
--- trunk/src/main/org/hornetq/ra/ConnectionFactoryProperties.java 2009-12-08 10:36:45 UTC
(rev 8618)
+++ trunk/src/main/org/hornetq/ra/ConnectionFactoryProperties.java 2009-12-08 14:12:26 UTC
(rev 8619)
@@ -96,7 +96,7 @@
private Double retryIntervalMultiplier;
- private Integer reconnectAttempts;
+ private Integer reconnectAttempts = -1;
private Boolean failoverOnServerShutdown;