Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes Bean Pooling EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Bean Pooling EJB" Watch "Bean Pooling EJB" New topic
Author

Bean Pooling EJB

Haroldo Nascimento
Ranch Hand

Joined: Aug 14, 2003
Posts: 79
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
This is too obvious. What do you think the answer is?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Haroldo Nascimento
Ranch Hand

Joined: Aug 14, 2003
Posts: 79
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

Joined: Feb 27, 2002
Posts: 8919

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 ]

Groovy
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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

Joined: Feb 27, 2002
Posts: 8919

decrease alocation of memory - I am not convinced. The option needs to be repharsed. What do you think Lasse?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Bean Pooling EJB