Update of /cvsroot/xdoclet/xdoclet/core/resources/xdoclet/ejb
In directory usw-pr-cvs1:/tmp/cvs-serv3994/core/resources/xdoclet/ejb
Modified Files:
entitybmp.j entitycmp.j local.j remote.j session.j
Log Message:
Implemented business interface support. Tested by changing Account, but
didn't check in changed sample - I think we need a larger example app!
To use, add remote-business-interface="test.interfaces.AccountBusiness"
or local-business-interface=" ... " to your @ejb:bean tag. Follows the
usual business interface pattern - remote-business-interface types should
declare all methods as throwing RemoteException. The business interface
methods do _not_ need XDoclet tags, the XDoclet tags should stay on the
implementation methods.
Steps change Account to use business interface pattern:
1. create a test.interfaces.AccountBusiness interface
2. add all methods with @ejb:interface-method tags to the AccountBusiness interface
3. add throws RemoteException to each method in the AccountBusiness interface
4. add remote-business-interface="test.interfaces.AccountBusiness" to the
@ejb:bean tag in AccountEJB.
sorry - I said above that XDoclet tags should stay in the implementation methods,
this is of course no longer relevant for @ejb:interface method.
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel