Automatic exchange of information in an ad-hoc computing environment is
disclosed. According to one embodiment of the invention, a collection
agent module facilitates a search for a first device to connect to via a
wireless network. The collection agent queries for and receives a first
document from the first device based on metadata associated with the
first document and the collection agent automatically forwards the
received first document to a second device connected to the wireless
network upon receiving the first document from the first device. The
collection agent also automatically sends a second document to the first
device upon the first device connecting to the wireless network.