EJB 2.0 adds Local
Calls "One of the most common complaints about EJB architectures is that they are too resource-intensive, both in terms of memory consumption and response time. . . . The EJB 2.0 spec . . . does . . provide a means of reducing the response time for a request that involves interaction between multiple beans within the same container. The 1.0 and 1.1 specifications defined only one way to reference one enterprise bean from another—through the bean's remote interface. If both beans are in the same container, then this network round-trip is unnecessary. The 2.0 specification defines a new type of enterprise bean reference to avoid this problem— the local reference." -Kyle Gabhart, How to Utilize EJB 2.0 Local References http://www.devx.com/getHelpOn/10MinuteSolution/16677/1954?pf=true |
<ejbdoclet/> Taskreference: http://xdoclet.sourceforge.net/olddocs/ejbdoclet.html"This (Ant*) task allows you to generate various EJB-related files using nested subtasks and template files." "You no longer view EJBeans as a bunch of interfaces and deployment descriptor files. You simply program your component and ejbdoclet does the rest, from generating component and home interfaces to deployment descriptor. The point is that you program your component and specify its meta-data in a per component fashion, you don't have to deal with monolithic ejb-jar.xml files, you set the deployment meta-data per component. You don't have to worry about outdating deployment meta-data whenever you touch the code. The deployment meta-data is continuously integrated. And the whole process is, in its nature, round-trip." *" Ant is an [Apache] build tool for putting together
the pieces of a
program" -
Whatis.com //
popularized I think in the Apache, JBoss World of J2EE. |
Terminology for Java
to SQL Translators // from the IBM RAD 7 Redbook " Converters and composers are used for non-standard relational mapping. A converter allows you to transform a user-defined Java type to an SQL type back and forth. Composers are used when entity attributes have multi-column relational representations." |
Name
|
Type |
Attribute
Check box |
ssn |
java.lang.String | Key field |
title |
java.lang.String | Promote
getter and setter methods to local interface |
firstName |
java.lang.String | Promote
getter and setter methods to local interface |
lastName |
java.lang.String | Promote
getter and setter methods to local interface |
Name
|
Type |
Attribute
Check box |
id |
java.lang.String | Key field |
balance |
int | Promote
getter and setter methods to local interface |
Name
|
Type |
Attribute
Check box |
id |
java.lang.String | Key field |
amount |
int | Promote
getter and setter methods to local interface |
timestamp |
java.util.Date |
Promote
getter and setter methods to local interface |
Conversion // from IBM RAD7 Redbook Integer versus BigDecimal: The database and the entity EJBs keep the balance and amounts as integers (int). The data transfer objects in the RAD7EJBJava project and in the Web front-end define the balance and amounts as BigDecimal. We have to convert between the two formats by dividing integer values and multiplying decimal values by one hundred.These conversions are done in the session facade (EJBBank) so that the view and the model are unaware of the difference. |