This content has been marked as final.
Show 2 replies
-
1. Re: Session Bean vs. POJO
peterj Apr 24, 2008 11:26 AM (in response to hbpost)There is only one difference that I can think of.
The app server maintains a pool of EJBs. The EJBs are reused for every web service request. Thus is your web service has to do some initialization, it will do it only once and can then service multiple requests. Of course, if the EJBs are not used they can time out and be removed from the pool.
For POJO web services, a new instance is created for each call. Thus if you need to do initialization, it happens for every request.
See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=105344 -