To do this, you need to specify the name of the database pool to the ref-name, which should be mapped with the resource-ref in web.xml.
为此,您需要将数据库池的名称指定为ref - name,该名称应映射到web . xml中的resource - ref。
In J2EE 1.3, each of those beans would define a resource-env-ref in its deployment descriptor, which it would then look up from its local namespace.
在J2EE 1.3中,每个bean都要在其部署描述符中定义一个resource - env - ref,它在以后要在其本地命名空间中查询它。
In this example, notice that the value in the ref-name element under ejb-ref matches the value in ejb-ref-name element under ejb-ref in web.xml (see Listing 4).
在本例中,请注意e jb -ref下的ref - name元素中的值与web . xml中的ejb - ref下的ejb - ref - name元素(请参见清单4)匹配。
For example, an external ejb reference (an ejb-ref in the deployment descriptor) in a Web application is tied to an actual deployed ejb component at this point — and no sooner.
例如,Web应用程序中的外部ejb引用(部署描述符中的ejb -ref)就是在此时被绑定到实际部署的ejb组件——而且是立即绑定。
The Spring context in the Blether WAR looks up the EntityManagerFactory that it USES from the web module's local JNDI, where it is mapped by a persistence-unit-ref in the module's web.xml file.
Blether WAR中的Spring上下文通过web模块的本地JNDI查询它使用的EntityManagerFactory,其中它由模块的web . xml文件中的一个persistence - unit - ref所映射。
Typical examples of <resource-ref> elements that are defined in the ejb-jar.xml file are JDBC data sources and JMS connection factories.
ejb-jar.xml文件中定义的 <resource-ref>元素的典型例子是JDBC数据源和JMS连接工厂。
Note that the body of the <res-ref-name> element must be the same as the value of the name attribute of the matching element in the Tomcat configuration.
请注意, <res-ref-name>元素体必须与Tomcat配置中对应元素的name属性值相同。
For EJB JAR files, the same resource-ref should be declared in each EJB that needs to access the data source.
对于EJBJAR文件,应该在需要访问数据源的每个EJB中声明同一资源引用。
Maybe she’d steal the ball. Maybe the other player would throw it away in a panic—or get bottled up and stalled, so that the ref would end up blowing the whistle.
她还会尝试抢球,而对方在情急之下或者将球传丢,或者陷入围困,止步不前,而后裁判就判超时。
The ref attribute of the input element specifies what part of the model that input will store data in.
input元素的ref属性指定了该输入将把数据存储在模型中的哪个部分。
However in this case, the link's ref attribute will be set to the value "null," and the link's text content will be hidden unless a flag to show null-link content is set to true.
但是,在这种情况下,这个链接的ref属性会设置为“null”值,而且链接的文本内容会隐藏起来,除非将显示空链接内容的标志设置为true。
That is why this example USES the ref keyword in the correspondence, to express that a mapping should already exist for the referenced element and there is no need to create another one.
这就是本例在通讯中使用关键词ref来表达对引用元素映射应该已经存在而无须再建立一个映射的含义。
Still, it's worth mentioning because it too makes use of XPath expressions, in the input element's ref attribute.
但是仍然值得提一下,因为它在input元素的ref属性中使用XPath表达式。
Finally, there are some minor syntactical differences that need to be changed; for example, the ref element inside a property element has an id attribute instead of the bean attribute used in Spring.
最后,需要更改一些小的语法差异;例如,一个属性元素内的ref元素有一个id属性,而非spring中使用的bean属性。
This statement assigns TaxRate (ref) to the Connecticut tax rate (calculate) only if the user lives in Connecticut (relevant condition).
这条语句仅当用户居住在康涅狄格州(relevant条件)时,才将TaxRate (ref)赋值为康涅狄格州税率(calculate)。
The role-link element in the security-role-ref element must match a role-name defined in the security-role element of the same web.xml deployment descriptor, as shown here
security-role-ref元素中的role-link元素必须与在处于同一份web.xml部署描述符中的security-role元素所定义的role-name一致。
When you expand the XForms (input) section, you see that the ref USES an XPath expression to point to the id element in the data instance (see figure 8).
当展开XForms(输入)部分时,将看到ref使用XPath表达式指向数据实例中的id元素(参见图8)。
The names declared earlier in the <ref-name> tag of the session bean descriptors are now listed in their full JNDI name context.
先前在会话bean描述符的 <ref-name>标记中声明的名称现在按照其完整的JNDI名称列出。
If ref, instance and replace are defined, then they also will be returned in the resultant XHTML.
如果ref、instance和replace已经定义,则结果XHTML中也将返回这些变量。
If you combine the three common facets with the three variables listed above you get nine dimensions as listed below in Ref _ref35357170 \ h.
如果您将三个共公方面与上面列出的三个变量组合,则会得到九个维度,如下表ref _ Ref35357170 \h所示。
Each web service referenced by a client is represented by a service-ref element in webservicesclient.xml.
每个被客户机引用的web服务是通过webservicesclient . xml文件中的一个service - ref元素来表现。
Then in 4th quarter the ref let it all go.
那么,在第4节,裁判可能把他们吹出场。
The new web.xml is shown in Listing 4, with the additional
新的 web.xml如清单4 所示,其中包含增加的 ejb-local-ref元素。
In Figure 15, the DAY variable is used in the last Invoke of this EOperationImpl: a get whose return value is assigned to variable result (the return Ref of our implementation).
在图15中,DAY变量用于这个EOperationImpl的最后一个Invoke:一个get,其返回值被分配给变量result(我们的实现的ReturnRef)。
In either case, the deployment descriptor for each session bean (Task or Service) simply includes an EJB-REF for each session bean that it actually USES.
在两种情况下,每个会话bean (Task或Service)的部署描述符仅仅包括他所实际使用的每个会话bean的EJB - REF。
When injecting references to other Spring beans, use the "-ref" suffix, as in "p: house-ref".
当注入对其他Springbean的引用时,使用“-ref”后缀,就像“p: house -ref”。
Note that we called our database pool adserver and that is the resource-link you see in the resource-ref and the dependency.
注意,我们把数据库池称为adserver,并且这是您在resource -ref和依赖关系中看到的resource - link。
In daytrader's ejb-jar.xml file, for example, message-destination-ref elements for TradeBrokerQueue and TradeStreamerStopic are declared (Listing 13).
例如,在daytrader的ejb - jar . xml文件中声明了用于TradeBrokerQueue和TradeStreamerStopic的message - destination -ref元素(清单13)。
The ref-name in the deployment plan must match the res-ref-name in the web.xml snippet in Listing 11.
部署计划中的ref-name必须与清单 11 的web.xml代码片段中的res-ref-name 相匹配。
The ref-name in the deployment plan must match the res-ref-name in the web.xml snippet in Listing 11.
部署计划中的ref-name必须与清单 11 的web.xml代码片段中的res-ref-name 相匹配。
应用推荐