This content has been marked as final.
Show 3 replies
-
1. Re: dashboard caching isssue
chris.simons Nov 13, 2008 2:36 PM (in response to bala.bala_kuppuraj.yahoo.com)bala,
You need to look into two things...
1) Make sure you are calling entityManager.flush() in the case that you have flush-mode="manual". I.e. make sure the data is actually committed.
2) Read up on entityManager.refresh(object).
-
2. Re: dashboard caching isssue
bala.bala_kuppuraj.yahoo.com Nov 14, 2008 5:34 AM (in response to bala.bala_kuppuraj.yahoo.com)@Name("dashboard")
@Scope(ScopeType.SESSION)
public class Dashboard
{
@In private User user;
@In private DashboardDAO dashboardDAO;
private obeject[]companyStats;
@Create
public void getDashboardReports() throws DatabaseException a\
{
long companyId '=' user.getCompanyId();
companyStats '=' dashboardDAO.getCompanyStats(companyId);
} -
3. Re: dashboard caching isssue
bala.bala_kuppuraj.yahoo.com Nov 14, 2008 5:36 AM (in response to bala.bala_kuppuraj.yahoo.com)This is code actually i am getting problem. can give solution for this code.
@Name("dashboard")
@Scope(ScopeType.SESSION)
public class Dashboard
{
@In private User user;
@In private DashboardDAO dashboardDAO;
private obeject[]companyStats;
@Create
public void getDashboardReports() throws DatabaseException a\
{
long companyId '=' user.getCompanyId();
companyStats '=' dashboardDAO.getCompanyStats(companyId);
}
</blockquote>
Click HELP for text formatting instructions. Then edit this text and check the preview.