posted 21 years ago
Hi all,
In using WL 6.1 SP4 and I have a method in one facade session bean (with CMT and Required transaction level) that receives a Collection of InvoiceVO to insert them in the database. The max-beans-in-cache property of the InvoiceEJB entity bean is set in 100. When I pass a Collection with more than 100 invoices, the server insert the firsts 100 invoices and throws an weblogic.ejb20.cache.CacheFullException.
Why Weblogic has this behavior, and how can I tell it to change this behavior.
The following is the code of the facade method:
public void loadInvoices(Collection colInv)throws FacadeException {
try{
Iterator iterRec=colRec.iterator();
while(iterRec.hasNext)){
InvoiceVO invVO=(InvoiceVO)iterRec.next();
getInvoiceLocalHome().create( //entity bean
invVO.getInvNumber(),
invVO.getInvCustomerName(),
invVO.getInvDate(),
invVO.getInvAmount(),
......,
......);
}
}catch(Exception e){
throw new FacadeException();
}
}
[ January 02, 2003: Message edited by: Cristian Cardenas ]