Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 16929 invoked from network); 27 Dec 2004 17:44:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Dec 2004 17:44:31 -0000 Received: (qmail 55694 invoked by uid 500); 27 Dec 2004 17:44:11 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 55660 invoked by uid 500); 27 Dec 2004 17:44:11 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@geronimo.apache.org Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 55600 invoked by uid 99); 27 Dec 2004 17:44:10 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 27 Dec 2004 09:44:08 -0800 Received: (qmail 16768 invoked by uid 65534); 27 Dec 2004 17:44:06 -0000 Date: 27 Dec 2004 17:44:06 -0000 Message-ID: <20041227174406.16761.qmail@minotaur.apache.org> From: chirino@apache.org To: scm@geronimo.apache.org Subject: svn commit: r123434 - /geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/JaasLoginServiceRemotingServer.java /geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/RequestChannelInterceptorInvoker.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Author: chirino Date: Mon Dec 27 09:44:05 2004 New Revision: 123434 URL: http://svn.apache.org/viewcvs?view=rev&rev=123434 Log: Modified: geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/JaasLoginServiceRemotingServer.java geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/RequestChannelInterceptorInvoker.java Modified: geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/JaasLoginServiceRemotingServer.java Url: http://svn.apache.org/viewcvs/geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/JaasLoginServiceRemotingServer.java?view=diff&rev=123434&p1=geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/JaasLoginServiceRemotingServer.java&r1=123433&p2=geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/JaasLoginServiceRemotingServer.java&r2=123434 ============================================================================== --- geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/JaasLoginServiceRemotingServer.java (original) +++ geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/JaasLoginServiceRemotingServer.java Mon Dec 27 09:44:05 2004 @@ -24,6 +24,7 @@ import org.activeio.AcceptListener; import org.activeio.AsynchChannelServer; import org.activeio.Channel; +import org.activeio.Packet; import org.activeio.RequestChannel; import org.activeio.SynchChannel; import org.activeio.SynchChannelServer; @@ -100,9 +101,18 @@ } private RequestChannel createRequestChannel(SynchChannel channel) throws IOException { + return new AsynchChannelToServerRequestChannel( new PacketAggregatingAsynchChannel( - new SynchToAsynchChannelAdapter(channel))); + new SynchToAsynchChannelAdapter(channel))) { + /** + * close out the channel once one request has been serviced. + */ + public void onPacket(Packet packet) { + super.onPacket(packet); + dispose(); + } + }; } public void doStop() { Modified: geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/RequestChannelInterceptorInvoker.java Url: http://svn.apache.org/viewcvs/geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/RequestChannelInterceptorInvoker.java?view=diff&rev=123434&p1=geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/RequestChannelInterceptorInvoker.java&r1=123433&p2=geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/RequestChannelInterceptorInvoker.java&r2=123434 ============================================================================== --- geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/RequestChannelInterceptorInvoker.java (original) +++ geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/remoting/jmx/RequestChannelInterceptorInvoker.java Mon Dec 27 09:44:05 2004 @@ -35,10 +35,6 @@ private ClassLoader classloader; private Interceptor next; - public RequestChannelInterceptorInvoker(Interceptor next) { - this.next = next; - } - public RequestChannelInterceptorInvoker(Interceptor next, ClassLoader classloader) { this.next = next; this.classloader = classloader; @@ -93,7 +89,7 @@ } public void onRquestError(IOException error) { - // TODO: handle this. + System.out.println("Request Error:"+error); } }