aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes EJB usage in a web system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB usage in a web system" Watch "EJB usage in a web system" New topic
Author

EJB usage in a web system

Prasath Premkumar
Ranch Hand

Joined: Nov 13, 2008
Posts: 43

Hi,

I'm a working on a web system for my final year project and I'm using SpringMVC and Hibernate for this project. Since it is my final year project, for my experience and learning, i wanted ti integrate EJB 3.0 too, but i'm a little bit confused
in how to use it in this project. Can anyone please guide me on how to use or for what purposes we can use EJB 3 in a SpringMVC + Hibernate project???

thanks in advance.
Igor Baiborodine
Greenhorn

Joined: Apr 13, 2007
Posts: 10

Hi Prasath,

You can use EJB3 to implement the business(or services) layer in you web application.
I do not know what kind of your web app is but using EJBs might be overkill.
You can dispense with EJBs and use POJOs with Spring lightweight container instead.
If you go without EJBs, I would suggest that you read "Expert One-on-One J2EE Development without EJB" by Rod Johnson.

Regards,
Igor Baiborodine.


SCJP 6 | SCWCD 5 | ACE ColdFusion 8 | ACE Flex 4 | OCPJP 7 | OCEWCD 6
Prasath Premkumar
Ranch Hand

Joined: Nov 13, 2008
Posts: 43

Thanks for the reply Igor.

If i'm using hibernate, where does EJB comes in and what are the purposes served by them each? And i didnt get the point you mentioned about POJOs with spring container to replace EJBs. Can you please give a small
explanation about what you said or provide me a link where i can learn about it?

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


If i'm using hibernate, where does EJB comes in and what are the purposes served by them each?

EJB != persistence. Entity beans did, but they are long dead. EJBs containers cover a lot of the ground Spring does so you can integrate the two but the choice tends to be Spring or EJBs. See this.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
Don't get me started about those stupid light bulbs.
 
subject: EJB usage in a web system
 
Similar Threads
Spring servlet equivalent
Spring + ejb + hibernate project
I need opinions on career development project!
Questions for Tom Marrs and Scott Davis
how to identify a computer which connects to a network?