Creating the home and remote interfaces for an (Web site hosting)
Sunday, November 11th, 2007Creating the home and remote interfaces for an existing bean 4 Select the type of EJB you want generated and click Next. If you selected one of the session bean options, this page appears: Specify the EJB Bean Options: the Bean Class, the Bean Name, the Home Interface, and the JNDI Name. If you selected the CMP entity bean option, this screen appears: 5 Specify the EJB Bean options: the Bean Class, the Bean Name, the Home Interface, the JNDI Name, the Primary Key Class, and which fields you want to be persistent. 6 Choose Finish. The EJB 1.x Bean Generator creates the skeleton bean class you specified that includes the methods found in the remote interface. In the generated bean class, these methods include a comment reminding you to fill in their implementations. You must add your code to the methods to implement them as you wish. The EJB 1.x Bean Generator also creates a home interface if one did not previously exist. If a home interface did exist, the EJB 1.x Bean Generator asks you if you want to overwrite the home interface and responds according to your answer. Creating the home and remote interfaces for an existing bean If you already have a bean class, but don t have the required home and remote interfaces, you can use the EJB 1.x Interface Generator wizard to create them. You can also use the wizard if you ve made significant changes to the source code of your bean and you want the changes reflected in the interfaces. By using the EJB 1.x 78 Developing Applications with Enterprise JavaBeans
We feature a web hosting shopping cart and live support solution. Just try our web hosting shopping cartwhich provides a secure way of obtaining payments through your website.