不同的服务器需要一套不同的部署代码和部署描述符。
Different servers require a different set of deployment code and deployment descriptors.
清单2举例说明部署描述符的代码。
Listing 2 illustrates the code for the deployment descriptor.
移植向导仅更新了您的部署描述符,而没有更新ejb实现中的代码。
The migration wizard only updates your deployment descriptors, not the code in your EJB implementations.
这些转换利用您的最佳实践和方法来生成基于文本的元素,例如代码、部署描述符,等等。
These transformations leverage your best practices and approaches to generating text-based elements, such as code, deployment descriptors, and so forth.
如果愿意,甚至可以混合使用这两种方式,让遗留代码用描述符指定ejb,而用注解声明新的EJB。
You can even mix approaches if you wish, allowing legacy code to specify EJBs using descriptors while new EJBs are declared with annotations.
同时,当每次生成用于BPEL的部署代码时都会重写这些部署描述符。
Also these deployment descriptors are overwritten every time the deployment code is generated for the BPEL.
代码发布是面向于统一档案文件的部署,这些文件可能包含部署描述符、组件模块和所支持文件的目录。
Code release is oriented toward deployment of consolidated archives, which may contain deployment descriptors, component modules, and scores of supporting files.
在清单6所示的代码中,缺省值派生自一个EJB环境变量,该变量是在包含MDB的EJB模块的部署描述符中设置的。
In the code show in Listing 6, the default value is derived from an EJB environment variable set in the deployment descriptor of the EJB module containing the MDB.
当然,代码只是一种需要在J2EE环境中产生的构件,因此部署描述符也是必须的。
Of course, code is only one of the artifacts that needs to be produced in a J2EE environment, and so deployment descriptors are also necessary.
下列代码示例来自EJB部署描述符,如清单9所示。
The following code sample from the EJB deployment descriptor, shown in Listing 9, can serve as an example.
一个包含样本代码所需的plugin描述符的plugin . xml文件。
A plugin.xml file that contains the plugin descriptor for the sample code.
对于Web服务客户机,这个策略通常能跨多个web容器工作,因为客户机代码并不依赖于任何Web服务部署描述符。
For a web service client, this strategy usually works across multiple web containers since the client code does not depend on any web service deployment descriptors.
XDoclet像EJBGen一样,会替您生成大部分EJB代码,包括部署描述符。
XDoclet, like EJBGen, generates most of the EJB code for you, including the deployment descriptors.
实体bean被设计成自包含组件,这些组件配置有部署描述符,无需更改任何代码就可以将它们部署到任何J2EE应用程序服务器。
Entity beans are designed to be self-contained components that are configured with a deployment descriptor and can be deployed into any J2EE application server without any code changes.
除了将描述符信息直接部署到JSR116项目之外,还产生代码框架。
Generate code skeletons along with deployment descriptor information directly into JSR116 projects.
最后,请注意函数调用的分支目标并不是启动它的代码,而是.opd入点描述符。
Finally, notice that the branch target for the function call is not the code that starts it, but the.opd entry point descriptor.
要把代码部署为Axis托管的Web服务,您需要创建一个部署描述符,如清单2所示。
To deploy the code as a web service hosted by Axis, you need to create a deployment descriptor, as shown in Listing 2.
相反,我们将代码放到部署描述符中,如本文中的一个例子e4xstock. wsdd所示。
Instead, we inline the code into the deployment descriptor, as shown in the e4xstock.wsdd file in the samples for this article.
包括以web . xml部署描述符形式显示在列表7中的xml代码。
Include the XML code shown below in Listing 7 in the web.xml deployment descriptor.
清单14显示了描述符CustomerEJB - openejb . xml中所需的代码更改。
Listing 14 shows the code change needed in the descriptor, CustomerEJB-openejb.xml.
我们的示例MBean代码和WebSphereXMLMBean描述符文件被存储在位于 /build/newmbean/newmbean.jar 的 JAR 文件中。
Our example MBean code and WebSphere XML MBean Descriptor file are stored in the JAR file located at /build/newmbean/newmbean.jar .
需要使用Portlet的部署描述符提供一些必须的设置,而且,由于这些项也是由Portlet开发人员提供的,因此被认为是自定义代码。
Some required Settings need to be provided with the portlet's deployment descriptor, and since these items are also supplied by a portlet developer, they are therefore considered custom code.
使用文件描述符读取在之前的功能函数中获得的字节,我使用以下代码。
To read the bytes using the file descriptor obtained in the previous function call, I use the following code. It reads the indicated number of bytes from the file parameter passed.
客户端部署描述符,在一个称为application-client.xml的文件中,包含对用于上述代码中JMS连接工厂和队列中JNDI名称的引用。
The client deployment descriptor, in a file called application-client.xml, contains references to the JNDI names of the JMS connection factory and queue that are used in the above code.
因为可以将对容器的请求放入到代码中,所以使得对部署描述符与代码进行同步的开销减到最小。
Since the request for the container can be put in the code, the overhead cost of synchronizing the deployment descriptor with the code is minimized.
您的代码获取它需要的图像描述符,然后将其添加到图像注册表,并使用键为每个图像描述符建立索引。
The idea is that your code obtains the image descriptors it needs and adds them to the image registry, indexing each one with a key.
合并的生产工作流程的BPEL文件和部署描述符都包含在本文的源代码中(参见下载)。
The BPEL file and the deployment descriptor for the merged production workflow are included in this article's source code (see Download).
适配器使用一种特定格式的消息文件来生成消息,这种格式包含错误代码和它们的描述符。
A message file in a specific format containing error codes and their descriptions is used by the adapters to generate messages.
编写J2EE应用程序中的源代码和部署描述符文件可能十分冗长乏味。
Writing the source code and deployment descriptor files in a J2EE application can be tedious.
这些描述可通过代码中的注释或XML描述符文件(实体模式描述符)提供。
These descriptions can be provided through annotations in the code or in an XML descriptor file (the entity schema descriptor).
应用推荐