Java Reference
In-Depth Information
container informing it whether a method is doing a read or a write; the default assumption
is a write. With asynchronous session beans, you learned how you could annotate methods
to cause them to be spawned into a separate thread. Using the Future interface you can
defer retrieving resources until later. Asynchronous session beans aren't the fourth type but
merely an annotation that you can use with stateless, stateful, and singleton session beans.
You learned about the different types of business interfaces. Stateless session beans support
local, remote, and web services interfaces. Web services can be exposed via JAX-RPC (leg-
acy), JAX-WS (SOAP), and JAX-RS (REST). We showed you that dependency injection
simplifies the use of EJB and saves you from having to perform complex JNDI lookups.
At this point you know all of the basic pieces necessary to build the business logic portion
of your application using stateless, stateful, and singleton beans. In the next chapter we'll
discuss how you can build messaging applications with message-driven beans.
Search WWH ::




Custom Search