• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which shall I learn first, EJB or Framework?

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm about to finish servlets and jsp, what shall i do next? EJB or Frameworks like spring,hibernate?
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, any book to recommend?
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic