JBoss Remoting SVN: r5236 - remoting2/branches/2.2/src/main/org/jboss/remoting.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2009-05-15 17:50:07 -0400 (Fri, 15 May 2009)
New Revision: 5236
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java
Log:
JBREM-1102: Uses passConfigMapToMarshalFactory variable.
Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java 2009-05-15 21:49:33 UTC (rev 5235)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java 2009-05-15 21:50:07 UTC (rev 5236)
@@ -73,7 +73,8 @@
if (marshaller == null)
{
// try by locator (in case marshaller class name specified)
- marshaller = MarshalFactory.getMarshaller(getLocator(), getClassLoader(), configuration);
+ Map map = passConfigMapToMarshalFactory ? configuration : null;
+ marshaller = MarshalFactory.getMarshaller(getLocator(), getClassLoader(), map);
if (marshaller == null)
{
// need to have a marshaller, so create a default one
@@ -118,7 +119,8 @@
}
// try by locator (in case unmarshaller class name specified)
- unmarshaller = MarshalFactory.getUnMarshaller(getLocator(), getClassLoader(), configuration);
+ Map map = passConfigMapToMarshalFactory ? configuration : null;
+ unmarshaller = MarshalFactory.getUnMarshaller(getLocator(), getClassLoader(), map);
if (unmarshaller == null)
{
unmarshaller = MarshalFactory.getUnMarshaller(getDataType(), getSerializationType());
14 years, 11 months
JBoss Remoting SVN: r5235 - remoting2/branches/2.2/src/main/org/jboss/remoting.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2009-05-15 17:49:33 -0400 (Fri, 15 May 2009)
New Revision: 5235
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/AbstractInvoker.java
Log:
JBREM-1102: Added passConfigMapToMarshalFactory variable.
Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/AbstractInvoker.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/AbstractInvoker.java 2009-05-15 05:20:02 UTC (rev 5234)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/AbstractInvoker.java 2009-05-15 21:49:33 UTC (rev 5235)
@@ -65,6 +65,7 @@
protected String serializationType;
protected Map configuration = new HashMap();
protected SocketFactory socketFactory;
+ protected boolean passConfigMapToMarshalFactory;
// Indicates if the serverSocketFactory was generated internally.
protected boolean socketFactoryCreatedFromSSLParameters;
@@ -120,6 +121,16 @@
{
this.setSerializationType(locator.findSerializationType());
}
+
+ Object o = configuration.get(Remoting.PASS_CONFIG_MAP_TO_MARSHAL_FACTORY);
+ if (o instanceof String)
+ {
+ this.passConfigMapToMarshalFactory = Boolean.valueOf((String) o).booleanValue();
+ }
+ else if (o != null)
+ {
+ log.warn("value of " + Remoting.PASS_CONFIG_MAP_TO_MARSHAL_FACTORY + " must be a String: " + o);
+ }
}
/**
14 years, 11 months
JBoss Remoting SVN: r5234 - remoting2/branches/2.x/docs/guide/en.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2009-05-15 01:20:02 -0400 (Fri, 15 May 2009)
New Revision: 5234
Modified:
remoting2/branches/2.x/docs/guide/en/chap17.xml
Log:
JBREM-1135: Added release notes for version 2.5.2.
Modified: remoting2/branches/2.x/docs/guide/en/chap17.xml
===================================================================
--- remoting2/branches/2.x/docs/guide/en/chap17.xml 2009-05-15 05:09:29 UTC (rev 5233)
+++ remoting2/branches/2.x/docs/guide/en/chap17.xml 2009-05-15 05:20:02 UTC (rev 5234)
@@ -70,6 +70,26 @@
<section>
<title>Version 2.5</title>
+ <bridgehead>Release Notes - JBoss Remoting - Version 2.5.2 (Flounder)</bridgehead>
+
+ <para><emphasis role="bold">Bug</emphasis></para>
+
+ <para>* [JBREM-1121] - Client SocketFactory should be configurable by InvokerLocator</para>
+ <para>* [JBREM-1125] - Test for IllegalStateException when calling Timer.schedule()</para>
+ <para>* [JBREM-1133] - CLONE [JBREM-1129] - Eliminate nondeterminism in Lease updates</para>
+
+ <para><emphasis role="bold">Feature request</emphasis></para>
+
+ <para>* [JBREM-1123] - SocketServerInvoker needs an immediate shutdown option</para>
+ <para>* [JBREM-1124] - Invokers need option for configuration map parameters to override InvokerLocator parameters</para>
+ <para>* [JBREM-1132] - CLONE [JBREM-1128] - Introduce connection identity concept</para>
+
+ <para><emphasis role="bold">Task</emphasis></para>
+
+ <para>* [JBREM-1134] - Assure version compatibility with earlier versions of Remoting</para>
+ <para>* [JBREM-1135] - Release 2.5.2</para>
+
+
<bridgehead>Release Notes - JBoss Remoting - Version 2.5.1 (Flounder)</bridgehead>
<para><emphasis role="bold">Bug</emphasis></para>
14 years, 11 months
JBoss Remoting SVN: r5233 - remoting2/branches/2.x/docs/guide/en.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2009-05-15 01:09:29 -0400 (Fri, 15 May 2009)
New Revision: 5233
Modified:
remoting2/branches/2.x/docs/guide/en/master.xml
Log:
JBREM-1135: Updated release date and version.
Modified: remoting2/branches/2.x/docs/guide/en/master.xml
===================================================================
--- remoting2/branches/2.x/docs/guide/en/master.xml 2009-05-15 05:08:18 UTC (rev 5232)
+++ remoting2/branches/2.x/docs/guide/en/master.xml 2009-05-15 05:09:29 UTC (rev 5233)
@@ -24,9 +24,9 @@
<bookinfo>
<title>JBoss Remoting Guide</title>
- <subtitle>JBoss Remoting version 2.5.1</subtitle>
+ <subtitle>JBoss Remoting version 2.5.2</subtitle>
- <releaseinfo>April 15, 2009</releaseinfo>
+ <releaseinfo>May 15, 2009</releaseinfo>
<mediaobject>
<imageobject>
14 years, 11 months
JBoss Remoting SVN: r5232 - remoting2/branches/2.2/docs/guide/en.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2009-05-15 01:08:18 -0400 (Fri, 15 May 2009)
New Revision: 5232
Modified:
remoting2/branches/2.2/docs/guide/en/master.xml
Log:
JBREM-1131: Updated copyright year to 2009.
Modified: remoting2/branches/2.2/docs/guide/en/master.xml
===================================================================
--- remoting2/branches/2.2/docs/guide/en/master.xml 2009-05-15 05:06:27 UTC (rev 5231)
+++ remoting2/branches/2.2/docs/guide/en/master.xml 2009-05-15 05:08:18 UTC (rev 5232)
@@ -34,7 +34,7 @@
</mediaobject>
<copyright>
- <year>2008 JBoss, a division of Red Hat</year>
+ <year>2009 JBoss, a division of Red Hat</year>
<holder>.</holder>
</copyright>
14 years, 11 months
JBoss Remoting SVN: r5231 - remoting2/branches/2.2/docs/guide/en.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2009-05-15 01:06:27 -0400 (Fri, 15 May 2009)
New Revision: 5231
Modified:
remoting2/branches/2.2/docs/guide/en/chap1.xml
remoting2/branches/2.2/docs/guide/en/chap16.xml
Log:
JBREM-1131: Added notes and release notes for Release 2.2.3.
Modified: remoting2/branches/2.2/docs/guide/en/chap1.xml
===================================================================
--- remoting2/branches/2.2/docs/guide/en/chap1.xml 2009-05-15 04:45:42 UTC (rev 5230)
+++ remoting2/branches/2.2/docs/guide/en/chap1.xml 2009-05-15 05:06:27 UTC (rev 5231)
@@ -182,6 +182,18 @@
<title>What's new?</title>
<section>
+ <title>In release 2.2.3</title>
+
+ <orderedlist>
+ <listitem><para>Introduction of "connection identity" concept;</para></listitem>
+ <listitem><para>upgrading of servlet transport;</para></listitem>
+ <listitem><para>improved configuration flexibility;</para></listitem>
+ <listitem><para>miscellaneous bug fixes.</para></listitem>
+ </orderedlist>
+
+ </section>
+
+ <section>
<title>In release 2.2.2.SP11</title>
<orderedlist>
Modified: remoting2/branches/2.2/docs/guide/en/chap16.xml
===================================================================
--- remoting2/branches/2.2/docs/guide/en/chap16.xml 2009-05-15 04:45:42 UTC (rev 5230)
+++ remoting2/branches/2.2/docs/guide/en/chap16.xml 2009-05-15 05:06:27 UTC (rev 5231)
@@ -17,6 +17,47 @@
<para></para>
<para>==========================================================================================================</para>
+<para>Release Notes - JBoss Remoting - Version 2.2.3</para>
+
+<para>Bug</para>
+
+ <para>* [JBREM-1081] - Fix NPE in ServerInvokerCallbackHandler</para>
+ <para>* [JBREM-1088] - MicroSocketClientInvoker(InvokerLocator locator, Map configuration) ctor - not propagating exceptions (only message is wrapped)</para>
+ <para>* [JBREM-1099] - Make MulticastDetector detection message send buffer size configurable</para>
+ <para>* [JBREM-1109] - Eliminate race in MicroRemoteClientInvoker.getDataType()</para>
+ <para>* [JBREM-1111] - CLONE [JBREM-851] - In LeasePinger replace Timer if it has shut down</para>
+ <para>* [JBREM-1112] - Potential race between ConnectionValidator and ConnectionListener upon connection failure</para>
+ <para>* [JBREM-1119] - CLONE [JBREM-1113] - ServerInvokerCallbackHandlers leak when client doesn't shut down</para>
+ <para>* [JBREM-1121] - Client SocketFactory should be configurable by InvokerLocator</para>
+ <para>* [JBREM-1125] - Test for IllegalStateException when calling Timer.schedule()</para>
+ <para>* [JBREM-1127] - ClassCastExceptions arising from Unmarsharller/Classloader caching in MicroRemoteClientInvoker</para>
+ <para>* [JBREM-1129] - Eliminate nondeterminism in Lease updates</para>
+
+<para>Feature Request</para>
+
+ <para>* [JBREM-1082] - Allow ConnectionValidator to access InvokerLocator parameters</para>
+ <para>* [JBREM-1084] - Allow CallbackPoller to access Client and InvokerLocator parameters</para>
+ <para>* [JBREM-1100] - Link ServerInvokerServlet instances to Connectors via MBean names rather than locator URLs</para>
+ <para>* [JBREM-1102] - Make configuration map available to MarshalFactory</para>
+ <para>* [JBREM-1128] - Introduce connection identity concept</para>
+
+<para>Release</para>
+
+ <para>* [JBREM-1131] - Release 2.2.3</para>
+
+<para>Task</para>
+
+ <para>* [JBREM-139] - need automated test for servlet server invoker</para>
+ <para>* [JBREM-1078] - Remove reference to "numberOfRetries" parameter from Remoting Guide</para>
+ <para>* [JBREM-1079] - Port fixes to ServletServerInvoker from branch 2.x to branch 2.2</para>
+ <para>* [JBREM-1085] - Reduce log level of ServerSocketWrapper.close() log messages</para>
+ <para>* [JBREM-1103] - Correct javadoc for Client.invokeOneway()</para>
+ <para>* [JBREM-1104] - Identity.get() should create a more meaningful RuntimeException message</para>
+ <para>* [JBREM-1108] - Warn against making ConnectionValidator.validatorPingPeriod shorter than ConnectionValidator.validatorPingTimeout</para>
+ <para>* [JBREM-1110] - InvokerLocator.getParameters() should not return null</para>
+ <para>* [JBREM-1130] - Assure version compatibility with earlier versions of Remoting</para>
+
+<para>==========================================================================================================</para>
<para>Release Notes - JBoss Remoting - Version 2.2.2.SP11</para>
<para>Bug</para>
14 years, 11 months
JBoss Remoting SVN: r5230 - remoting2/branches/2.x/docs/guide/en.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2009-05-15 00:45:42 -0400 (Fri, 15 May 2009)
New Revision: 5230
Modified:
remoting2/branches/2.x/docs/guide/en/chap5.xml
Log:
JBREM-1132: Added note about "useClientConnectionIdentity".
Modified: remoting2/branches/2.x/docs/guide/en/chap5.xml
===================================================================
--- remoting2/branches/2.x/docs/guide/en/chap5.xml 2009-05-15 04:45:15 UTC (rev 5229)
+++ remoting2/branches/2.x/docs/guide/en/chap5.xml 2009-05-15 04:45:42 UTC (rev 5230)
@@ -6043,6 +6043,11 @@
constructor should take precedence over values found in the
<classname>InvokerLocator</classname>.</para>
+ <para><emphasis role="bold">USE_CLIENT_CONNECTION_IDENTITY</emphasis>
+ (actual value "useClientConnectionIdentity") - tells Remoting to adhere to the
+ new "connection identity" semantics described in Chapter
+ <xref linkend="chapter-connection-failure"/>.</para>
+
</section>
<section>
14 years, 11 months
JBoss Remoting SVN: r5229 - remoting2/branches/2.2/docs/guide/en.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2009-05-15 00:45:15 -0400 (Fri, 15 May 2009)
New Revision: 5229
Modified:
remoting2/branches/2.2/docs/guide/en/chap5.xml
Log:
JBREM-1128: Added note about "useClientConnectionIdentity".
Modified: remoting2/branches/2.2/docs/guide/en/chap5.xml
===================================================================
--- remoting2/branches/2.2/docs/guide/en/chap5.xml 2009-05-15 04:38:40 UTC (rev 5228)
+++ remoting2/branches/2.2/docs/guide/en/chap5.xml 2009-05-15 04:45:15 UTC (rev 5229)
@@ -6190,6 +6190,11 @@
fully qualified classname of class that is an instance of
javax.net.SocketFactory and has a void constructor. This property will not
be used if CUSTOM_SOCKET_FACTORY is also set.</para>
+
+ <para><emphasis role="bold">USE_CLIENT_CONNECTION_IDENTITY</emphasis>
+ (actual value "useClientConnectionIdentity") - tells Remoting to adhere to the
+ new "connection identity" semantics described in Chapter
+ <xref linkend="chapter-connection-failure"/>.</para>
<para></para>
14 years, 11 months
JBoss Remoting SVN: r5228 - remoting2/branches/2.x/docs/guide/en.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2009-05-15 00:38:40 -0400 (Fri, 15 May 2009)
New Revision: 5228
Modified:
remoting2/branches/2.x/docs/guide/en/chap9.xml
Log:
JBREM-1132: Added discussion about connection identity.
Modified: remoting2/branches/2.x/docs/guide/en/chap9.xml
===================================================================
--- remoting2/branches/2.x/docs/guide/en/chap9.xml 2009-05-15 03:36:50 UTC (rev 5227)
+++ remoting2/branches/2.x/docs/guide/en/chap9.xml 2009-05-15 04:38:40 UTC (rev 5228)
@@ -299,6 +299,49 @@
</orderedlist>
+ <para><emphasis role="bold">Note.</emphasis> As of release 2.5.2, an important
+ concept related to connection monitoring, <emphasis>connection identity</emphasis>,
+ is available. Suppose that leasing is enabled and that a client invoker
+ stops and is replaced by a new client invoker. If the
+ replacement occurs quickly, the server side <classname>Lease</classname> may never
+ miss a ping, in which there is no evidence that anything changed on the client side.
+ That is, the connection is still alive, as far as the server is concerned. That
+ semantics might be perfectly acceptable for some applications, but other
+ applications might interpret the same events as a connection failure followed by
+ a new connection. Remoting can be configured to treat a connection as being
+ defined by a client/server pair, which supports the second category of applications.
+ </para>
+
+ <para>More specifically, when configured to do so by setting the parameter
+ <code>org.jboss.remoting.Remoting.USE_CLIENT_CONNECTION_IDENTITY</code> (actual value
+ "useClientConnectionIdentity") to "true", Remoting identifies a connection with a
+ <classname>LeasePinger</classname>/<classname>Lease</classname> pair. A
+ <classname>Client</classname> participates in a connection when it is connected
+ by way of the new method</para>
+
+ <programlisting>public void connect(ConnectionListener listener, Map metadata) throws Exception;</programlisting>
+
+ <para>This method serves to connect the <classname>Client</classname> to the server
+ by way of a new or existing client invoker, and it also (1) registers the
+ <classname>ConnectionListener</classname> with the <classname>Client</classname>'s
+ new or exiting <classname>ConnectionValidator</classname> and (2) registers
+ the <classname>ConnectionValidator</classname> with the client invoker's
+ <classname>LeasePinger</classname>. Subsequently, if any
+ <classname>ConnectionValidator</classname> registered with that
+ <classname>LeasePinger</classname> detects a connection failure, it will
+ (if "stopLeaseOnFailure" is "true") stop the <classname>LeasePinger</classname>,
+ and the <classname>LeasePinger</classname> will cause each registered
+ <classname>ConnectionValidator</classname>s to notify each of its
+ registered <classname>ConnectionListener</classname>s of the connection failure.
+ Once the <classname>LeasePinger</classname> has been shut down and all of the
+ notifications have been made, the connection anchored by the
+ <classname>LeasePinger</classname> is defunct, and the
+ associated <classname>Client</classname>'s should be disconnected by a call
+ to <methodname>Client.disconnect()</methodname>. If such a <classname>Client</classname>
+ is reconnected by a call to <methodname>Client.connect()</methodname>, it
+ will be associated with a new <classname>LeasePinger</classname> and, therefore,
+ a new connection.</para>
+
<para><emphasis role="bold">TIE_TO_LEASE</emphasis> (actual value
"tieToLease") - specifies whether <classname>ConnectionValidator</classname>
should treat the failure of a related lease on the server side as a
@@ -311,5 +354,8 @@
<classname>org.jboss.remoting.LeasePinger</classname>, if any. The default
value is "true".</para>
+ <para><emphasis role="bold">org.jboss.remoting.Remoting.USE_CLIENT_CONNECTION_IDENTITY</emphasis>
+ (actual value "useClientConnectionIdentity") - tells Remoting to adhere to the
+ new "connection identity" semantics.</para>
</section>
</chapter>
\ No newline at end of file
14 years, 11 months
JBoss Remoting SVN: r5227 - remoting2/branches/2.x/src/main/org/jboss/remoting.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2009-05-14 23:36:50 -0400 (Thu, 14 May 2009)
New Revision: 5227
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java
Log:
JBREM-1135: Updated version to 2.5.2.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java 2009-05-15 03:24:45 UTC (rev 5226)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java 2009-05-15 03:36:50 UTC (rev 5227)
@@ -38,7 +38,7 @@
public static final byte VERSION_2 = 2;
public static final byte VERSION_2_2 = 22;
- public static final String VERSION = "2.5.1 (Flounder)";
+ public static final String VERSION = "2.5.2 (Flounder)";
private static final byte byteVersion = VERSION_2_2;
private static byte defaultByteVersion = byteVersion;
private static boolean performVersioning = true;
14 years, 11 months