Re: Catching mis-configuration earlier: Reggie and localhost
Mark Brouwer <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Patrick Wright wrote: > My question is, how could I have caught this earlier? I can't (am not > allowed) to dictate that none of our machines are configured with the > localhost address. My instinct would be to put some sort of > constraint/check in on either the client side, or at the LUS, to > reject addresses of 127.0.0.1. Using logging at the LUS is OK, but > finding this at level of FINE takes a bit of work as I need to sort > through other info logged at that level. One non-intrusive approach > would be to add a log listener which monitors those sorts of > registrations and raises a warning if it sniffs an invalid address. A warning is good, rejecting not as working with localhost makes sense sometimes. I think the JTSK has this check as part of the environment check utility (haven't used it so can't tell any specifics) but you have to execute it yourself and is probably not part of the starter framework. I incorporated this check together with a check for the ability of an interface to send and receive multicast packets as part of the boot sequence of Seven, so I think such a feature for the starter framework makes sense too. -- Mark -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]