• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Do's and dont's with EJB

 
Ranch Hand
Posts: 159
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since I'm new to ejb, I could use all the hints I can get. I'm busy reading ejb design patters as a start, but I can still use all the hints you can give me. Might be usefull for everyone to share his experience (good or bad)
I'll try to give it a start:
So you should:
- Put session or message beans as entry point of entity beans
but you probably shouldn't:
-Call statefull session beans from stateless session beans (no point at all to that since you lose the state anyway)
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bitter EJB by Bruce Tate is by far the best consolidation of EJB antipatterns.

Few chapters from Bitter EJB
http://www.manning.com/catalog/view.php?book=tate2&item=chapters.html
J2EE antipatterns
http://www.devx.com/assets/download/7254.pdf
http://www-106.ibm.com/developerworks/java/library/j-bitterjava/bjsidebar1.html
 
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unless you are quire sure of your competency, I would not prescribe developing EJBs using patterns as a starter reference.
Its useful to consider the patterns down the line in your development experience. I would prefer refering to books like Ed Roman's, and Bitter EJB and go for the initial development efforts.
Its just my personal opinion.
Kishore.
 
Mark Uppeteer
Ranch Hand
Posts: 159
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, but knowing what you should not do in advance is better than facing the consequences afterwards isn't it ?
 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ajith Kallambella:
Bitter EJB by Bruce Tate is by far the best consolidation of EJB antipatterns.
Few chapters from Bitter EJB
http://www.manning.com/catalog/view.php?book=tate2&item=chapters.html
J2EE antipatterns
http://www.devx.com/assets/download/7254.pdf
http://www-106.ibm.com/developerworks/java/library/j-bitterjava/bjsidebar1.html


Cheers Ajith,
They are good links!
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mark Uppeteer:
Yes, but knowing what you should not do in advance is better than facing the consequences afterwards isn't it ?


Absolutely. It's much better to read a map and go directly to your destination than to wander around blindly simply trying to avoid areas with signs that say "danger here"....
Kyle
 
No more fooling around. Read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic