On 1/11/2011 1:57 PM, Jari Fredriksson wrote:
On 11.1.2011 18:07, Anjib Mulepati wrote:
Can I use JPA with Struts 1?

If yes is there any good tutorial I can look into?
I have used it so that I manipulated all JPA objects in a EJB 3.x
Session bean, which was called from Structs Actions.

Session bean Dependency Injection does not work from Struts 1.x modules,
you have to create some kind of a "factory" or other loader for the
Session beans. Basically JNDI calls, and very EJB container specific.

But Persistence API works then fine in the Session bean.
JPA is independent of web framework, so yes, you can use it. As such,
any JPA tutorial should do the trick. The first Google hit looks decent



Frank W. Zammetti
Author of "Practical Palm Pre webOS Projects"
and "Practical Ext JS Projects with Gears"
and "Practical Dojo Projects"
and "Practical DWR 2 Projects"
and "Practical JavaScript, DOM Scripting and Ajax Projects"
and "Practical Ajax Projects with Java Technology"
(For info: apress.com/book/search?searchterm=zammetti&act=search)
All you could possibly want is here: zammetti.com

To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›



site design / logo © 2016 Grokbase