Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 20694 invoked from network); 3 Apr 2009 14:20:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Apr 2009 14:20:28 -0000 Received: (qmail 46071 invoked by uid 500); 3 Apr 2009 14:20:28 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 46014 invoked by uid 500); 3 Apr 2009 14:20:28 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 46006 invoked by uid 99); 3 Apr 2009 14:20:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 14:20:28 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ralph.goers@dslextreme.com designates 209.85.146.180 as permitted sender) Received: from [209.85.146.180] (HELO wa-out-1112.google.com) (209.85.146.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2009 14:20:20 +0000 Received: by wa-out-1112.google.com with SMTP id m38so698410waf.27 for ; Fri, 03 Apr 2009 07:19:59 -0700 (PDT) Received: by 10.114.181.6 with SMTP id d6mr632518waf.94.1238768399066; Fri, 03 Apr 2009 07:19:59 -0700 (PDT) Received: from ?192.168.10.129? (adsl-66-51-196-164.dslextreme.com [66.51.196.164]) by mx.google.com with ESMTPS id v25sm2220096wah.51.2009.04.03.07.19.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Apr 2009 07:19:58 -0700 (PDT) Message-Id: From: Ralph Goers To: dev@jackrabbit.apache.org In-Reply-To: <694806645.1238757493376.JavaMail.jira@brutus> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [jira] Resolved: (JCRRMI-13) Enhancement to get RMI through firewalls Date: Fri, 3 Apr 2009 07:19:55 -0700 References: <694806645.1238757493376.JavaMail.jira@brutus> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org I updated jackrabbit trunk to try to look at the code changes and didn't see anything updated. I then blew away trunk and checked out jackrabbit/trunk. Still, these changes weren't there. I then looked at the commit email and noticed the changes actually went to jackrabbit/ commons/jcr-rmi. I apologize if I missed a discussion on this, but how will commons/jcr- rmi be included if jcr-rmi is already a subproject of trunk or the 1.5 branch? If jcr-rmi is going to appear in trunk shouldn't it be an external link to commons/jcr-rmi? Ralph On Apr 3, 2009, at 4:18 AM, Jukka Zitting (JIRA) wrote: > > [ https://issues.apache.org/jira/browse/JCRRMI-13?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > ] > > Jukka Zitting resolved JCRRMI-13. > --------------------------------- > > Resolution: Fixed > Fix Version/s: 2.0 > Assignee: Jukka Zitting > > Implemented in revision 761613. > > I made the port number an attribute of the ServerAdapterFactory > class, so you can easily set it in Java code when instantiating the > server: > > {code} > ServerAdapterFactory factory = new ServerAdapterFactory(); > factory.setPortNumber(...) > RemoteRepository remote = factory.getRemoteRepository(repository); > {code} > > If the port number is not explicitly set, then it is set to the > value of the proposed org.apache.jackrabbit.rmi.port system > property. If that property is not set, then the default value 0 (for > a random port) is used. > >> Enhancement to get RMI through firewalls >> ---------------------------------------- >> >> Key: JCRRMI-13 >> URL: https://issues.apache.org/jira/browse/JCRRMI-13 >> Project: Jackrabbit JCR-RMI >> Issue Type: Improvement >> Environment: RHEL Linux 5.0 >> Reporter: Tony Richardson >> Assignee: Jukka Zitting >> Fix For: 2.0 >> >> >> It is difficult to get RMI through a firewall with the current >> implementation of org.apache.jackrabbit.rmi.server.ServerObject. As >> it selects a random port for RMI execution. This issue can be >> resolved by adding a system property and modifying the default >> constructor as shown below. >> private static Integer bindPort = >> Integer.getInteger("org.apache.jackrabbit.rmi.port", new Integer(0)); >> /** >> * Creates a basic server adapter that uses the given factory >> * to create new adapters. >> * >> * @param factory remote adapter factory >> * @throws RemoteException on RMI errors >> */ >> protected ServerObject(RemoteAdapterFactory factory) >> throws RemoteException { >> super(bindPort.intValue()); >> this.factory = factory; >> } > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. >