站内搜索: 请输入搜索关键词
当前页面: 图书首页 > Eclipse Rich Client Platform: Designing, Coding, and Packaging Java Applications

Section 11.4.  Summary - Eclipse Rich Client Platform: Designing, Coding, and Packaging Java Applications

Previous Page
Next Page

11.4. Summary

The login dialog greatly improves the usability of Hyperbola. Here you learned how to add preferences to your application. Notice that again most of the hard work is taken care of by Eclipse. The Eclipse RCP is full of frameworks for adding standard elements, such as preferences, to your application. Further chapters highlight additional facilities, but there are too many for us to cover them all. The online Eclipse help is a good source of information on the ones we omit.

Testing with other servers

Chatting with Eliza is fun, but it's better to set up your own accounts and chat with your friends. To do this, you must find a server on which to create an account. Jabber.org lists a number of public Jabber (XMPP) servers in addition to running one itself. See http://jabber.org/network for the full list. This is the easiest path. Pick a server, sign up for an account, and chat away.

Note: You should be aware that the XMPP and Jabber protocols share ancestry but have some subtle incompatibilities. As a result, you may experience some glitches when using the Hyperbola application and Smack with some servers. Typically, this is in the more advanced or fringe areas.

Chatting with Eliza is also good for testing, but may not be convenient for people on the road, behind firewalls, etc. The alternative is to install and run a server on your machine. There are several free XMPP servers available for download. Again, Jabber.org has a list of free server software. See http://jabber.org/software/servers.shtml for a complete listing. When writing this book, we used Jive Messenger with great success. Of course, it helps that Jive Messenger and Smack are developed by the same company!

Setting up Messenger is quite easy. Start by downloading the server from http://jive-software.org/messenger, or get it from the jive-messenger directory on the CD included with the book. Then follow the installation instructions. Once it's installed, configure the server using a Web browser. The installation process automatically launches a browser and asks you to create an administrator login. Once the server is running, ensure that under Server Settings > Registration & Login that both Inband Account Registration and Anonymous login are enabled. This allows you to create new users from the Hyperbola application. Then run the sample Hyperbola for Chapter 23 which allows you to create users.



Previous Page
Next Page