Chapter 7. Scenario: Synchronous stateless (WebSphere producer and .NET consumer) 313
container, whereas a standard Java bean Web Services would have to
specifically consider how to handle such events.
Transactions are another example. The EJB endpoint runs in the transaction
context of its EJB container, and thus the service’s business logic can also run
under the transaction context as defined by the EJB container. If transactions
were required using a standard Java bean Web Service, the transaction handling
logic would have to be implemented manually. Therefore, a heavily transactional
Web Service would be better designed using EJBs and exposing the Web
Service through an EJB Web Service endpoint.
Creating an EJB Web Service using WebSphere ...