How do EJB and Web Services relate together? Are Web Services a replacement for EJB?

Robert Castaneda

Web Services can be thought of as a wrapper that can be used to allow EJB's to invoke external services and also to allow external services and clients to invoke the EJB's. A major strength of Web Services is in the integration of the J2EE platform with the Microsoft .NET platform. Using Web Services allows, for example, Microsoft Visual Basic clients to access EJB's as clients.

Some products such as IBM WebSphere and BEA WebLogic already support Web Services inside there Application Servers.