Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

urgent  RSS feed

 
ramamohan gulla
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I was working on some Entity Bean and was just wondering with following:



class variable retrieveDeclineRecordsOnly is correct value in ejbFindBy..() method. But in ejbLoad() method it is having the old value.
How can i get the correct value of retrieveDeclineRecordsOnly in ejbLoad() method?

public ContributionEntityKey ejbFindByProfileIdContractId(ContributionEntityKey primaryKey, int noOfRecords)
throws FinderException {

// some bussiness logic here
this.retrieveDeclineRecordsOnly = noOfRecords;
return primaryKey;
}

public void ejbLoad() {
ContributionEntityKey key
= (ContributionEntityKey) getEntityContext().getPrimaryKey();
if (this.retrieveDeclineRecordsOnly != 0) {
this.declinedProcessedRemarks = this.deferralDAO.getAccountManagementDeferralDeclinedData(
key.getProfileId(), key.getContractNumber(), retrieveDeclineRecordsOnly);
this.retrieveDeclineRecordsOnly = 0;
}
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ramamohan gulla welcome to Javaranch .
Firstly please EaseUp, mentioning urgent in the subject wont really help you instead consider using a meaningful subject line.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!