I am developing an application with JXTA. When I connect 2 Peers they exchange advertisements, but after that I can`t find the advertisements in the local cache. Are the advertisements automatically saved and how can I save them if not? Thanks.
Some core advertisements are automatically saved, such as route advertisements for example, but otherwise, you are responsible for saving your own/customized advertisements with one of the DiscoveryService.publish() methods.
If you are already using that method, make sure you are not deleting your local configuration when you (re)start your peers, since this is often performed in available examples on the net. You would also want to check the expiration values you use when calling these methods.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.