Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Small bean vs Big Bean

Status
Not open for further replies.

samkal

Technical User
Jun 24, 2008
41
0
0
US
Can someone explain what is small bean and what big bean?What are the pros and cons of using them in an application? Will appreciate it
 
No obvious difference in performance when you are referring to
JavaBeans on Application Server (Assume your bean class do not look like serveral Mega bytes.)

When you are refering to Data Access Object in EJB 2.0 and the dao is huge in size, there can obvious drop in performance. For the dao with a lot of setter and getter and attributes, it is called fine-grained. It will create more network load if you always use lots of fine-grained dao.

The opposite of fine-grained is called coarse-grained.
 
Thanks! When should we prefer to use small beans over big beans. In addition, is there any security issues using beans. If yes what is it that we need to take of in our coding. Will appreciate your input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top