JBoss Remoting SVN: r4480 - remoting2/branches/2.x/src/main/org/jboss/remoting/marshal.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-08-09 04:01:20 -0400 (Sat, 09 Aug 2008)
New Revision: 4480
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/marshal/MarshallerLoaderHandler.java
Log:
JBREM-1000: Replaced class repositories with classloaders.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/marshal/MarshallerLoaderHandler.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/marshal/MarshallerLoaderHandler.java 2008-08-09 07:59:47 UTC (rev 4479)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/marshal/MarshallerLoaderHandler.java 2008-08-09 08:01:20 UTC (rev 4480)
@@ -53,13 +53,13 @@
{
private ServerInvoker invoker = null;
private MBeanServer server = null;
- private List repositories;
+ private List classLoaders;
protected final static Logger log = Logger.getLogger(MarshallerLoaderHandler.class);
- public MarshallerLoaderHandler(List repositories)
+ public MarshallerLoaderHandler(List classLoaders)
{
- this.repositories = repositories;
+ this.classLoaders = classLoaders;
}
/**
@@ -173,31 +173,18 @@
{
byte[] classDefinition = ClassUtil.getClassBytes(className, classLoader);
- if (classDefinition == null && repositories != null)
+ if (classDefinition == null && classLoaders != null)
{
- Iterator it = repositories.iterator();
+ Iterator it = classLoaders.iterator();
while (it.hasNext())
{
- ObjectName name = (ObjectName) it.next();
- log.debug("searching repository " + name);
-
- try
+ ClassLoader cl = (ClassLoader) it.next();
+ log.debug("trying classLoader " + cl);
+ classDefinition = ClassUtil.getClassBytes(className, cl);
+ if (classDefinition != null)
{
- Object o = server.getAttribute(name, "Instance");
- LoaderRepository repository = (LoaderRepository) o;
- Class c = repository.getCachedClass(className);
- if (c == null)
- {
- continue;
- }
- log.debug("found class in repository " + name);
- RepositoryClassLoader cl = (RepositoryClassLoader) c.getClassLoader();
- classDefinition = loadByteCode(cl, className);
+ break;
}
- catch (Exception e)
- {
- log.debug("unable to get class from " + name + ": " + e.getMessage(), e);
- }
}
}
16 years, 5 months
JBoss Remoting SVN: r4479 - remoting2/branches/2.x/src/main/org/jboss/remoting.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-08-09 03:59:47 -0400 (Sat, 09 Aug 2008)
New Revision: 4479
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/Remoting.java
Log:
JBREM-1000: Added REMOTE_CLASS_LOADERS.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/Remoting.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/Remoting.java 2008-08-08 05:30:50 UTC (rev 4478)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/Remoting.java 2008-08-09 07:59:47 UTC (rev 4479)
@@ -88,4 +88,10 @@
*/
public static final String CLASSLOADING_PARENT_FIRST_DELEGATION = "classloadingParentFirstDelegation";
public static final String CLASSLOADING_PARENT_FIRST_DELEGATION_PROP = "org.jboss.remoting.classloadingParentFirstDelegation";
+
+ /**
+ * Key for injecting into Connector a list of classloaders for remote
+ * classloading facility.
+ */
+ public static final String REMOTE_CLASS_LOADERS = "remoteClassLoaders";
}
16 years, 5 months
JBoss Remoting SVN: r4478 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/chunked.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-08-08 01:30:50 -0400 (Fri, 08 Aug 2008)
New Revision: 4478
Added:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/chunked/ChunkedUnmarshallingTestCase.java
Log:
JBREM-1006: New unit test.
Added: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/chunked/ChunkedUnmarshallingTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/chunked/ChunkedUnmarshallingTestCase.java (rev 0)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/chunked/ChunkedUnmarshallingTestCase.java 2008-08-08 05:30:50 UTC (rev 4478)
@@ -0,0 +1,187 @@
+/*
+* 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.test.remoting.transport.http.chunked;
+
+import java.net.InetAddress;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.management.MBeanServer;
+
+import junit.framework.TestCase;
+
+import org.apache.log4j.ConsoleAppender;
+import org.apache.log4j.Level;
+import org.apache.log4j.Logger;
+import org.apache.log4j.PatternLayout;
+import org.jboss.logging.XLevel;
+import org.jboss.remoting.Client;
+import org.jboss.remoting.InvocationRequest;
+import org.jboss.remoting.InvokerLocator;
+import org.jboss.remoting.ServerInvocationHandler;
+import org.jboss.remoting.ServerInvoker;
+import org.jboss.remoting.callback.Callback;
+import org.jboss.remoting.callback.HandleCallbackException;
+import org.jboss.remoting.callback.InvokerCallbackHandler;
+import org.jboss.remoting.transport.Connector;
+import org.jboss.remoting.transport.PortUtil;
+
+
+/**
+ * Unit test for JBREM-1006.
+ *
+ * @author <a href="ron.sigal(a)jboss.com">Ron Sigal</a>
+ * @version $Revision: 1.1 $
+ * <p>
+ * Copyright Aug 8, 2008
+ * </p>
+ */
+public class ChunkedUnmarshallingTestCase extends TestCase
+{
+ private static Logger log = Logger.getLogger(ChunkedUnmarshallingTestCase.class);
+
+ private static boolean firstTime = true;
+
+ protected String host;
+ protected int port;
+ protected String locatorURI;
+ protected InvokerLocator serverLocator;
+ protected Connector connector;
+ protected TestInvocationHandler invocationHandler;
+
+
+ public void setUp() throws Exception
+ {
+ if (firstTime)
+ {
+ firstTime = false;
+ Logger.getLogger("org.jboss.remoting").setLevel(XLevel.INFO);
+ Logger.getLogger("org.jboss.test.remoting").setLevel(Level.INFO);
+ String pattern = "[%d{ABSOLUTE}] [%t] %5p (%F:%L) - %m%n";
+ PatternLayout layout = new PatternLayout(pattern);
+ ConsoleAppender consoleAppender = new ConsoleAppender(layout);
+ Logger.getRootLogger().addAppender(consoleAppender);
+ }
+ }
+
+
+ public void tearDown()
+ {
+ }
+
+
+ public void testChunkedTransmission() throws Throwable
+ {
+ log.info("entering " + getName());
+
+ // Start server.
+ setupServer();
+
+ // Create client.
+ InvokerLocator clientLocator = new InvokerLocator(locatorURI);
+ HashMap clientConfig = new HashMap();
+ clientConfig.put(InvokerLocator.FORCE_REMOTE, "true");
+ addExtraClientConfig(clientConfig);
+ Client client = new Client(clientLocator, clientConfig);
+ client.connect();
+ log.info("client is connected");
+
+ // Test connections.
+ HashMap metadata = new HashMap();
+ metadata.put(Client.RAW, "true");
+ String message = "abcdefghijklmnopqrstuvwxyz";
+ assertEquals(message, client.invoke(message, metadata));
+ log.info("connection is good");
+ assertTrue(invocationHandler.isChunked);
+ log.info("invocation was sent chunked");
+
+ client.disconnect();
+ shutdownServer();
+ log.info(getName() + " PASSES");
+ }
+
+
+ protected String getTransport()
+ {
+ return "http";
+ }
+
+
+ protected void addExtraClientConfig(Map config) {}
+ protected void addExtraServerConfig(Map config) {}
+
+
+ protected void setupServer() throws Exception
+ {
+ host = InetAddress.getLocalHost().getHostAddress();
+ port = PortUtil.findFreePort(host);
+ locatorURI = getTransport() + "://" + host + ":" + port;
+ locatorURI += "/?chunkedLength=10";
+ serverLocator = new InvokerLocator(locatorURI);
+ log.info("Starting remoting server with locator uri of: " + locatorURI);
+ HashMap config = new HashMap();
+ config.put(InvokerLocator.FORCE_REMOTE, "true");
+ addExtraServerConfig(config);
+ connector = new Connector(serverLocator, config);
+ connector.create();
+ invocationHandler = new TestInvocationHandler();
+ connector.addInvocationHandler("test", invocationHandler);
+ connector.start();
+ }
+
+
+ protected void shutdownServer() throws Exception
+ {
+ if (connector != null)
+ connector.stop();
+ }
+
+
+ static class TestInvocationHandler implements ServerInvocationHandler
+ {
+ boolean isChunked;
+
+ public void addListener(InvokerCallbackHandler callbackHandler) {}
+ public Object invoke(final InvocationRequest invocation) throws Throwable
+ {
+ Map requestMap = invocation.getRequestPayload();
+ if (requestMap != null)
+ {
+ String transferEncoding = (String) requestMap.get("transfer-encoding");
+ isChunked = "chunked".equalsIgnoreCase(transferEncoding);
+ }
+ return invocation.getParameter();
+ }
+ public void removeListener(InvokerCallbackHandler callbackHandler) {}
+ public void setMBeanServer(MBeanServer server) {}
+ public void setInvoker(ServerInvoker invoker) {}
+ }
+
+
+ static class TestCallbackHandler implements InvokerCallbackHandler
+ {
+ public void handleCallback(Callback callback) throws HandleCallbackException
+ {
+ log.info("received callback");
+ }
+ }
+}
\ No newline at end of file
16 years, 5 months
JBoss Remoting SVN: r4477 - remoting2/branches/2.x/src/main/org/jboss/remoting/marshal/http.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-08-08 01:27:12 -0400 (Fri, 08 Aug 2008)
New Revision: 4477
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/marshal/http/HTTPUnMarshaller.java
Log:
JBREM-1006: read() checks for transfer-encoding=chunked, and, if so, doesn't apply byteOutputStream.size() > contentLength test while reading from inputStream.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/marshal/http/HTTPUnMarshaller.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/marshal/http/HTTPUnMarshaller.java 2008-08-07 23:52:28 UTC (rev 4476)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/marshal/http/HTTPUnMarshaller.java 2008-08-08 05:27:12 UTC (rev 4477)
@@ -82,6 +82,7 @@
byte[] byteBuffer = new byte[bufferSize];
ByteArrayOutputStream byteOutputStream = new ByteArrayOutputStream();
boolean preserveLines = false;
+ boolean isChunked = false;
// check the metadat to see if is entry for content length
if(metadata != null)
@@ -126,6 +127,12 @@
preserveLines = Boolean.valueOf((String) value).booleanValue();
}
}
+
+ value = metadata.get("transfer-encoding");
+ if (value instanceof String && "chunked".equalsIgnoreCase((String)value))
+ {
+ isChunked = true;
+ }
}
int pointer = 0;
@@ -133,7 +140,7 @@
while(amtRead > 0)
{
byteOutputStream.write(byteBuffer, pointer, amtRead);
- if(amtRead < bufferSize && byteOutputStream.size() >= contentLength)
+ if(!isChunked && (amtRead < bufferSize && byteOutputStream.size() >= contentLength))
{
//done reading, so process
break;
16 years, 5 months
JBoss Remoting SVN: r4476 - remoting2/branches/2.x/docs/guide/en.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-08-07 19:52:28 -0400 (Thu, 07 Aug 2008)
New Revision: 4476
Modified:
remoting2/branches/2.x/docs/guide/en/chap5.xml
Log:
JBREM-925: Disambiguated SSLSocketBuilder configuration table.
Modified: remoting2/branches/2.x/docs/guide/en/chap5.xml
===================================================================
--- remoting2/branches/2.x/docs/guide/en/chap5.xml 2008-08-07 23:51:33 UTC (rev 4475)
+++ remoting2/branches/2.x/docs/guide/en/chap5.xml 2008-08-07 23:52:28 UTC (rev 4476)
@@ -4657,7 +4657,13 @@
</orderedlist>
<para>The configuration properties for
- <classname>SSLSocketBuilder</classname>are as follows:</para>
+ <classname>SSLSocketBuilder</classname>are as follows. Note that in the
+ "key name" column, the name in capital letters (e.g.,
+ REMOTING_CLIENT_AUTH_MODE) is a handy constant in the
+ <classname>SSLSocketBuilder</classname> class with the value given in
+ parentheses (e.g. "org.jboss.remoting.clientAuthMode"). It is the latter
+ that should be used for declarative configuration in, for example, MBean
+ descriptors.</para>
<table frame="all" id="SSLSocketBuilderTable" xreflabel="Table 1">
<title><classname>SSLSocketBuilder</classname> configuration
@@ -4692,7 +4698,7 @@
<row>
<entry><para>ClientAuthMode</para></entry>
- <entry><para>REMOTING_CLIENT_AUTH_MODE</para></entry>
+ <entry><para>REMOTING_CLIENT_AUTH_MODE ("org.jboss.remoting.clientAuthMode")</para></entry>
<entry><para>String</para></entry>
@@ -4707,8 +4713,8 @@
<row>
<entry><para>KeyAlias</para></entry>
- <entry><para>REMOTING_KEY_ALIAS</para></entry>
-
+ <entry><para>REMOTING_KEY_ALIAS ("org.jboss.remoting.keyAlias")</para></entry>
+
<entry><para>String</para></entry>
<entry><para></para></entry>
@@ -4720,7 +4726,7 @@
<row>
<entry><para>KeyPassword</para></entry>
- <entry><para>REMOTING_KEY_PASSWORD</para></entry>
+ <entry><para>REMOTING_KEY_PASSWORD ("org.jboss.remoting.keyPassword")</para></entry>
<entry><para>String</para></entry>
@@ -4737,7 +4743,7 @@
<row>
<entry><para>KeyStoreAlgorithm</para></entry>
- <entry><para>REMOTING_KEY_STORE_ALGORITHM</para></entry>
+ <entry><para>REMOTING_KEY_STORE_ALGORITHM ("org.jboss.remoting.keyStoreAlgorithm")</para></entry>
<entry><para>String</para></entry>
@@ -4750,7 +4756,7 @@
<row>
<entry><para>KeyStorePassword</para></entry>
- <entry><para>REMOTING_KEY_STORE_PASSWORD</para></entry>
+ <entry><para>REMOTING_KEY_STORE_PASSWORD ("org.jboss.remoting.keyStorePassword")</para></entry>
<entry><para>String</para></entry>
@@ -4767,7 +4773,7 @@
<row>
<entry><para>KeyStoreType</para></entry>
- <entry><para>REMOTING_KEY_STORE_TYPE</para></entry>
+ <entry><para>REMOTING_KEY_STORE_TYPE ("org.jboss.remoting.keyStoreType")</para></entry>
<entry><para>String</para></entry>
@@ -4784,7 +4790,7 @@
<row>
<entry><para>KeyStoreURL</para></entry>
- <entry><para>REMOTING_KEY_STORE_FILE_PATH</para></entry>
+ <entry><para>REMOTING_KEY_STORE_FILE_PATH ("org.jboss.remoting.keyStore")</para></entry>
<entry><para>String</para></entry>
@@ -4813,7 +4819,7 @@
<row>
<entry><para>ProviderName</para></entry>
- <entry><para>REMOTING_SSL_PROVIDER_NAME</para></entry>
+ <entry><para>REMOTING_SSL_PROVIDER_NAME ("org.jboss.remoting.sslProviderName")</para></entry>
<entry><para>String</para></entry>
@@ -4838,7 +4844,7 @@
<row>
<entry><para>SecureSocketProtocol</para></entry>
- <entry><para>REMOTING_SSL_PROTOCOL</para></entry>
+ <entry><para>REMOTING_SSL_PROTOCOL ("org.jboss.remoting.sslProtocol")</para></entry>
<entry><para>String</para></entry>
@@ -4852,7 +4858,7 @@
<row>
<entry><para>ServerAuthMode</para></entry>
- <entry><para>REMOTING_SERVER_AUTH_MODE</para></entry>
+ <entry><para>REMOTING_SERVER_AUTH_MODE ("org.jboss.remoting.serverAuthMode")</para></entry>
<entry><para>boolean/String</para></entry>
@@ -4866,7 +4872,7 @@
<row>
<entry><para>ServerSocketUseClientMode</para></entry>
- <entry><para>REMOTING_SERVER_SOCKET_USE_CLIENT_MODE</para></entry>
+ <entry><para>REMOTING_SERVER_SOCKET_USE_CLIENT_MODE ("org.jboss.remoting.serversocket.useClientMode")</para></entry>
<entry><para>boolean/String</para></entry>
@@ -4879,7 +4885,7 @@
<row>
<entry><para>SocketUseClientMode</para></entry>
- <entry><para>REMOTING_SOCKET_USE_CLIENT_MODE</para></entry>
+ <entry><para>REMOTING_SOCKET_USE_CLIENT_MODE ("org.jboss.remoting.socket.useClientMode")</para></entry>
<entry><para>boolean/String</para></entry>
@@ -4892,7 +4898,7 @@
<row>
<entry><para>TrustStoreAlgorithm</para></entry>
- <entry><para>REMOTING_TRUST_STORE_ALGORITHM</para></entry>
+ <entry><para>REMOTING_TRUST_STORE_ALGORITHM ("org.jboss.remoting.trustStoreAlgorithm")</para></entry>
<entry><para>String</para></entry>
@@ -4905,7 +4911,7 @@
<row>
<entry><para>TrustStorePassword</para></entry>
- <entry><para>REMOTING_TRUST_STORE_PASSWORD</para></entry>
+ <entry><para>REMOTING_TRUST_STORE_PASSWORD ("org.jboss.remoting.trustStorePassword")</para></entry>
<entry><para>String</para></entry>
@@ -4917,7 +4923,7 @@
<row>
<entry><para>TrustStoreType</para></entry>
- <entry><para>REMOTING_TRUST_STORE_TYPE</para></entry>
+ <entry><para>REMOTING_TRUST_STORE_TYPE ("org.jboss.remoting.trustStoreType")</para></entry>
<entry><para>String</para></entry>
@@ -4930,7 +4936,7 @@
<row>
<entry><para>TrustStoreURL</para></entry>
- <entry><para>REMOTING_TRUST_STORE_FILE_PATH</para></entry>
+ <entry><para>REMOTING_TRUST_STORE_FILE_PATH ("org.jboss.remoting.trustStore")</para></entry>
<entry><para>String</para></entry>
16 years, 5 months
JBoss Remoting SVN: r4475 - remoting2/branches/2.2/docs/guide/en.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-08-07 19:51:33 -0400 (Thu, 07 Aug 2008)
New Revision: 4475
Modified:
remoting2/branches/2.2/docs/guide/en/chap5.xml
Log:
JBREM-925: Disambiguated SSLSocketBuilder configuration table.
Modified: remoting2/branches/2.2/docs/guide/en/chap5.xml
===================================================================
--- remoting2/branches/2.2/docs/guide/en/chap5.xml 2008-08-07 23:00:50 UTC (rev 4474)
+++ remoting2/branches/2.2/docs/guide/en/chap5.xml 2008-08-07 23:51:33 UTC (rev 4475)
@@ -5107,7 +5107,13 @@
</orderedlist>
<para>The configuration properties for
- <classname>SSLSocketBuilder</classname>are as follows:</para>
+ <classname>SSLSocketBuilder</classname>are as follows. Note that in the
+ "key name" column, the name in capital letters (e.g.,
+ REMOTING_CLIENT_AUTH_MODE) is a handy constant in the
+ <classname>SSLSocketBuilder</classname> class with the value given in
+ parentheses (e.g. "org.jboss.remoting.clientAuthMode"). It is the latter
+ that should be used for declarative configuration in, for example, MBean
+ descriptors.</para>
<table frame="all" id="SSLSocketBuilderTable" xreflabel="Table 1">
<title><classname>SSLSocketBuilder</classname> configuration
@@ -5142,7 +5148,7 @@
<row>
<entry><para>ClientAuthMode</para></entry>
- <entry><para>REMOTING_CLIENT_AUTH_MODE</para></entry>
+ <entry><para>REMOTING_CLIENT_AUTH_MODE ("org.jboss.remoting.clientAuthMode")</para></entry>
<entry><para>String</para></entry>
@@ -5157,7 +5163,7 @@
<row>
<entry><para>KeyAlias</para></entry>
- <entry><para>REMOTING_KEY_ALIAS</para></entry>
+ <entry><para>REMOTING_KEY_ALIAS ("org.jboss.remoting.keyAlias")</para></entry>
<entry><para>String</para></entry>
@@ -5170,7 +5176,7 @@
<row>
<entry><para>KeyPassword</para></entry>
- <entry><para>REMOTING_KEY_PASSWORD</para></entry>
+ <entry><para>REMOTING_KEY_PASSWORD ("org.jboss.remoting.keyPassword")</para></entry>
<entry><para>String</para></entry>
@@ -5187,7 +5193,7 @@
<row>
<entry><para>KeyStoreAlgorithm</para></entry>
- <entry><para>REMOTING_KEY_STORE_ALGORITHM</para></entry>
+ <entry><para>REMOTING_KEY_STORE_ALGORITHM ("org.jboss.remoting.keyStoreAlgorithm")</para></entry>
<entry><para>String</para></entry>
@@ -5200,7 +5206,7 @@
<row>
<entry><para>KeyStorePassword</para></entry>
- <entry><para>REMOTING_KEY_STORE_PASSWORD</para></entry>
+ <entry><para>REMOTING_KEY_STORE_PASSWORD ("org.jboss.remoting.keyStorePassword")</para></entry>
<entry><para>String</para></entry>
@@ -5217,7 +5223,7 @@
<row>
<entry><para>KeyStoreType</para></entry>
- <entry><para>REMOTING_KEY_STORE_TYPE</para></entry>
+ <entry><para>REMOTING_KEY_STORE_TYPE ("org.jboss.remoting.keyStoreType")</para></entry>
<entry><para>String</para></entry>
@@ -5234,7 +5240,7 @@
<row>
<entry><para>KeyStoreURL</para></entry>
- <entry><para>REMOTING_KEY_STORE_FILE_PATH</para></entry>
+ <entry><para>REMOTING_KEY_STORE_FILE_PATH ("org.jboss.remoting.keyStore")</para></entry>
<entry><para>String</para></entry>
@@ -5263,7 +5269,7 @@
<row>
<entry><para>ProviderName</para></entry>
- <entry><para>REMOTING_SSL_PROVIDER_NAME</para></entry>
+ <entry><para>REMOTING_SSL_PROVIDER_NAME ("org.jboss.remoting.sslProviderName")</para></entry>
<entry><para>String</para></entry>
@@ -5288,7 +5294,7 @@
<row>
<entry><para>SecureSocketProtocol</para></entry>
- <entry><para>REMOTING_SSL_PROTOCOL</para></entry>
+ <entry><para>REMOTING_SSL_PROTOCOL ("org.jboss.remoting.sslProtocol")</para></entry>
<entry><para>String</para></entry>
@@ -5302,7 +5308,7 @@
<row>
<entry><para>ServerAuthMode</para></entry>
- <entry><para>REMOTING_SERVER_AUTH_MODE</para></entry>
+ <entry><para>REMOTING_SERVER_AUTH_MODE ("org.jboss.remoting.serverAuthMode")</para></entry>
<entry><para>boolean/String</para></entry>
@@ -5316,7 +5322,7 @@
<row>
<entry><para>ServerSocketUseClientMode</para></entry>
- <entry><para>REMOTING_SERVER_SOCKET_USE_CLIENT_MODE</para></entry>
+ <entry><para>REMOTING_SERVER_SOCKET_USE_CLIENT_MODE ("org.jboss.remoting.serversocket.useClientMode")</para></entry>
<entry><para>boolean/String</para></entry>
@@ -5329,7 +5335,7 @@
<row>
<entry><para>SocketUseClientMode</para></entry>
- <entry><para>REMOTING_SOCKET_USE_CLIENT_MODE</para></entry>
+ <entry><para>REMOTING_SOCKET_USE_CLIENT_MODE ("org.jboss.remoting.socket.useClientMode")</para></entry>
<entry><para>boolean/String</para></entry>
@@ -5342,7 +5348,7 @@
<row>
<entry><para>TrustStoreAlgorithm</para></entry>
- <entry><para>REMOTING_TRUST_STORE_ALGORITHM</para></entry>
+ <entry><para>REMOTING_TRUST_STORE_ALGORITHM ("org.jboss.remoting.trustStoreAlgorithm")</para></entry>
<entry><para>String</para></entry>
@@ -5355,7 +5361,7 @@
<row>
<entry><para>TrustStorePassword</para></entry>
- <entry><para>REMOTING_TRUST_STORE_PASSWORD</para></entry>
+ <entry><para>REMOTING_TRUST_STORE_PASSWORD ("org.jboss.remoting.trustStorePassword")</para></entry>
<entry><para>String</para></entry>
@@ -5367,7 +5373,7 @@
<row>
<entry><para>TrustStoreType</para></entry>
- <entry><para>REMOTING_TRUST_STORE_TYPE</para></entry>
+ <entry><para>REMOTING_TRUST_STORE_TYPE ("org.jboss.remoting.trustStoreType")</para></entry>
<entry><para>String</para></entry>
@@ -5380,7 +5386,7 @@
<row>
<entry><para>TrustStoreURL</para></entry>
- <entry><para>REMOTING_TRUST_STORE_FILE_PATH</para></entry>
+ <entry><para>REMOTING_TRUST_STORE_FILE_PATH ("org.jboss.remoting.trustStore")</para></entry>
<entry><para>String</para></entry>
16 years, 5 months
JBoss Remoting SVN: r4474 - remoting2/branches/2.2/src/main/org/jboss/remoting.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-08-07 19:00:50 -0400 (Thu, 07 Aug 2008)
New Revision: 4474
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/InvokerLocator.java
Log:
JBREM-1022: Fixed javadoc.
Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/InvokerLocator.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/InvokerLocator.java 2008-08-07 23:00:22 UTC (rev 4473)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/InvokerLocator.java 2008-08-07 23:00:50 UTC (rev 4474)
@@ -58,9 +58,11 @@
* <p/>
* <tt>rmi://localhost</tt> <P>
* <p/>
- * NOTE: the hostname will automatically be resolved to the outside IP address of the local machine
- * if <tt>localhost</tt> or <tt>127.0.0.1</tt> is used as the hostname in the URI. If it cannot be
- * determined or resolved, it will use what was passed.
+ * NOTE: If no hostname is given (e.g., "socket://:5555"), then the hostname will
+ * automatically be resolved to the outside IP address of the local machine.
+ * If the given hostname is 0.0.0.0 and the system
+ * property "jboss.bind.address" is set, then the hostname will be replaced by the value
+ * associated with 'jboss.bind.address".
*
* @author <a href="mailto:jhaynie@vocalocity.net">Jeff Haynie</a>
* @author <a href="mailto:telrod@e2technologies.net">Tom Elrod</a>
16 years, 5 months
JBoss Remoting SVN: r4473 - remoting2/branches/2.x/src/main/org/jboss/remoting.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-08-07 19:00:22 -0400 (Thu, 07 Aug 2008)
New Revision: 4473
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/InvokerLocator.java
Log:
JBREM-1022: Fixed javadoc.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/InvokerLocator.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/InvokerLocator.java 2008-08-06 07:02:03 UTC (rev 4472)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/InvokerLocator.java 2008-08-07 23:00:22 UTC (rev 4473)
@@ -62,9 +62,11 @@
* <p/>
* <tt>rmi://localhost</tt> <P>
* <p/>
- * NOTE: the hostname will automatically be resolved to the outside IP address of the local machine
- * if <tt>localhost</tt> or <tt>127.0.0.1</tt> is used as the hostname in the URI. If it cannot be
- * determined or resolved, it will use what was passed.
+ * NOTE: If no hostname is given (e.g., "socket://:5555"), then the hostname will
+ * automatically be resolved to the outside IP address of the local machine.
+ * If the given hostname is 0.0.0.0 and the system
+ * property "jboss.bind.address" is set, then the hostname will be replaced by the value
+ * associated with 'jboss.bind.address".
*
* @author <a href="mailto:jhaynie@vocalocity.net">Jeff Haynie</a>
* @author <a href="mailto:telrod@e2technologies.net">Tom Elrod</a>
16 years, 5 months
JBoss Remoting SVN: r4472 - remoting2/branches/2.x/docs/guide/en.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-08-06 03:02:03 -0400 (Wed, 06 Aug 2008)
New Revision: 4472
Modified:
remoting2/branches/2.x/docs/guide/en/chap9.xml
Log:
JBREM-1012: Updated discussion of configuring a server side ConnectionListener.
Modified: remoting2/branches/2.x/docs/guide/en/chap9.xml
===================================================================
--- remoting2/branches/2.x/docs/guide/en/chap9.xml 2008-08-06 06:24:54 UTC (rev 4471)
+++ remoting2/branches/2.x/docs/guide/en/chap9.xml 2008-08-06 07:02:03 UTC (rev 4472)
@@ -94,11 +94,16 @@
<programlisting>public void addConnectionListener(ConnectionListener listener)</programlisting>
- <para>or though the use of the
+ <para>or through the use of the
<code>ServerInvoker.CONNECTION_LISTENER</code> parameter (actual value
"connectionListener") in the <classname>Connector</classname>'s
- configuration map or XML configuration file. Once both criteria are met, the
- remoting server will turn on client leasing.</para>
+ configuration map, XML configuration file, or
+ <classname>ServerConfiguration</classname> POJO. If the
+ <code>ServerInvoker.CONNECTION_LISTENER</code> parameter is used, the value
+ can be either a JMX object name or the fully qualified name of a class that
+ implements <classname>ConnectionListener</classname> and has a default
+ constructor. Once both criteria are met, the remoting server will turn on
+ client leasing.</para>
<para>The ConnectionListener will be notified of both client failures and
client disconnects via the handleConnectionException() method. If the client
16 years, 5 months
JBoss Remoting SVN: r4471 - 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-08-06 02:24:54 -0400 (Wed, 06 Aug 2008)
New Revision: 4471
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/util/SecurityUtility.java
Log:
JBREM-990: Added getResponseMessage().
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-08-06 06:24:20 UTC (rev 4470)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/util/SecurityUtility.java 2008-08-06 06:24:54 UTC (rev 4471)
@@ -1488,6 +1488,31 @@
}
+ static public String getResponseMessage(final HttpURLConnection conn)
+ throws IOException
+ {
+ if (skipAccessControl)
+ {
+ return conn.getResponseMessage();
+ }
+
+ try
+ {
+ return (String) AccessController.doPrivileged( new PrivilegedExceptionAction()
+ {
+ public Object run() throws IOException
+ {
+ return conn.getResponseMessage();
+ }
+ });
+ }
+ catch (PrivilegedActionException e)
+ {
+ throw (IOException) e.getCause();
+ }
+ }
+
+
static public Object callTransport(final RMIServerInvokerInf server, final Object payload)
throws IOException
{
16 years, 5 months