Uploaded image for project: 'Jackrabbit JCR-RMI'
  1. Jackrabbit JCR-RMI
  2. JCRRMI-13

Enhancement to get RMI through firewalls

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • None
    • RHEL Linux 5.0

    Description

      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; }

      Attachments

        Activity

          People

            jukkaz Jukka Zitting
            anri3534 Tony Richardson
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: