• Post Reply Bookmark Topic Watch Topic
  • New Topic

how many beans?????

 
subramaniam gomatinayagam
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi iam involve in a ejb project.since it's a new technology
all of us are learning it and hence the design is getting little tough. we have decide to use session beans only and my question is if we try to put too many beans in the container will it hinder the performance? or do we put all the business logic in to beans.
will there be a difference in performance between too many instances of the same bean and many beans in the container?
 
subramanian_k
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
As I understand, the EJB design very much depends upon the following details:
1.Application server you are using
Each application server is strong in some areas like human beings. For example, Weblogic is having JDBC Type Driver 4 for Sqlserver and informix and we can expect the database access will be faster and naturally support Entity beans better. So you may divide the Entity beans smaller also as we will be using connection pooling with better JDBC driver and it is preferable to have small bean doing small jobs and we do not clog the system.
I am just making one point but you may have to go through the documents to find out the good points of the App server you are going to use, then you can decide what to do regarding dividing of beans.
2. the database vs. server capacity,
If the database size is smaller compared to server capacity the whole database will be moved to memory and it will have an impact.
3. To my knowledge java class will be faster and using Ejb bean is likely to be slower.
I hope this helps you.

Regards,
K.Subramanian

 
subramaniam gomatinayagam
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks yaar
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your contribution but please note that The Java Ranch has a naming policy, described here and "subramanian_k" is not a valid name. Please choose one which meets the requirements.
Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!