project structure spring + struts + ejb + jpa
diagram:
entity on the map with lazy loading will cause no sesssion or session has closed errors.
join in web.xml
but it is reported not find entityManagerFactory. How spring should be configured ?
how to solve this problem ?
------ Solution ------------------------------------ --------
have some academic significance. Experts expect it.
------ Solution ---------------------------------------- ----
Following
------ Solution - -------------------------------------------
can take a break the method set to non- lazy loaded, but the depth is set to 2 , this will solve most problems.
let them go check the rest of the
------ For reference only -------------------------- -------------
complement one , action was into war in , session bean into the ejb jar, even though all of them deployed in the same jboss , the above error is still reported .
------ For reference only -------------------------------------- -
Haha , and give you a
------ For reference only ---------------------------- -----------
did not have time to wait for a project tight ah
------ For reference only -------------------------- -------------
back to guide the work of the guidance it
------ For reference only ----------------------------- ----------
Haha , and give you a
3q
------ For reference only --------------------------------- ------
Haha , and give you a
3q
rude
can also be set for all the lazy loading are all manually loaded. many-one, a unilateral increase in the multi- id, manual control .
If it involves the efficiency problem, you can try to add a layer of cache.
没有评论:
发表评论