Presented by developerWorks, your source for great tutorials
ibm.com/developerWorks
*
local jndi name="HRSystem"
*
...
*
*/
public class HRSystemBean implements SessionBean {
...
The above would cause XDoclet to generate the following listing.
provides a session facade that works with
cmp/cmr from EJB 2.0 based entity beans.
HRSystem
ejb.HRSystemHome
ejb.HRSystem
ejb.HRSystemLocalHome
ejb.HRSystemLocal
ejb.HRSystemBean
Stateless
Container
...
I am so glad XDoclet generates that and I don t have to write it out.
XDoclet and EJB technology: Adding EJB references
from the Session to the Entity with ejb.ejb ref tag
In order for your session bean to access the entity beans that you created, you will
need to add a reference to the entity beans. You can do this with the
ejb.ejb ref
tag as follows:
/**
Enhance J2EE component reuse with XDoclets
Page 43 of 49
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved