Presented by developerWorks, your source for great tutorials
ibm.com/developerWorks
DeptBean
DEPT
id
DEPTID
XDoclet and EJB technology: ejb.interface tag
To declare that a method in the implementation should show up in the remote or local
interface you use the
ejb.interface
tag as follows:
/**
...
* @ejb:interface method view type="local"
...
*/
public abstract Integer getId();
public abstract void setId(Integer id);
The
ejb.interface
tag specifies a
view type
parameter. The view type parameter
tells XDoclet where it should generate the method: local, remote or both for the local
interface, the remote interface of both interfaces. The above XDoclet tag would cause
the following method to be generated in the local interface as follows:
/*
* Generated by XDoclet   Do not edit!
*/
package ejb;
/**
* Local interface for DeptBean.
*/
public interface Dept
extends javax.ejb.EJBLocalObject
{
...
/**
* This is a cmp field. The cmp field is read only. And it is the primary key.
*/
public java.lang.Integer getId(
) ;
Enhance J2EE component reuse with XDoclets
Page 37 of 49






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

j2ee web hosting

 

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