Hi,
my application is giving out of memory error.
i m using two models... E2work and Workdata.
and i want to add/update workdata on adding entry to e2work.
what i had done is, i added workdatamanager with setter in e2work action .
and in save method before saving im calling updateworkdata() method to save
data to workdata.
like
in my e2workAction.java
private GenericManager<E2work, Long> e2workManager;
private GenericManager<WorkData, Long> workDataManager;
.
.
.
public void setE2workManager(GenericManager<E2work, Long> e2workManager) {
this.e2workManager = e2workManager;
}
public void setWorkDataManager(GenericManager<WorkData, Long>
workDataManager) {
this.workDataManager = workDataManager;
}
.
.
.
.
public String save() throws Exception {
if(updateWorkData())
{
e2workManager.save(e2work);
}
return SUCCESS;
}
.
.
.
..
public boolean updateWorkData()
{
WorkData wd =new WorkData();
wd.setJobNO(e2work.getJobNO());
wd.setType(e2work.getType());
wd.setStation(e2work.getStation());
workDataManager.save(wd);
return true;
}
===================================
Is it a right process of doing it? if not please tell me the right way...
:-(
Waiting for your relpy...
I am Using Appfuse Struts2 recent version of appfuse.
Regards
Dipak
--
View this message in context:
http://appfuse.547863.n4.nabble.com/Out-of-memory-error-Is-this-is-a-reason-tp2955624p2955624.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]