From last year, web service become more and more hot. Basically its function overlapped with that of
EJB a lot. But it have a lot of advantages than EJB:
1. It is over http, smtp so it can go through firewall. But EJB can not
2. It is lighter than EJB. So it runs faster.
3. It is easier to develope and use than EJB
4. It is based on XML, so it is vender independent. Which means J2EE can communicate with .Net product easily.
Where EJB will sit in the future?