Forums Register Login

How many Entity Beans required

+Pie Number of slices to send: Send
I want to insert 1000 records in a transaction so how many entity beans is required, can i do this for a single entity, it causes performance issue.
+Pie Number of slices to send: Send
Depends on the server vendor could be one or many, entity beans can be pooled like session beans.
+Pie Number of slices to send: Send
Hi Yog,


I want to insert 1000 records in a transaction so how many entity beans is required, can i do this for a single entity, it causes performance issue.


Weblogic for example pools entity ejbs and caches them at the same time. There is however a difference between bean instances in the pool and those cached: unlike pooled instances, the beans in the cache are associated with a client. Of course there is more than that, but I'll consider only this one for now. Beans in the cache could be either in an ACTIVE or READY state. Ready bean are eligible for passivation/activation at any time, using either an LRU or NRU algorithm. Those active are enlisted in a transaction and could not be passivated. Concluding I�ll tell you that in your case if you create 1000 beans within the same transaction, then I have reasons to believe that your container will create exactly 1000 bean instances. Of course different container vendors might have different strategies, but I�d rather expect a behavior similar to the one that Weblogic provides than otherwise. Usually capacity planning and early application profiling could avoid or identify this kind of problems.
Regards.
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 683 times.
Similar Threads
Websphere transactions
Persistence : third-party ORM's vs EJB 3.0 CMP
live customer project involving entity beans
Session Beans & Entity Beans together
Any GUI tool to show EJB info reading from a EJB dep. desc.?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:21:48.