Assume that an existing application implements the interface and bean in Listings 1 and 2.
假定现有的应用程序实现了在清单1和2中的接口和Bean。
Part 2 of this article will explain in depth how Spring manages to instantiate each bean in its respective scope.
本系列的第2部分将深入阐述Spring如何完成在bean各自的作用域中实例化bean。
Since the portlet is being designed using a Model 2 JSP Architecture, the bean plays an important role in our design.
由于portlet是用Model2JSp体系架构设计的,所以该bean在我们的设计中起着很重要的作用。
I've barely scratched the surface of JSF 2 features so far, with managed bean annotations, simplified navigation, and support for resources.
到目前为止,我仅仅触及了JSF2特性中最浅显的内容,包括托管bean、注释、简化导航和资源支持。
Repeat steps 2 through 5 to mark those methods in the TransactionHistory CMP bean that use stored procedures as pushdown methods.
重复步骤2到步骤5,给TransactionHistoryCMPbean中的那些将存储过程作为叠加方法的方法做上标记。
The Annotated Data Binding (the first line in Listing 2) allows bean properties to be declared as component attribute values so that the view and model are automatically kept in synch.
带注解的数据绑定(清单2中的第一行)允许将bean属性声明为组件属性值,这样视图和模型就会自动保持同步。
Figure 2 shows that this framework builds a bridge between the database and the "Bean parts."
图2展示了此框架在数据库和“Bean部分”之间建立了连接。
But because the focus of this article is on defining, calling, and displaying the results of an EJB 2.x session bean method, we kept this Cancel callback behavior simple.
但是由于这篇文章的重点是定义,调用,以及显示一个EJB 2sessionbean方法的结果,我们简单地阻止了这个Cancel回调行为。
To obtain the updated values entered by the user, Listing 2 provides the required form bean structure.
要获取用户输入的更新值,清单2提供了必要的表单bean结构。
Step 2: Fetching an insecure bean from the application context.
步骤2:从应用程序上下文中取回不安全的bean。
In this section, I build a bridge between the "Bean" and "GUI" layers from Figure 2 in order to refresh the dynamic parts of the Web page.
在本节中,为了刷新页面的动态部分,我在图2所示的“Bean”和“GUI”层之间建立起了一种联系。
Finally, the proxy creator creates an instance of a class named Cglib2AopProxy, passing all the bean names (from Step 2) and the interceptor (from Step 3) to the Cglib2AopProxy class.
最后,代理创建器创建一个cglib2aopproxy类的实例,将所有bean名称(步骤2)和拦截器(步骤3)传递到cglib2aopproxy类。
After EJB 2, the entity "home" could be used to serve the same purpose — eliminating the need for the extra session bean component in cases where there is an entity that represents the user role.
有了EJB2之后,“Home”实体可用于相同的目的——当存在一个代表用户角色的实体时,便不再需要额外的会话Bean组件。
This process takes place inside the managed bean (see the Bean layer of Figure 2) and can be divided into two sub-processes: updating the data model and creating GUI elements.
这个过程会在这个受管bean的内部发生(参见图2 的 Bean层),并且能够被分成两个子过程:更新数据模型和创建GUI元素。
Look at the JSF page shown in Listing 2, which USES a JSF managed bean named catalog.
请看清单2所示的jsf页面,其中使用了一个名为catalog的jsf托管bean。
In Part 2, we showed how the message is sent to the ESB through a JMS queue, and then forwarded (again using JMS) to the backend application, which receives the message through a message-driven bean.
在第2部分中,我们介绍了如何通过jms队列将消息发送到ESB,然后转发(仍使用JMS)到后端应用程序,后者通过消息驱动Bean接收消息。
Combining this technique with previous ones, you can connect the "Database," "Bean," and "GUI" layers from Figure 2 together.
将这种技巧与之前讨论的那些技巧结合起来,就能够将图2中所示的“Database”、“Bean”和“GUI”层连接起来。
Listing 2. Code for invoking method on MyHelloWorld bean.
清单2.调用MyHelloWorldbean上方法的代码。
Listing 2 shows a stateless bean class.
清单2展示了一个无状态bean类。
Populate the empty OMElement response object from Step 3 using data received from the IoC bean in Step 2.
用从第2步中的IoCbean中接收到数据填充第3步中的空omelement响应对象。
While preparing, JSF finds the catalog bean in the JSF page shown in Listing 2.
在准备期间,JSF找到清单2所示的jsf页面中的catalogbean。
The controller class is a managed bean defined in the faces-config.xml file, as shown in Listing 2.
控制器类是一个在faces - config . xml文件中定义的管理bean,如清单2所示。
In Listing 2, the value attributes refer to catalog, which is a JSF managed bean.
在清单2中,value属性引用catalog,后者是一个jsf托管bean。
To identify the 2.x BackOrderStock session bean, specify the information shown in Table 2.
要识别2BackOrderStock sessionbean,可以详细指定表格2所示的信息。
The wizard generates three sets of artifacts see Figure 3 : 1 the Web service Requestor-side artifacts including the Proxy Bean, 2 the WSDL file, and 3 the Web service Provider-side files.
向导生成了三套构件参见图3:1Web服务requestor端构件,包括代理Bean,2WSDL文件,和3Web服务provider端文件。
Listing 2 shows the code to store all portlet urls into a bean gathered using Mbeans.
清单2显示了用于将使用MBean收集的所有Portleturl存储到Bean中的代码。
Prior to the EJB 2 specification it was always considered best to use a session bean facade around an entity bean.
在EJB2规范之前,总是认为在实体Bean周围使用会话BeanFacade是最佳的。
The EJB 2.x tooling provided in Rational Application Developer can be used to extend the BackOrderStock session bean by following these steps.
按照下面的这些步骤,RationalApplication Developer中所提供的EJB 2装备可以用来扩展BackOrderStock sessionbean。
The new feature enables you to define an EJB RPC Adapter service for methods in an EJB 2.x or 3.0 session bean, negating the need for creating a POJO proxy for the session bean.
这个新特性可以使您明确确定一个EJB 2或者 3.0sessionbean中方法的 EJBRPCAdapter服务,取消为session bean创建POJO代理的需求。
The ZUL code in Listing 2 accesses the helloWorld bean using its defaulted el name, helloWorld.
清单2中的ZUL代码使用其默认名helloworld访问HelloWorldbean。
应用推荐