This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which shall I learn first, EJB or Framework?

 
Jack Robertson
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm about to finish servlets and jsp, what shall i do next? EJB or Frameworks like spring,hibernate?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recommend JPA/Hibernate first. (Hibernate implements JPA so you learn both JPA and Hibernate APIs). That way you know how to work with the database. After that EJB and Spring. Knowing both will help in the long run. Luckily the concepts from one will expedite learning the other.
 
Jack Robertson
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, any book to recommend?
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jack Robertson wrote:Thanks, any book to recommend?

For EJB you may have the EJB 3 In Action (by Manning) which I have used, is a really good one. You may have a good coverage of JPA in the book itself. And for the Hibernate I think you can refer the documentation/API reference. I know there are more books for Hibernate/Spring too, but I cannot comment on them as I have not used any.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB 3 in Action covers JPA as well so I'd go with that. For Spring, Spring in Action is good as well.
 
Jack Robertson
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:EJB 3 in Action covers JPA as well so I'd go with that. For Spring, Spring in Action is good as well.

So which one should I learn first, ejb,struts,hibernate or spring?
 
Jack Robertson
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
laura ding wrote:If I were you, I will learn Framework at first.


Agreed. I only asked cause one of my former teachers said EJB is like the guide for the frameworks but when I did my own research online they don't seem to share too much in common. Anyways just for the framework part, which one shall I study first? Can I learn spring first cause lots of java jobs seem to favour spring over the other two?
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I only asked cause one of my former teachers said EJB is like the guide for the frameworks

Other frameworks like Spring/Hibernate etc... simplifies the most of old EJB (prior to 3.0) programming model.
Anyways just for the framework part, which one shall I study first?

It may be your personal preference and/or any immediate work you are interested in and the framework(s) which is based on.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jack Robertson wrote:
Jeanne Boyarsky wrote:EJB 3 in Action covers JPA as well so I'd go with that. For Spring, Spring in Action is good as well.

So which one should I learn first, ejb,struts,hibernate or spring?

I'd learn Hibernate first. (Hibernate implements JPA so this fits my earlier advice.)
 
Jack Robertson
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:
Jack Robertson wrote:
Jeanne Boyarsky wrote:EJB 3 in Action covers JPA as well so I'd go with that. For Spring, Spring in Action is good as well.

So which one should I learn first, ejb,struts,hibernate or spring?

I'd learn Hibernate first. (Hibernate implements JPA so this fits my earlier advice.)

So how about struts? Is it necessary to learn struts 1.3? Can I learn struts 2 directly or after spring?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts 1 and Struts 2 are completely different. Struts 2 is based on webworks. You can learn Spring MVC without knowing anything about Struts.
 
Jack Robertson
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Struts 1 and Struts 2 are completely different. Struts 2 is based on webworks. You can learn Spring MVC without knowing anything about Struts.

Thanks. One more question, which framework is the most useful for jobs?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic