1) Can anybody please share Pros/cons (In an EJB centric application) of calling an intranet, light & synchronous web service from web tier v/s stateless session bean?
I can start with my understanding: putting web service call in SLB would help in scaling the solution whereas calling from web tier is handy and saves the trip to business logic tier in some cases so I would prefer to call from web tier specially when performance is the key.
What if performance and scalability both are keys?
2) Same question for putting the messages on JMS Queues/Topics: from web tier or SLB. I would do it directly from web tier and process the messages in EJB tier.
i think that adding an additional layer, like EJB, for read-only web service data, if there are no strong messaging, security and transactional requirements, could be uselessly weighty.
in this scenario not using EJB:
- it not affects the scalability (data are not stored in session, right?)
- it affects very the performance (calling web service directly from JSF or servlet)
GiUsEpPe (SCJP, SCWCD, SCBCD, IBM OOAD, SCEA/OCMJEA 5)