Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4105043

cannot set java.rmi.server.hostname on children of rmid in time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.1.2, 1.2.0
    • core-libs
    • None
    • 1.2beta4
    • generic
    • generic, solaris_2.5.1
    • Not verified

      It is not possible to set the java.rmi.server.hostname property on children of rmid in time for it to take effect. If you pass it as one of the properties in the activation group descriptor, the activation group impl's constructor will call its superclass constructor before setting any properties, and the superclass constructor will export the group impl as a remote object, causing the static initializer in sun.rmi.transport.tcp.TCPEndpoint to get run, which reads the hostname property (before the group gets a chance to set it).

            acolleysunw Adrian Colley (Inactive)
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: