This entry was posted on March 4, 2008 at 10:51 am and is filed under Developer, Java.
.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
10 Responses to “Annotation Driven JSF-Spring-JPA”
Good post! We are working on a similar thing for JPA, JSF and Spring 2.5. We are writing a series of articles for IBM devWork on combing the three tehnologies.
Tags are not appearing for me in all your references to xml files in this tutorial. I tried viewing this page on Safari 3.0 & Firefox 2.0 for Mac OS 10.5.
Can you escape these tags so I can see what goes where?
Merhabaler Çağatay Bey,
Öncelikle elinize sağlık güzel bir çalışma olmuş.
projeyi deniyorum ama şöye bir hata aldım neden olabilir. uzun olmasın diye sadece ilgili datırı yazıyorum
Teşekkürler
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No persistence unit with name ‘moviestore’ found
Because of @Transaction: from the spring reference manual: “you must annotate the implementation class (and/or methods within that class), not the interface”
Always nice to see a post detailing the JSF/Spring/JPA stack (YES, ’standard’ and ‘non-standard’ technologies can definitely co-exist). We are actually refactoring an existing application (Struts + J2EE 1.4) to an annotation driven JSF/Spring/JPA architecture, and so far the experience has been gratifying (especially from a configuration standpoint - it is a complete myth that Spring is XML heavy).
I highly recommend (if not turned off by JSF) to look into JSF/Spring/JPA and/or Seam as viable options.
March 4, 2008 at 6:59 pm
Good post! We are working on a similar thing for JPA, JSF and Spring 2.5. We are writing a series of articles for IBM devWork on combing the three tehnologies.
Good stuff Catagay. Thanks. You rock!
March 13, 2008 at 3:07 pm
Nice post. Quick question - how do you define ‘ID’ in GenericDAO:
T loadById(ID id);
March 16, 2008 at 6:15 pm
Tags are not appearing for me in all your references to xml files in this tutorial. I tried viewing this page on Safari 3.0 & Firefox 2.0 for Mac OS 10.5.
Can you escape these tags so I can see what goes where?
March 20, 2008 at 9:43 am
Merhabaler Çağatay Bey,
Öncelikle elinize sağlık güzel bir çalışma olmuş.
projeyi deniyorum ama şöye bir hata aldım neden olabilir. uzun olmasın diye sadece ilgili datırı yazıyorum
Teşekkürler
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No persistence unit with name ‘moviestore’ found
March 26, 2008 at 6:20 am
Because of @Transaction: from the spring reference manual: “you must annotate the implementation class (and/or methods within that class), not the interface”
March 27, 2008 at 8:37 pm
Always nice to see a post detailing the JSF/Spring/JPA stack (YES, ’standard’ and ‘non-standard’ technologies can definitely co-exist). We are actually refactoring an existing application (Struts + J2EE 1.4) to an annotation driven JSF/Spring/JPA architecture, and so far the experience has been gratifying (especially from a configuration standpoint - it is a complete myth that Spring is XML heavy).
I highly recommend (if not turned off by JSF) to look into JSF/Spring/JPA and/or Seam as viable options.
Cheers.
March 28, 2008 at 6:35 pm
Updated entry, add syntax fixes, html escapes and more…
March 30, 2008 at 8:48 pm
Easy
perfect
thx
http://www.skilline.com
April 3, 2008 at 2:11 am
If you get some noise from maven about not being able to find the jta jar see this.
June 3, 2008 at 3:12 am
Toucan says : I absolutely agree with this !