struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jari Fredriksson <ja...@iki.fi>
Subject Re: JPA with Struts 1
Date Tue, 11 Jan 2011 18:57:26 GMT
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.

-- 

You should go home.


Mime
View raw message