This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
Got my assigment yesterday...Problem statment does not require any transaction and security so i am bypassing EJB and proposing a Web Based Solution.The only thing is i am planning to use JPA for my CRUD operations although the DB operation are pretty simple .Wanted to use JPA for the ease of development...Any issues with this approach??
Moderator:- Tried my best to keep it Abstract but you can go trigger happy if this is too direct.
srivastava ashish wrote:
Problem statment does not require any transaction and security so i am bypassing EJB and proposing a Web Based Solution.
Make sure you fully understand the requirements. In real life projects, it is common to have Web + DB. However, I doubt that in the SCEA exam it will require only these two tiers, i.e. no EJB tier. In JEE architecture, EJB is commonly used to handle the business logic.
Well...there are few reasons why i don't want to go for EJB :-
1)No money or payment involved in the workflow (as per problem statement)
2)Number of Concurrent user is very less.
3)The whole problem statement emphasizes user experience on presentation logic
4)Business logic is controlled by an external webservice.
My solution has LDAP for authentication and authorization .Database to store customer preference.An external system to generate rich UI output(provided by the problem statement).An external system to manage business logic.
Need some advice if for SCEA using EJB is an advantage.
If the complete business logic is being provided by an external system, and the assignment only wants you to focus on presentation, then I dont really see a need of using EJBs. You may still want to consider some other performance and scalibility aspects in your design. For example, besides transactions, EJBs (Stateless Session Beans) are useful as pooled resources. Object pooling is very useful to design and develop scalable real world applications. Companies that dont use EJBs may use some other framework like Spring to provide similar functionality.
Joined: Apr 12, 2010
Thanks Rajiv ..My initial idea was to use Spring for resource purpose but now i have decided to follow the JEE and use EJB.