Professional Java Development With The Spring Framework [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Professional Java Development With The Spring Framework [Electronic resources] - نسخه متنی

Rod Johnsonet

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید








Chapter 11: Spring and EJB



Overview


This book has so far focused on Spring as a lightweight container, running in a J2EE application server or outside. We have not yet discussed where EJBs come into the picture. Whether by choice, or for legacy reasons, it may make sense to use Spring in concert with EJBs. This chapter will focus on providing you with the information needed for you to do this in the most effective fashion.

We'll cover:



Singleton style access to shared application contexts and bean factories, via Spring's SingletonBeanFactoryLocator and ContextSingletonBeanFactoryLocator. While EJBs have the most use for a mechanism like this, you may come upon other glue code in your application that also has no other way to get to a common Spring container, and needs to use this approach. Even if you do not read the rest of this chapter, it’s worth reading this section.



Deciding on the actual need for EJBs.



Spring's JndiObjectFactoryBean for encapsulating Home object lookup.



Spring's local and remote Stateless Session Bean proxies for encapsulating lookup and access of EJB homes and EJB instances, eliminating the need to write EJB API-specific Java code when invoking EJBs.



Spring's abstract convenience base classes for implementing EJBs.



Some high-level strategies for testing EJBs.



/ 188