Caching  Search services Enterprise JavaBean

Appendix B: Using the Search Services

Calling methods

The protocol for using agents and channels is described in the following steps and illustrated in “Search and SearchHome Examples” later in this chapter.

StepsCalling agents

  1. Call setupUserMemory.

  2. Call getCountOfUserAgents before making any other calls. The cache is loaded with the user agents.

  3. Call the getNextUserAgentName method.

  4. When you finish, call cleanupUserMemory to flush the cache.

StepsCalling channels and subchannels

  1. Call setupUserMemory.

  2. Call getCountOfUserChannels before making any other calls. The cache is then loaded with all the channels and subchannels to which the user has access.

  3. Call getNextChannelName to go through the list of channels.

  4. Call getCountOfSubchannels, then call getNextSubChannelName to go through the resulting list.

  5. When you finish, call cleanupUserMemory to flush the cache.





Copyright © 2004. Sybase Inc. All rights reserved. Search services Enterprise JavaBean

View this book as PDF