ARe you sure this is a Stateless Session Bean problem and not a Hibernate/EM
problem?
to me this:
CompanyPO company = dao.FindCompanyByCvrNo(companyTO.getCvrNo());
Collection branches = company.getBranches();
looks different than this:
CompanyPO company = em.find(CompanyPO.class, companyTO.getId());
Query q = QueryFactory.createSignedBranchQuery(em, company);
Collection resultList = q.getResultList();
is dao.FindCompanyByCvrNo() simply doing em.find()? and that's it? The
examples are different as in the 1st you are lazily fetching the branches via
the getBranches() method while in the second you are fetching queries via EJBQL
ARe you sure this is a Stateless Session Bean problem and not a Hibernate/EM
problem?
inline dao.FINDCompnayByCvrNo and tell me if you have the same performance
problems.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937214#3937214
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937214
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user