Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in ejb instance  RSS feed

 
dhanan sekaran
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If i have 10000 rows in a table , container will create 10000 instance of entity bean, each instance representing a row, does the container creates the instance when it loads?or depends on request?
my second question , iam accessing a entity bean from my servlet, first i will look up the bean to get reference of home interface, then i get reference of remote interface, then i will do buisness operation, suppose if 1000 request comes to a servlet, 1000 reference for home object created or one reference created and it will be used in each request,
ie) for every request reference of home object will be same and will be created for every request? suggest me.
Thanx,
dhana.
 
Dana Hanna
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
woah - I think that you are lost...
Check out an EJB tutorial. See the last post...
The container doesn't care about how many rows are in your DB...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!