PDA

View Full Version : share hibernate entities between LCDS and BlazeDS



vlad2005
Jun 9th, 2009, 02:58 PM
Now, because some problem unresolved, i run LCDS and BlazeDS on same Tomcat server. But i want to use hibernate entities from LCDS (that are java annotated classes), in BlazeDS. It's possibil that?
My directory structure it's bellow:


webapps___
|
lcds__
| |
| WEB-INF___
| |
| classes____
| | hibernate.cfg.xml
| |
| lib__....there are java classes deployed as jar's.
|
|
blazeds____
|
WEB-INF___
|
web.xml
applicationContext.xml

In applicationContext is instantiate bean sessionFactory with class org.springframework.orm.hibernate3.annotation.Anno tationSessionFactoryBean.
Hibernate.cfg.xml contain config files for hibernate, and mapping classes.
Or, what can do, to use same java classes in lcds and blazeds, without need to deploy into everything context?