Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity bean performance  RSS feed

 
Arun Prasath
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi buddies,

I have doubt in entity beans' performance issues.
I heard that too much of entity beans reduce the performance of an application.
But generally, when there are too much of users, it is better to develop an application with EJB.

So, there will be more session and entity beans as that of number users or operations..
how come it is said to slam the performance? ( it could be rumour also)

please anyone answer me...!!
 
Arun Prasath
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

why there is no reply for my question?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37261
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Arun Prasath:
I have doubt in entity beans' performance issues.
I heard that too much of entity beans reduce the performance of an application.
But generally, when there are too much of users, it is better to develop an application with EJB.

Note that are two concepts. Session beans definitely have benefits with lots of users. Entity beans are often used in ways that cause poor performance by causing more frequent database accesses.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear in mind that performance depends partly on the EJB server being used. Queries do not always have to be made against the database because some servers support read-only entity beans which typically perform three to four times faster than read-write transactional entity beans.

If stale data is tolerable, usually because it is updated infrequently or not at all, then primary key-based reads can be performed against a local entity cache that is invalided on a timer basis.
 
Jesus Angeles
Ranch Hand
Posts: 2070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Arun Prasath:
Hi buddies,

I have doubt in entity beans' performance issues.
I heard that too much of entity beans reduce the performance of an application.
But generally, when there are too much of users, it is better to develop an application with EJB.

So, there will be more session and entity beans as that of number users or operations..
how come it is said to slam the performance? ( it could be rumour also)

please anyone answer me...!!


Hi Arun,

To which are you comparing entity beans performance against? Which other database layer system are you comparing it to?

For EJB 3, if a query generated by JPA implementation has a poor performance, you can define your own query, that you think will perform faster.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!