struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Håkan Jacobsson <hakan.jacobsso...@comhem.se>
Subject Struts2 with JPA/Hibernate using Spring
Date Wed, 27 Aug 2008 18:29:59 GMT
Hi,

I have a Struts2 web application. I'm using Spring (for autowiring of 
dependency injection) to integrate JPA and Hibernate in the web app.
It's working fine.  
Now I need to separate the JPA/Hibernate classes into a
separate jar file (the web app will have this jar file as a dependency).
How should I configure this? So far, I have my applicationContext.xml and 
persistence.xml files in the web app. Should those files now be put in the 
separate jarfile? Do I need to make other configuration changes to the web app?

I'm a newbie to both Spring and web app configuration. Any help much 
appreciated!

/best regards, Hakan Jacobsson - System developer in Sweden


/MVH, Håkan Jacobsson 

######################## 

Torsvikssvängen 52, 1/2 tr. 
181 34 Lidingö 
tel:    08-765 84 37 
mob: 076-272 53 85 

########################


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


Mime
View raw message