在Web部署描述器中注册代理servlet。
Register the proxy servlet in the Web deployment descriptor.
在portlet部署描述器中创建一个事件定义。
Create an event definition in the portlet deployment descriptor.
您必须拥有该捆绑部署描述器来在IDE中进行测试。
You must have this binding deployment descriptor to test within the IDE.
对portlet部署描述器做如列表9所示的更改。
The changes shown in bold in Listing 9 are made to the portlet deployment descriptor.
代理servlet在Web部署描述器中注册。
Proxy servlet is registered in the Web deployment descriptor.
在portlet部署描述器(PDD)中创建一个事件定义。
Create an event definition in the portlet deployment descriptor (PDD).
为EventSample项目打开portlet部署描述器。
Open the portlet deployment descriptor for the EventSample project.
该向导将会对portlet部署描述器做出以下两个更改。
This wizard makes two changes to the portlet deployment descriptor.
右击portlet部署描述器并选择New > Portlet。
Right-click the portlet deployment descriptor and select New > Portlet.
您使用注释来向数据源添加引用,有了它您就不用创建一个EJB部署描述器了。
You use annotation to add references to the data source, with which you can avoid creating an EJB deployment descriptor.
列表1所示的代码,显示了事件向导是怎样编辑portlet部署描述器代码的。
The code in bold in Listing 1 shows how the portlet deployment descriptor code is modified by the event wizard.
您不能在这里编辑事件定义,但是您可以在portlet部署描述器中手动编辑它。
You cannot modify the event definition here, but you can edit it manually in the portlet deployment descriptor.
有了JEE,注释功能就减少了出错代码,并使得部署描述器的选择更加自由。
With JEE, annotation capabilities reduce boilerplate code and make deployment descriptors optional.
该操作将会添加如列表8所示的部分,到portlet部署描述器中的portlet程序定义中。
This action adds the section shown in Listing 8 to the portlet application definition of the portlet deployment descriptor.
因为您并不需要创建一个EJB部署描述器,所以您需要生成一个WebSphereBindings部署描述器来完成数据源捆绑。
Because you do not create an EJB deployment descriptor, you need to generate a WebSphere Bindings deployment descriptor to complete the data source binding.
RationalApplication DeveloperV7.5中的PDD编辑器,如图3所示,是为称为portlet . xml的门户项目编辑部署描述器的一种方便、用户友好性的工具。
The PDD editor in Rational Application Developer V7.5, shown in Figure 3, is a very convenient, user-friendly way to edit the deployment descriptor for portlet projects called portlet.xml.
有了DeploymentDescriptor编辑器中的Bindings部署描述器(meta - data \ ibm - ejb - jar - bnd . xml),点击add。
With the Bindings deployment descriptor (meta-data \ ibm-ejb-jar-bnd.xml) open in the deployment descriptor editor, click Add.
向导会编辑portlet部署描述器下面的 portlet,如图6 中的ProjectExplorer 所示。 在OrdersPortlet节点下,会出现 OrderIDType事件。
The wizard modifies the portlet under the portlet deployment descriptor, as shown in the Project Explorer in Figure 6. Under the OrdersPortlet node, the OrderIDType event appears.
这将在编辑器窗口中打开部署描述符(仍然为空)。
This will open the (still empty) deployment descriptor in the editor window.
这是通过部署描述符编辑器手工操作的。
This is done manually through the deployment descriptor editor.
关闭编辑器;这会将改变保存到EJB部署描述符。
Close the editor; this saves the changes to the EJB deployment descriptors.
在部署描述符查看器中打开该应用程序组件的部署描述符。
Open the deployment descriptor for the application component in the deployment descriptor viewer.
现在部署描述符编辑器预览选项卡的可视化片断是可用的,这将很容易导航到(和创建)类图。
A new Visualization section is now available in the Deployment Descriptor editor's Overview TAB, enabling easy navigation to (and creation of) class diagrams.
这些属性与用户在部署描述符编辑器中看到的属性相同。
These properties are the same ones as you will see in the Deployment Descriptor editor.
部署描述符编辑器自动将中介处理程序放在与中介处理程序同名的列表中;结果如图13所示。
The deployment descriptor editor automatically places the mediation handler in a list with the same name as the mediation handler; the result is shown in Figure 13.
保存并关闭应用程序部署描述编辑器。
Save and close the Application Deployment Descriptor Editor.
有时候,更改了项目的部署描述符后,服务器可能不会注意到这个更改。
Sometimes, when changing a project's deployment descriptors, the server may not notice that a change has been made.
使用部署描述符编辑器打开EJB部署描述符(图2)。
Open the EJB deployment descriptor using the deployment descriptor editor (Figure 2).
保存并关闭应用程序部署描述编辑器。
图18展示了用部署描述符编辑器编辑的web . xml文件。
Figure 18 shows web.xml file being edited with the deployment descriptor editor.
应用推荐