JBoss Remoting SVN: r4268 - remoting2/tags.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-05-29 00:35:41 -0400 (Thu, 29 May 2008)
New Revision: 4268
Added:
remoting2/tags/2.4.0-GA/
Log:
Copied: remoting2/tags/2.4.0-GA (from rev 4267, remoting2/branches/2.x)
16 years, 7 months
JBoss Remoting SVN: r4267 - remoting2/tags.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-05-29 00:35:22 -0400 (Thu, 29 May 2008)
New Revision: 4267
Removed:
remoting2/tags/2.4.0-GA/
Log:
16 years, 7 months
JBoss Remoting SVN: r4266 - remoting2/tags/2.4.0-GA.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-05-29 00:32:57 -0400 (Thu, 29 May 2008)
New Revision: 4266
Added:
remoting2/tags/2.4.0-GA/2.x/
Log:
Copied: remoting2/tags/2.4.0-GA/2.x (from rev 4265, remoting2/branches/2.x)
16 years, 7 months
JBoss Remoting SVN: r4265 - remoting2/branches/2.x/src/etc.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-05-29 00:31:44 -0400 (Thu, 29 May 2008)
New Revision: 4265
Modified:
remoting2/branches/2.x/src/etc/build.xml
Log:
JBREm-987: <java> targets fork to avoid ant security manager.
Modified: remoting2/branches/2.x/src/etc/build.xml
===================================================================
--- remoting2/branches/2.x/src/etc/build.xml 2008-05-29 04:08:13 UTC (rev 4264)
+++ remoting2/branches/2.x/src/etc/build.xml 2008-05-29 04:31:44 UTC (rev 4265)
@@ -42,7 +42,7 @@
</target>
<target name="run-simple-client" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.simple.SimpleClient">
+ <java classname="org.jboss.remoting.samples.simple.SimpleClient" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -51,7 +51,7 @@
</target>
<target name="run-simple-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.simple.SimpleServer">
+ <java classname="org.jboss.remoting.samples.simple.SimpleServer" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -60,7 +60,7 @@
</target>
<target name="run-http-client" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.http.SimpleClient">
+ <java classname="org.jboss.remoting.samples.http.SimpleClient" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -69,7 +69,7 @@
</target>
<target name="run-http-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.http.SimpleServer">
+ <java classname="org.jboss.remoting.samples.http.SimpleServer" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -78,7 +78,7 @@
</target>
<target name="run-callback-client" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.callback.CallbackClient">
+ <java classname="org.jboss.remoting.samples.callback.CallbackClient" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -87,7 +87,7 @@
</target>
<target name="run-callback-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.callback.CallbackServer">
+ <java classname="org.jboss.remoting.samples.callback.CallbackServer" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -96,7 +96,7 @@
</target>
<target name="run-detector-client" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.detection.multicast.SimpleDetectorClient">
+ <java classname="org.jboss.remoting.samples.detection.multicast.SimpleDetectorClient" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -105,7 +105,7 @@
</target>
<target name="run-detector-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.detection.multicast.SimpleDetectorServer">
+ <java classname="org.jboss.remoting.samples.detection.multicast.SimpleDetectorServer" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -114,7 +114,7 @@
</target>
<target name="run-oneway-client" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.oneway.OnewayClient">
+ <java classname="org.jboss.remoting.samples.oneway.OnewayClient" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -123,7 +123,7 @@
</target>
<target name="run-oneway-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.oneway.OnewayServer">
+ <java classname="org.jboss.remoting.samples.oneway.OnewayServer" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -132,7 +132,7 @@
</target>
<target name="run-stream-client" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.stream.StreamingClient">
+ <java classname="org.jboss.remoting.samples.stream.StreamingClient" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -141,7 +141,7 @@
</target>
<target name="run-stream-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.stream.StreamingServer">
+ <java classname="org.jboss.remoting.samples.stream.StreamingServer" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -150,7 +150,7 @@
</target>
<target name="run-transporter-simple-client" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.transporter.simple.Client">
+ <java classname="org.jboss.remoting.samples.transporter.simple.Client" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -159,7 +159,7 @@
</target>
<target name="run-transporter-simple-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.transporter.simple.Server">
+ <java classname="org.jboss.remoting.samples.transporter.simple.Server" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -168,7 +168,7 @@
</target>
<target name="run-transporter-basic-client" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.transporter.basic.client.Client">
+ <java classname="org.jboss.remoting.samples.transporter.basic.client.Client" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -177,7 +177,7 @@
</target>
<target name="run-transporter-basic-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.transporter.basic.server.Server">
+ <java classname="org.jboss.remoting.samples.transporter.basic.server.Server" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -186,7 +186,7 @@
</target>
<target name="run-transporter-multiple-client" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.transporter.multiple.client.Client">
+ <java classname="org.jboss.remoting.samples.transporter.multiple.client.Client" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -195,7 +195,7 @@
</target>
<target name="run-transporter-multiple-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.transporter.multiple.server.Server">
+ <java classname="org.jboss.remoting.samples.transporter.multiple.server.Server" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -204,7 +204,7 @@
</target>
<target name="run-transporter-proxy-client" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.transporter.proxy.client.Client">
+ <java classname="org.jboss.remoting.samples.transporter.proxy.client.Client" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -213,7 +213,7 @@
</target>
<target name="run-transporter-proxy-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.transporter.proxy.server.Server">
+ <java classname="org.jboss.remoting.samples.transporter.proxy.server.Server" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -222,7 +222,7 @@
</target>
<target name="run-transporter-clustered-client" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.transporter.clustered.client.Client">
+ <java classname="org.jboss.remoting.samples.transporter.clustered.client.Client" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -231,7 +231,7 @@
</target>
<target name="run-transporter-clustered-socket-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.transporter.clustered.server.SocketServer">
+ <java classname="org.jboss.remoting.samples.transporter.clustered.server.SocketServer" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -240,7 +240,7 @@
</target>
<target name="run-transporter-clustered-rmi-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.transporter.clustered.server.RMIServer">
+ <java classname="org.jboss.remoting.samples.transporter.clustered.server.RMIServer" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -249,7 +249,7 @@
</target>
<target name="run-transporter-clustered-http-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.transporter.clustered.server.HTTPServer">
+ <java classname="org.jboss.remoting.samples.transporter.clustered.server.HTTPServer" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -258,7 +258,7 @@
</target>
<target name="run-bisocket-client" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.bisocket.BisocketSampleClient">
+ <java classname="org.jboss.remoting.samples.bisocket.BisocketSampleClient" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -267,7 +267,7 @@
</target>
<target name="run-bisocket-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.bisocket.BisocketSampleServer">
+ <java classname="org.jboss.remoting.samples.bisocket.BisocketSampleServer" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -292,7 +292,7 @@
</target>
<target name="run-actual-serialization-client" depends="compile-sample-classes" if="isJDK5">
- <java classname="org.jboss.remoting.samples.serialization.SerializationClient">
+ <java classname="org.jboss.remoting.samples.serialization.SerializationClient" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -301,7 +301,7 @@
</target>
<target name="run-actual-serialization-server" depends="compile-sample-classes" if="isJDK5">
- <java classname="org.jboss.remoting.samples.serialization.SerializationServer">
+ <java classname="org.jboss.remoting.samples.serialization.SerializationServer" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -314,7 +314,7 @@
<target name="run-transporter-serialization-server" depends="get-jvm,run-actual-transporter-serialization-server,jdk-message"/>
<target name="run-actual-transporter-serialization-client" depends="compile-sample-classes" if="isJDK5">
- <java classname="org.jboss.remoting.samples.transporter.serialization.client.Client">
+ <java classname="org.jboss.remoting.samples.transporter.serialization.client.Client" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -323,7 +323,7 @@
</target>
<target name="run-actual-transporter-serialization-server" depends="compile-sample-classes" if="isJDK5">
- <java classname="org.jboss.remoting.samples.transporter.serialization.server.Server">
+ <java classname="org.jboss.remoting.samples.transporter.serialization.server.Server" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -336,7 +336,7 @@
<target name="run-transporter-complex-server" depends="get-jvm,run-actual-transporter-complex-server,jdk-message"/>
<target name="run-actual-transporter-complex-client" depends="compile-sample-classes" if="isJDK5">
- <java classname="org.jboss.remoting.samples.transporter.complex.client.Client">
+ <java classname="org.jboss.remoting.samples.transporter.complex.client.Client" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -345,7 +345,7 @@
</target>
<target name="run-actual-transporter-complex-server" depends="compile-sample-classes" if="isJDK5">
- <java classname="org.jboss.remoting.samples.transporter.complex.server.Server">
+ <java classname="org.jboss.remoting.samples.transporter.complex.server.Server" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -356,7 +356,7 @@
<target name="run-multiplex-server" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.multiplex.invoker.MultiplexInvokerServer">
+ <java classname="org.jboss.remoting.samples.multiplex.invoker.MultiplexInvokerServer" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -365,7 +365,7 @@
</target>
<target name="run-Client2Server1" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.multiplex.invoker.Client2Server1">
+ <java classname="org.jboss.remoting.samples.multiplex.invoker.Client2Server1" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -374,7 +374,7 @@
</target>
<target name="run-Client2Server2" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.multiplex.invoker.Client2Server2">
+ <java classname="org.jboss.remoting.samples.multiplex.invoker.Client2Server2" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -383,7 +383,7 @@
</target>
<target name="run-Client3Server1" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.multiplex.invoker.Client3Server1">
+ <java classname="org.jboss.remoting.samples.multiplex.invoker.Client3Server1" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -392,7 +392,7 @@
</target>
<target name="run-Server2Client1" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.multiplex.invoker.Server2Client1">
+ <java classname="org.jboss.remoting.samples.multiplex.invoker.Server2Client1" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -401,7 +401,7 @@
</target>
<target name="run-Server2Client2" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.multiplex.invoker.Server2Client2">
+ <java classname="org.jboss.remoting.samples.multiplex.invoker.Server2Client2" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
@@ -410,7 +410,7 @@
</target>
<target name="run-Server3Client1" depends="compile-sample-classes">
- <java classname="org.jboss.remoting.samples.multiplex.invoker.Server3Client1">
+ <java classname="org.jboss.remoting.samples.multiplex.invoker.Server3Client1" fork="yes">
<classpath>
<pathelement location="${examples.root}"/>
<path refid="library.classpath"/>
16 years, 7 months
JBoss Remoting SVN: r4264 - remoting2/branches/2.x/docs/guide/en.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-05-29 00:08:13 -0400 (Thu, 29 May 2008)
New Revision: 4264
Modified:
remoting2/branches/2.x/docs/guide/en/chap11.xml
Log:
JBREM-840: Added bisocket section and removed multiplex section.
Modified: remoting2/branches/2.x/docs/guide/en/chap11.xml
===================================================================
--- remoting2/branches/2.x/docs/guide/en/chap11.xml 2008-05-29 02:53:23 UTC (rev 4263)
+++ remoting2/branches/2.x/docs/guide/en/chap11.xml 2008-05-29 04:08:13 UTC (rev 4264)
@@ -550,6 +550,31 @@
</section>
<section>
+ <title>Bisocket transport</title>
+
+ <para>The bisocket example shows how to set up push callbacks with the bisocket transport, using its facility for avoiding the use of a <classname>ServerSocket</classname> and TCP port on the client. The key section is</para>
+
+ <programlisting>
+ HashMap metadata = new HashMap();
+ metadata.put(Bisocket.IS_CALLBACK_SERVER, "true");
+ TestCallbackHandler callbackHandler = new TestCallbackHandler();
+ client.addListener(callbackHandler, metadata);
+ </programlisting>
+
+ <para>which configures the callback <classname>Connector</classname> appropriately.</para>
+
+ <para>To run the example, type</para>
+
+ <programlisting>ant run-bisocket-server</programlisting>
+
+ <para>in one window, and type</para>
+
+ <programlisting>ant run-bisocket-client</programlisting>
+
+ <para>in another window.</para>
+
+ </section>
+ <section>
<title>Streaming</title>
<para>The streaning sample (found in the org.jboss.remoting.samples.stream
@@ -707,7 +732,7 @@
and expose a remote proxy to it via JBoss Remoting. Dynamic proxies and
reflection are used to make the typed method calls on that target POJO.
Since JBoss Remoting is used, can select from a number of different
- network transports (i.e. rmi, http, socket, multiplex, etc.), including
+ network transports (i.e. rmi, http, socket, etc.), including
support for SSL. Even clustering features can be included.</para>
<bridgehead>How it works</bridgehead>
@@ -2524,111 +2549,4 @@
</section>
</section>
- <section>
- <title id="section-multiplex-invokers"
- xreflabel="Multiplex invokers">Multiplex invokers</title>
-
- <para>This section illustrates the construction of multiplex invoker
- groups described in the section <xref linkend="section-multiplex-invoker" />. The
- directory</para>
-
- <blockquote>
- <para><code>examples/org/jboss/remoting/samples/multiplex/invoker</code></para>
- </blockquote>
-
- <para>contains a server class,
- <classname>MultiplexInvokerServer</classname>, which is suitable for use
- with any of the client classes described below. It may be run in an IDE or
- from the command line using ant target <code>run-multiplex-server</code>
- from the <code>build.xml</code> file found in the <code>examples</code>
- directory. The server will stay alive, processing invocation requests as
- they are presented, until it has sent two push callbacks to however many
- listeners are registered, at which time it will shut itself down.</para>
-
- <para>The sample clients are as follows. Each sample client
- <emphasis><client></emphasis> may be run in an IDE or by using the
- ant target <code>run-</code><emphasis><client></emphasis> (e.g.,
- <code>run-Client2Server1</code>).</para>
-
- <itemizedlist>
- <listitem>
- <para><classname>Client2Server1</classname>: A
- <classname>MultiplexClientInvoker</classname> starts according to
- client rule 2, after which a
- <classname>MultiplexServerInvoker</classname> is started according to
- server rule 1. Note that the <classname>Client</classname> and
- <classname>Connector</classname> are passed matching
- <emphasis>clientMultiplexId</emphasis> and
- <emphasis>serverMultiplexId</emphasis> parameters,
- respectively.</para>
- </listitem>
-
- <listitem>
- <para><classname>Client2Server2</classname>: A
- <classname>MultiplexClientInvoker</classname> starts according to
- client rule 2, after which a
- <classname>MultiplexServerInvoker</classname> is started according to
- server rule 2. Note that no <emphasis>clientMultiplexId</emphasis> is
- passed to the <classname>Client</classname> and no
- <emphasis>serverMultiplexId</emphasis> parameter is passed to the
- <classname>Connector</classname> in this example.</para>
- </listitem>
-
- <listitem>
- <para><classname>Client3Server1</classname>: A
- <classname>MultiplexClientInvoker</classname> is created, and, lacking
- binding information, finds itself governed by client rule 3.
- Subsequently, a <classname>MultiplexServerInvoker</classname> is
- started according to server rule 1, providing the binding information
- which allows the <classname>MultiplexClientInvoker</classname> to
- start. Note that the <classname>Client</classname> and
- <classname>Connector</classname> are passed matching
- <emphasis>clientMultiplexId</emphasis> and
- <emphasis>serverMultiplexId</emphasis> parameters,
- respectively.</para>
- </listitem>
-
- <listitem>
- <para><classname>Server2Client1</classname>: A
- <classname>MultiplexServerInvoker</classname> starts according to
- server rule 2, after which a
- <classname>MultiplexClientInvoker</classname> is started according to
- client rule 1. Note that the <classname>Connector</classname> and
- <classname>Client</classname> are passed matching
- <emphasis>serverMultiplexId</emphasis> and
- <emphasis>clientMultiplexId</emphasis> parameters,
- respectively.</para>
- </listitem>
-
- <listitem>
- <para><classname>Server2Client2</classname>: A
- <classname>MultiplexServerInvoker</classname> starts according to
- server rule 2, after which a
- <classname>MultiplexClientInvoker</classname> is started according to
- client rule 2. Note that no <emphasis>serverMultiplexId</emphasis> is
- passed to the <classname>Connector</classname> and no
- <emphasis>clientMultiplexId</emphasis> parameter is passed to the
- <classname>Client</classname> in this example.</para>
- </listitem>
-
- <listitem>
- <para><classname>Server3Client1</classname>: A
- <classname>MultiplexServerInvoker</classname> is created, and, lacking
- connect information, finds itself governed by server rule 3.
- Subsequently, a <classname>MultiplexClientInvoker</classname> is
- started according to client rule 1, providing the connect information
- which allows the <classname>MultiplexServerInvoker</classname> to
- start. Note that the <classname>Connector</classname> and
- <classname>Client</classname> are passed matching
- <emphasis>serverMultiplexId</emphasis> and
- <emphasis>clientMultiplexId</emphasis> parameters,
- respectively.</para>
- </listitem>
- </itemizedlist>
-
- <para>For variety, the examples in which the client invoker starts first
- use the configuration <classname>Map</classname> to pass invoker group
- parameters, and the examples in which the server invoker starts first pass
- parameters in the <classname>InvokerLocator</classname>.</para>
- </section>
</chapter>
\ No newline at end of file
16 years, 7 months
JBoss Remoting SVN: r4263 - remoting2/branches/2.x/docs/guide/en.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-05-28 22:53:23 -0400 (Wed, 28 May 2008)
New Revision: 4263
Modified:
remoting2/branches/2.x/docs/guide/en/chap17.xml
Log:
JBREM-989: Added JBREM-989.
Modified: remoting2/branches/2.x/docs/guide/en/chap17.xml
===================================================================
--- remoting2/branches/2.x/docs/guide/en/chap17.xml 2008-05-29 02:22:54 UTC (rev 4262)
+++ remoting2/branches/2.x/docs/guide/en/chap17.xml 2008-05-29 02:53:23 UTC (rev 4263)
@@ -90,6 +90,7 @@
<para>* [JBREM-984] - Run soak test</para>
<para>* [JBREM-985] - Assure version compatibility with earlier versions of Remoting</para>
<para>* [JBREM-986] - Make configurable time MicroSocketClientInvoker should wait to get connection from pool</para>
+ <para>* [JBREM-989] - Move reference to javax.servlet.ServletException out of SecurityUtility</para>
<bridgehead>Release Notes - JBoss Remoting - Version 2.4.0.CR2 (Pinto)</bridgehead>
16 years, 7 months
JBoss Remoting SVN: r4262 - remoting2/branches/2.x/docs.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-05-28 22:22:54 -0400 (Wed, 28 May 2008)
New Revision: 4262
Modified:
remoting2/branches/2.x/docs/README.txt
Log:
JBREM-989: Added JBREM-989.
Modified: remoting2/branches/2.x/docs/README.txt
===================================================================
--- remoting2/branches/2.x/docs/README.txt 2008-05-29 02:01:58 UTC (rev 4261)
+++ remoting2/branches/2.x/docs/README.txt 2008-05-29 02:22:54 UTC (rev 4262)
@@ -68,8 +68,9 @@
* [JBREM-984] - Run soak test
* [JBREM-985] - Assure version compatibility with earlier versions of Remoting
* [JBREM-986] - Make configurable time MicroSocketClientInvoker should wait to get connection from pool
+ * [JBREM-989] - Move reference to javax.servlet.ServletException out of SecurityUtility
+
-
==========================================================================================================
Release Notes - JBoss Remoting - Version 2.4.0.CR2
Bug
16 years, 7 months
JBoss Remoting SVN: r4261 - remoting2/branches/2.x/src/main/org/jboss/remoting/transport/servlet/web.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-05-28 22:01:58 -0400 (Wed, 28 May 2008)
New Revision: 4261
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/servlet/web/ServerInvokerServlet.java
Log:
JBREM-989: Uses processRequest() moved to ServletSecurityUtility.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/transport/servlet/web/ServerInvokerServlet.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/transport/servlet/web/ServerInvokerServlet.java 2008-05-29 02:00:54 UTC (rev 4260)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/servlet/web/ServerInvokerServlet.java 2008-05-29 02:01:58 UTC (rev 4261)
@@ -28,6 +28,7 @@
import org.jboss.remoting.ServerInvoker;
import org.jboss.remoting.transport.servlet.ServletServerInvokerMBean;
import org.jboss.remoting.util.SecurityUtility;
+import org.jboss.remoting.util.ServletSecurityUtility;
import javax.management.MBeanServer;
import javax.management.MBeanServerInvocationHandler;
@@ -124,7 +125,7 @@
}
byteOutputStream.flush();
byte[] totalByteArray = byteOutputStream.toByteArray();
- byte[] out = SecurityUtility.processRequest(servletInvoker, request, totalByteArray, response);
+ byte[] out = ServletSecurityUtility.processRequest(servletInvoker, request, totalByteArray, response);
ServletOutputStream outStream = response.getOutputStream();
outStream.write(out);
outStream.flush();
16 years, 7 months
JBoss Remoting SVN: r4260 - remoting2/branches/2.x/src/main/org/jboss/remoting/util.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-05-28 22:00:54 -0400 (Wed, 28 May 2008)
New Revision: 4260
Added:
remoting2/branches/2.x/src/main/org/jboss/remoting/util/ServletSecurityUtility.java
Log:
JBREM-989: Contains method from SecurityUtility used by ServerInvokerServlet.
Added: remoting2/branches/2.x/src/main/org/jboss/remoting/util/ServletSecurityUtility.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/util/ServletSecurityUtility.java (rev 0)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/util/ServletSecurityUtility.java 2008-05-29 02:00:54 UTC (rev 4260)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.remoting.util;
+
+import java.io.IOException;
+import java.security.AccessController;
+import java.security.PrivilegedActionException;
+import java.security.PrivilegedExceptionAction;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.jboss.remoting.transport.servlet.ServletServerInvokerMBean;
+
+
+/**
+ * @author <a href="ron.sigal(a)jboss.com">Ron Sigal</a>
+ * @version $Revision: 1.1 $
+ * <p>
+ * Copyright May 28, 2008
+ * </p>
+ */
+public class ServletSecurityUtility
+{
+ static public byte[] processRequest(final ServletServerInvokerMBean invoker,
+ final HttpServletRequest request,
+ final byte[] byteArray,
+ final HttpServletResponse response)
+ throws ServletException, IOException
+ {
+ if (SecurityUtility.skipAccessControl())
+ {
+ return invoker.processRequest(request, byteArray, response);
+ }
+
+ try
+ {
+ return (byte[]) AccessController.doPrivileged( new PrivilegedExceptionAction()
+ {
+ public Object run() throws ServletException, IOException
+ {
+ return invoker.processRequest(request, byteArray, response);
+ }
+ });
+ }
+ catch (PrivilegedActionException e)
+ {
+ Throwable cause = e.getCause();
+ if (cause instanceof ServletException)
+ throw (ServletException) cause;
+ else
+ throw (IOException) e.getCause();
+ }
+ }
+}
16 years, 7 months
JBoss Remoting SVN: r4259 - remoting2/branches/2.x/src/main/org/jboss/remoting/util.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-05-28 21:59:19 -0400 (Wed, 28 May 2008)
New Revision: 4259
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/util/SecurityUtility.java
Log:
JBREM-989: Removed method used by ServerInvokerServlet.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/util/SecurityUtility.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/util/SecurityUtility.java 2008-05-29 01:31:30 UTC (rev 4258)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/util/SecurityUtility.java 2008-05-29 01:59:19 UTC (rev 4259)
@@ -59,15 +59,11 @@
import javax.management.ObjectName;
import javax.net.ServerSocketFactory;
import javax.net.SocketFactory;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
import org.jboss.remoting.Remoting;
import org.jboss.remoting.loading.RemotingClassLoader;
import org.jboss.remoting.security.ServerSocketFactoryMBean;
import org.jboss.remoting.transport.rmi.RMIServerInvokerInf;
-import org.jboss.remoting.transport.servlet.ServletServerInvokerMBean;
import org.jboss.serial.io.JBossObjectInputStream;
import org.jboss.serial.io.JBossObjectOutputStream;
@@ -507,38 +503,6 @@
}
- static public byte[] processRequest(final ServletServerInvokerMBean invoker,
- final HttpServletRequest request,
- final byte[] byteArray,
- final HttpServletResponse response)
- throws ServletException, IOException
- {
- if (skipAccessControl)
- {
- return invoker.processRequest(request, byteArray, response);
- }
-
- try
- {
- return (byte[]) AccessController.doPrivileged( new PrivilegedExceptionAction()
- {
- public Object run() throws ServletException, IOException
- {
- return invoker.processRequest(request, byteArray, response);
- }
- });
- }
- catch (PrivilegedActionException e)
- {
- Throwable cause = e.getCause();
- if (cause instanceof ServletException)
- throw (ServletException) cause;
- else
- throw (IOException) e.getCause();
- }
- }
-
-
static public void registerMBean(final MBeanServer server, final Object o, final ObjectName name)
throws Exception
{
16 years, 7 months