I am using a entity bean developed by my colleague. It has a finder method in Home interface which returns an Enumeration. The problem is if I pass a particular value to that method it will satify more than 50000 rows of the database. Will it create that no. of EJBObject and beans. If yes then it will create a huge memory load on Application server. Is there a way where I can restrict the Application server not to create more than a fixed no. of beans.
Ashish
Discussions
EJB programming & troubleshooting: How to restrict no. of beans returned by finder method
-
How to restrict no. of beans returned by finder method (4 messages)
- Posted by: Ashish Agrawal
- Posted on: August 20 2001 13:20 EDT
Threaded Messages (4)
- How to restrict no. of beans returned by finder method by Pranab Ghosh on August 20 2001 15:19 EDT
- How to restrict no. of beans returned by finder method by Vijay kumar on August 21 2001 02:21 EDT
- How to restrict no. of beans returned by finder method by Marina Popova on August 21 2001 15:01 EDT
- How to restrict no. of beans returned by finder method by Vijay kumar on September 04 2001 11:11 EDT
- How to restrict no. of beans returned by finder method by Marina Popova on August 21 2001 15:01 EDT
-
How to restrict no. of beans returned by finder method[ Go to top ]
- Posted by: Pranab Ghosh
- Posted on: August 20 2001 15:19 EDT
- in response to Ashish Agrawal
One way that I can think of is to use BMP for the entity bean. That way, you have direct control at the SQL level and you can restrict number of rows returned from the query.
Pranab -
How to restrict no. of beans returned by finder method[ Go to top ]
- Posted by: Vijay kumar
- Posted on: August 21 2001 02:21 EDT
- in response to Ashish Agrawal
Atleast in weblogic, there's a way to restrict the number of beans directly thru CMP. if you want to handlimit the no. of beans , you could do it by specifying it in the xml deployment descriptor.
vijay -
How to restrict no. of beans returned by finder method[ Go to top ]
- Posted by: Marina Popova
- Posted on: August 21 2001 15:01 EDT
- in response to Vijay kumar
Hi,
Could you give clarify where exactly you can specify the number of beans returned in the collection? What descriptor file and what elements?
Thanks,
Marina -
How to restrict no. of beans returned by finder method[ Go to top ]
- Posted by: Vijay kumar
- Posted on: September 04 2001 11:11 EDT
- in response to Marina Popova
<max-beans-in-cache>XX</max-beans-in-cache>
this is to be done in the weblogic_ejb_jar.xml file.
regards
vijay