Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean Pooling EJB

 
Haroldo Nascimento
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the advantages of Bean pooling EJB (choice 2):
I have :
increase portability,
decrease alocation of memory
decrease number of DB connection
increase suport oriented object DB
thanks
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is too obvious. What do you think the answer is?
 
Haroldo Nascimento
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lasse,
Really, I dont Know the answers.
I think that portability is not the answer correct, because there is nothing relationship with other plataform.
Support to object oriented DB too (in my opinion) there is nothing relationship with DB.
than, my answer are (b) and (c). Maybe with a limit number of connection of pool (pool size), it limit the creating ilimited number of connection.
Is it true??? . Are the correct answer correct ?

I wait your validation.
Thanks
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How will decrease number of DB connection be the answer. We are talking about EJB pooling and not about connection pooling.
[ August 29, 2003: Message edited by: Pradeep Bhat ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm. I answered a bit too hastily, it seems. Sorry for that.
"Decrease allocation of memory" is very likely a correct answer because the pool limits the number of existing bean instances to a configured maximum and, on the other hand, creating bean instances happens only when exceptions force the container to remove an existing bean (if this counts as a "decrease").
Pooling EJB instances does not have anything to do with pooling database connections. At least as far as I can think of. The other two options are also definitely wrong answers.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
decrease alocation of memory - I am not convinced. The option needs to be repharsed. What do you think Lasse?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic