Design and Development of a JXTA Middleware for Mobile Ad Hoc Networks