sun.com docs.sun.com My Sun Worldwide Sites

  Previous Contents

Creating Feeds, Collections, and Entries Using the BlogClient Application

The BlogApps sample applications included in the Web Developer Pack include a Swing desktop application, BlogClient, that can create Atom feeds, collections, and entries. We will use BlogClient to log in and create feeds on atom-feed.

Running BlogClient

  1. Open a terminal prompt and navigate to <swdp.home>/blogapps/blogclient.
  2. Enter ant and press Enter.

    This will build BlogClient and put the compiled application in <swdp.home>/blogapps/blogclient/dist/blogclient.

  3. In a terminal navigate to <swdp.home>/blogapps/blogclient/dist/blogclient and enter blogclient.

    This will launch BlogClient.

  4. Enter the user name and password you previously added in the atom-feed web application, the URI of the deployed instance of atom-feed, select Atom under Protocol, and click Login.
  5. Create a new entry for this feed.

    BlogClient has a form for entering information for a new Atom entry. By default, our Atom handler has two categories, General and Business. Select one or more category when creating a new entry.

  6. Click Publish to save the entry to the Atom feed.
  7. Verify the entry by clicking the Entries tab.
  8. (Optional) View your feed in an Atom-enabled web browser such as Firefox or Internet Explorer.

    Some web browsers have the ability to view Atom feeds. If you have Firefox or Internet Explorer, go to the following URI:

    http://<server>:<server port>/atom-feed/atom/<username>

    You will be prompted for your username and password, and then can view your feed.

Previous Contents
Company Info Contact Terms of Use Privacy Copyright 1994-2007 Sun Microsystems, Inc.