This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB & Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB & Servlet" Watch "EJB & Servlet" New topic

EJB & Servlet

Douggie Fox

Joined: Jun 14, 2001
Posts: 19
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.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
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.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
You would also want to go through the J2EE tutorial in
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.

SCJP, blog
I agree. Here's the link:
subject: EJB & Servlet
It's not a secret anymore!