struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <>
Subject Re: JPA with Struts 1
Date Tue, 11 Jan 2011 19:02:44 GMT
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:
All you could possibly want is here:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message