Writing Your First Bean 75 // Bean implementation (Web site translator)

Writing Your First Bean 75 // Bean implementation public class HelloBean implements SessionBean, HelloBusinessMethods { public String hello() { return Hello, World! ; } <...define other required callbacks...> } The only problem with this approach is that the local interface throws remote exceptions. If you can live with that, then this design strategy works. Summary In this chapter, you learned how to write the component interfaces, home interface, enterprise bean class, deployment descriptor, and Ejb-jar file. You also saw how to call beans using JNDI and RMI-IIOP. Congratulations are in order: It took a while, but you ve successfully completed your first Enterprise JavaBeans deployment!
Interland Web Hosting is the leader in the industry of discount and affordable web hosting. All plans are feature packed, with 24×7 tech support, automatic backups. You also get visitor statistics, spam filtering, email anti virus, and much more. Web page hosting is generally sufficient only for personal home pages.

Leave a Reply