Java Reference
In-Depth Information
remove it from the routing table. You should see the success message shown in
figure 11.8.
The web browser indicates that the phone card was disabled successfully. If it
was not successfully disabled, you would see an exception notice returned. In
addition to the web browser output, you should see the standard output from the
JMXBookAgent similar to that in figure 11.9.
Notice that the first line of output is from the relation MBean; it reports that
it is disabling a phone card. The next output line comes from the PhoneCard
MBean itself; it indicates that it is the phone card in slot 2 and that it's being dis-
abled. Finally, the report from the RoutingTable MBean indicates that the route
for phone card 2 is being removed from the table.
11.5 Summary
This chapter introduced you to the relation service. The relation service provides
a mechanism to conceptually relate MBeans. You can create relations modeled as
MBeans to provide a way of working with MBeans as a group. Doing so increases
the flexibility and usability of your management system.
If a user can collect a series of MBeans together in a logical unit and can oper-
ate on that logical unit, the management system can be developed to behave in a
Figure 11.8
Web browser view of
disabling phone card 2
via the relation MBean
Figure 11.9
Agent standard output
of disabling phone card
2 via the relation MBean
Search WWH ::




Custom Search