All,
I get cachefullexception while I try to do
EJB create. I get this even after setting the <max-beans-in-cache>200</max-beans-in-cache> for entity beans.
Can anyone give suggestions.
Detailed explanation of the problem.
I have to put message on to a JMS queue. But before sending the message to the queue I have to persist the data so I create that many instances of objects value objects and then call the ejbCreate simultaneously to insert into database in a loop which is when I get cachefullexception when I try to send 5000 messages.
So,
I want to do it in batches in order to insert into database in batches. So, that I can avoid the cacheException.
I am not able to figure out a way to do it.
I need suggestions to avoid cachefullexception and also to do inserts in batches. If anyone has faced similar problems please help me.
Thanks in advance.