About Java EE, Spring and Hibernate - java

Basically I want to learn this technology. I already know Java SE. My question is, what is a good start to learn Spring and Hibernate? Is the book Head First JSP and Servlets good or what?

My question is, where is the good start to learn Spring and Hibernate?
I'd recommend the Second of Edition of Spring in Action by Craig Wall (it covers both) and of course the Reference Documentation of Spring Framework.
Is the book Head First JSP and Servlets good or what?
It is. But not for the mentioned topics.

There are many topics under the Spring framework. The ones that I use most are - IOC, AOP, Transaction Management, and Spring JDBC. In order to grasp these concepts I used the spring website extensively and also read the Spring Recipes book. I coded the examples that were on the book and tried to convert an existing app in using the spring framework (like IOC and JDBC). The spring forum is very useful. An of course folks here at Stack Overflow are always willing to help.

I could recommend you Pro Spring 2.5 by Rob Harrop and Jan Machacek. It's quite easy to read and there are quite a lot of simple, but precise examples. And, of course, Spring has very good reference.
And if you want to know more about Hibernate, you should definetely take a look at Java Persistence with Hibernate. One of the author is Gavin King, creator of Hibernate, so while reading this book you're getting first hand knowledge.

The spring latest documentation is the good start for learning spring.
Since, spring has so many modules, you may initially get confused.
you can start spring core and can learn the rest of the modules as you go further.

Related

Java Spring and Hibernate development environment

Someone told me to learn Web devolpment in Java. So I come across Java Spring. But After exploring I came to know about "Spring and Hibernate development environment" And I am still confuse what is basic diff in it. And are there other frameworks of java etc ? In which wey do Spring MVC ? I am Php and python guy And New in Spring so kindly don't mind if I am wrong in asking question.
Hibernate provides a lot of feasibility while dealing with the database.
It provides with ORM where in you are able to perform database transaction is the form of objects mapped to corresponding table, using configuration xml files.
Spring, on the other hand is a framework that helps you follow the MVC architecture in an effective and efficient way.
It simplifies writing back end code as well as front end stuff providing clear demarcation simultaneously.

A sample enterprise standard Spring application with tutotrial

Can someone please help me find out an enterprise standard spring application with explanation tutorial
You should clarify what your experience level is with design patterns and web development. Typically, Java EE developers use Spring and already have prior knowledge of design patterns. If you don't understand design patterns, it may make learning Spring much more difficult, and in which case you should start by learning design patterns.
If you need quick tutorials with Spring examples, I'd suggest mkyoung's site. If you need a short introduction with a book, I'd suggest Just Spring, which is only 50+ pages and easy to get through. For a more extensive Spring-MVC/Hibernate book, I found Spring Persistence with Hibernate really helpful, because you can download source code of an entire Spring webapp from their website and get hands-on experience with the code. Even if you don't buy the book, I suggest you download the source code.
Here are videos that make you write spring apps step by step...
http://www.youtube.com/watch?v=GB8k2-Egfv0&feature=relmfu

Good example of use of JSF and Spring Architecture

I am trying to find a good example of use of JSF and Spring with installation instruction,But haven't been able to find something more than basic.
Can anyone direct me to nice examples?
Thanks,
Sid
java Beat : integrating-spring-and-jsf
jsf-2-0-spring-hibernate-integration-example
You can also check out Appfuse, http://appfuse.org/display/APF/Home, it has the whole enchilada: maven, security (acegi), webservices, hibernate search (lucene), caching (ehcache), JPA, annotations in JSF Managed Beans, transactions, templating (sitemesh), email, and lots of other useful stuff. I find it a bit too complex, not so sure if it uses the best available components for JSF, but it's an application skeleton for the real world.
See the reference at http://appfuse.org/display/APF/Reference+Guide

What is the prerequisite when try to learn the spring or struts framework?

I think these technologies are really prior to java industry
A good knowledge of Core Java, Servlets and JSP is pretty much more than enough you need..
I'm not sure about struts, but for Spring, it helps to know about dependency injection and inversion of control, XML, and JavaBeans.
If I had to recommend a book, it would be Spring in Action
UPDATE
It's been pointed out to me that Spring in Action is about Spring 2.0, which it is. Spring 2.0 is almost four years old. Spring's first-party documentation makes wonderful reading. Check out the reference documentation for great prose and the Javadocs if you need more in-depth information.
In my opinion, the Spring in Action book is a bit behind the times now (Spring 2.0) and doesn't include any of the nifty new features in 2.5 or 3.0. I would start with the spring documentation.
Only in reference to Spring.
If your not familiar with dependancy injection, then spend a bit of time reading. I'd also suggest that your java knowledge includes being comfortable with Annotations, Reflection and even Aspect orientated programming. Most Spring books fail to keep pace, so unless your forced to use a particular version Spring 3.0 should be your starting point as this has many additions which can save a lot of time.
In reference to spring it is mandatory to have a little knowledge of J2SE, J2EE(Servlets, JDBC little bit), XML Schema and rest of the things you can learn while studying Spring Framework. Most of all JAVA knowledge is required :)

Helping a beginner for java web application

I have pretty big background of .net, and I've decided that i want to port one of my websites to Java. (now with the asp.net MVC craze, I've figured I'd better learn a more mature approach to MVC).
i've downloaded eclipse (easyeclipse distro to be exact, and am ready and willing to develop my first website in java).
i've programmed j2me application before, so i know the language and some of the framework.
can someone guide me? any advice?
Although I'm not very aware of "asp.net mvc" is all about, I would suggest you to take a look at Spring it may be interesting.
Probably is too complicated at the beginning but when you get the concept it turns out very easy to follow.
Spring has 5 core modules ( which I don't remember exactly ) but they were like:
AOP
ORM
MVC
Core
( some other I'm missing here )
The MVC part uses a lot of annotations to make life easier. There's a very big community around Spring.
Here's an introductory article about spring.
Java has a ton of frameworks you can choose from. The technology stack that I use for my Java development is either:
Spring for IoC.
Hibernate for the data layer.
Struts2 for the MVC framework.
I have also swapped out spring and used Guice for the IoC.
Spring also has MVC, but I tend to like Struts2 better.
I'd recommend looking at Grails, it lets you become comfortable with all the java libraries and frameworks like Spring, SpringMVC, Hibernate, SiteMesh, and so on but gives you a much better DSL for web applications and much more concise code with the Groovy language (think of it as Java with dynamic typing, blocks, closures, and so on).
If you'd rather stick to pure Java I'd recommend looking at the Stripes framework and the following book:
http://pragprog.com/titles/fdstr/stripes
If you interested in web applications specifically, I would recommend using MyEclipse http://www.myeclipseide.com. Basically, this is a version of eclipse with all the web server integration and functionality built in. I've been using it for a few years and it's much easier to develop with than with plain vanilla eclipse. Depending on how much your going to use it, you have to decide whether the $55 annual subscription is worth it for you.
I'm a little confused. does spring framework actually a full blown framework? doesn't Java already have a framework? (by framework i mean all those misc libraries).

Categories

Resources