Cagatay Civici’s Weblog

“Real power can’t be given, it must be taken”

Annotation Driven JSF-Spring-JPA

Posted by cagataycivici on March 4, 2008

I’ve moved my blog, the link for the actual post is;

http://www.prime.com.tr/cagataycivici/?p=82

10 Responses to “Annotation Driven JSF-Spring-JPA”

  1. Rick Hightower Says:

    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!

  2. Doug Says:

    Nice post. Quick question - how do you define ‘ID’ in GenericDAO:


    T loadById(ID id);

  3. Chris Says:

    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?

  4. Hasan Basri Says:

    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

  5. Torsten Liermann Says:

    Because of @Transaction: from the spring reference manual: “you must annotate the implementation class (and/or methods within that class), not the interface”

  6. Johnny Mongiat Says:

    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.

  7. cagataycivici Says:

    Updated entry, add syntax fixes, html escapes and more…

  8. skilline Says:

    Easy
    perfect
    thx
    http://www.skilline.com

  9. Gavin Terrill Says:

    If you get some noise from maven about not being able to find the jta jar see this.

  10. toucan Says:

    Toucan says : I absolutely agree with this !

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>