Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB & Servlet

 
Douggie Fox
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm struggling to find a discussion on how Servlets & EJBs might interact with each other. Can anyone point me to any relevant resource either here at javaranch or elsewhere on the internet? I'm particularly interested in some example code that I can play around with.
Best
DF
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Sun J2EE Patterns page might be a good start to see how things can be put together.
The PetShop application (search Sun for that, too) is a complete example of what Sun thought were best practices at that instant in time. There is a lot of debate about parts of the design because Sun set out to demonstrate all the features of J2EE, not to show the best choice for every situation. Nearly anybody who can spell Java could have done it better. Just ask em.
Look at The Server Side too. Ed and the gang have several complete - and pretty good - books available in PDF.
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would also want to go through the J2EE tutorial in java.sun.com.
This will give you a perspective regarding different technologies that are a part of J2EE. I am saying this because there are alternative to Servlets that may serve your purpose.
By the way, you would also want to look at a new approach called JSF(Java server faces) which is reviewed to be barebones for web client implementations, but can become big time with couple of revisions.
Dan.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic