-
1. Re: ? jboss doesn't scale well with lots of entity bean
dsundstrom Dec 12, 2001 4:57 PM (in response to edwu00)What version are you using?
Based on the information about you specific problem. I would recommend using a Stateless Session bean with bean managed transactions for your batch import. This way you can exactly control the size of the import batch. If you don't know how to use bean managed transactions I would buy the O'Reilly EJB book. As a side not, your database may the culprit here. Some databases have problems with huge ammonites of data in an uncommitted transaction. -
2. Re: ? jboss doesn't scale well with lots of entity bean
edwu00 Dec 12, 2001 5:45 PM (in response to edwu00)Thanks for the reply.
I am using this version:
JBoss-2.4.1_Tomcat-3.2.3
Is it possible to remove an entity
object without destroy the data in
the database?
Thanks.
Ed Wu -
3. Re: ? jboss doesn't scale well with lots of entity bean
andreas Dec 13, 2001 4:11 AM (in response to edwu00)Increase the max cached beans in standartjboss.xml
<cache-policy-conf>
...
<max-capacity>20000</max-capacity>
and increase the transaction timeout in jboss.jcml -
4. Re: ? jboss doesn't scale well with lots of entity bean
janheise Dec 13, 2001 1:15 PM (in response to edwu00)an entity-bean and the row in the table of your db are the same. the one does not exist without the other.
-
5. Re: ? jboss doesn't scale well with lots of entity bean
rakhbari Jan 11, 2002 6:31 PM (in response to edwu00)This is one area where CMP won't do. I have an exact same requirement that when ejbRemove() is called on one of my EBs I want the record tagged as "deleted" but I don't want the row removed from the DB. This is an instance where you have to resort to A BMP EB.
Ramin -
6. Re: ? jboss doesn't scale well with lots of entity bean
ninki Jan 21, 2002 5:25 AM (in response to edwu00)Ramin,
One trick/pattern we often use is to have a history table. When an insert is done on the main table, a copy is written to the history table via a trigger. There's also a trigger on update and delete. The history table needs two extra columns, valid_from and valid_to timestamp. This is handy for auditing and data warehousing. Also, the main table is kept small, and at least with Oracle, you can have the history table in another DB, with lots of extra indicies, etc...
Ciao,
Ninki