开发者

JBoss POJO Object pooling

开发者 https://www.devze.com 2023-03-27 04:42 出处:网络
I am using a POJO (Non-EJB) class inside my JBoss server and creating multiple开发者_运维百科 instances of it. Will JBoss create an object pool and manage this resource or will it simple create as man

I am using a POJO (Non-EJB) class inside my JBoss server and creating multiple开发者_运维百科 instances of it. Will JBoss create an object pool and manage this resource or will it simple create as many objects as I instantiate ?


Plain Old Java Objects are "unmanaged" the container has no way to know that when you say "new" you don't really mean "new".

EJBs have managed life cycles, are trivial to implement. If you want pooling why not use one?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号