Testing the Telnet Beans

Once the beans are packaged, open two DOS or console windows on your local machine and change their directories so that you're in the same folder as the BeanBox in both windows. You'll run two copies of the BeanBox, one for a Telnet server and one for a Telnet client application.

Assembling the Telnet Server Application

In this section you will assemble a Telnet server application by wiring together various beans in a BeanBox. Run the BeanBox in one of the DOS or console windows then add a TelnetServer bean, two OurButton beans, and a TelnetServerInterface bean to the BeanBox window.

One OurButton bean is to start the TelnetServer running, and the other OurButton bean is to stop it. Change the label property of one

Get JavaBeans Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.