开发者

JBoss POJO Object pooling

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜