Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Do's and dont's with EJB  RSS feed

 
Mark Uppeteer
Ranch Hand
Posts: 159
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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)
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • 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
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • 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
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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 ?
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • 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!
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!