[jboss-user] [JBossWS] - Re: Session Bean vs. POJO
PeterJ
do-not-reply at jboss.com
Thu Apr 24 11:26:14 EDT 2008
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146549#4146549
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146549
More information about the jboss-user
mailing list