- improved inline documentation a bit (EJBs are called, not any bean)
Signed-off-by: Roland Häder <roland@mxchange.org>
final Product updatedProduct;
try {
- // Call bean
+ // Call EJB
updatedProduct = this.adminProductBean.addGenericProduct(product);
} catch (final ProductAlreadyAddedException ex) {
// Continue to throw
public void init () {
// Is cache there?
if (!this.productCache.iterator().hasNext()) {
- // Get whole list
+ // Get whole list from EJB
final List<Product> products = this.productBean.allProducts();
// "Walk" through all entries and add to cache
public void init () {
// Is cache there?
if (!this.categoryCache.iterator().hasNext()) {
- // Get whole list
+ // Get whole list from EJB
final List<Category> categories = this.categoryBean.allCategories();
// "Walk" through all entries and add to cache