This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
The Sun J2EEPatterns 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
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.