Accessing a database pool from grails.
从Grails访问数据库池。
Specify the database pool in the deployment descriptors.
在部署描述符中指定数据库池。
Listing 1: EMPdemo Cloudscape database pool deployment plan, Part I.
清单1:empdemoCloudscape数据库池部署计划(第i部分)。
The viewer displays all the classes loaded for the database pool sample.
该查看器显示了为数据库池示例加载的所有类。
Listing 3: EMPdemo Microsoft SQL database pool deployment plan, Part ii.
清单3:empdemoMicrosoftSQL数据库池部署计划(第ii部分)。
Click Install to deploy the database pool used by the MyBankEJB application.
单击Install,以部署MyBankEJB应用程序使用的数据库池。
Select the entry for the database pool example and expand all the tree nodes.
选择数据库池示例的条目,并展开所有的树节点。
Modify a database pool: The deployment tool does not provide a modify command.
修改数据库池:该部署工具并没有提供修改命令。
The plan is an XML file that you can use in a command to deploy the database pool manually.
计划是一个XML文件,可以在命令中使用它手工部署数据库池。
You can also integrate more with Geronimo by creating a database pool bound for Lift to use.
还可以创建供Lift使用的数据库池绑定,从而使与Geronimo的集成更紧密。
There are two files in which you need to specify the resource references for the database pool.
您需要在两个文件中为数据库池指定资源参考。
Now that the database pool has been created, we just need to access it from our Grails application.
现在已经创建了数据库池,我们只需要从Grails应用程序访问它。
The viewer displays the dependencies of the DB2 database pool sample on DB2 JARs and system modules.
该查看器显示了DB 2数据库池示例对DB 2JAR和系统模块的依赖关系。
Once the connection is successful, the next screen provides the deployment option for this database pool.
连接成功之后,下一个屏幕提供这个数据库池的部署选项。
Later in this article, you will see how to create a database pool using the Geronimo database pool wizard.
在本文稍后的部分中,您将了解如何使用Geronimo数据库池向导来创建数据库池。
The Geronimo database pool wizard will create a plan that has such a dependency when Derby embedded is used.
Geronimo数据库池向导将在使用嵌入式Derby时创建一个具有此类依赖性的计划。
If you use this plan you must specify the database Type to be Other when creating the database pool (see Figure 9).
如果要使用这个计划,那么在创建数据库池时必须把数据库类型设置为other(见图9)。
No matter what database configuration pool type you decide to use, you need to build a database pool deployment plan.
不管您决定使用哪种数据库配置池类型,您都需要制定一个数据库池部署计划。
Once the database pool has been deployed, application modules can refer to it using the name specified during configuration.
在部署数据库池之后,应用程序模块可以使用在配置过程中指定的名称来引用它。
You also need to declare the resource reference in web.xml and look for the database pool via JNDI from the application code.
您还需要在web.xml 中声明该资源引用,并在应用程序代码中通过JNDI 查找数据库池。
If the deployment is successful, the console returns to the database pool list screen where the new pool is listed in the running state.
如果部署成功,控制台就返回到数据库池列表屏幕,新的池应该处于正在运行状态。
Here, you have created a database realm that used MD5 digest for passwords with hex encoding and a database pool to connect to the database.
这里,您已经创建了一个数据库域(其密码使用十六进制编码的MD 5摘要),以及一个用以连接到该数据库的数据库池。
For databases, try using the database Pools - Geronimo database pool wizard in the administrative console to test the database connection.
对于数据库,尝试在管理控制台中使用database Pools-Geronimo database poolwizard来测试数据库连接。
In the command window that runs the deployment command, you will see an output indicating if the database pool has been deployed successfully.
在运行部署命令的命令窗口中,您将看到一个指示数据库池是否已经部署成功的输出。
Skip test and deploy - Use this button to deploy the database pool even if the database might not be available for testing at this particular time.
SkipTestandDeploy——使用这个按钮部署数据库池,而不测试数据库当前是否可用。
To use the database pool you just deployed, define the specific resource reference in the Apache Geronimo deployment plan to refer to it (Listing 9).
要使用您刚部署的数据库池,请定义ApacheGeronimo部署计划中的特定资源引用来引用它(清单9)。
Deploy a database pool: you have learned how to build the database deployment plan and what resource adapters you should use for different database servers.
部署数据库池:您已经了解了如何制定数据库部署计划,以及对于不同的数据库服务器应该使用什么资源适配器。
From the screen for editing the connection properties of the new database pool, fill in the fields as shown in Figure 6 and described in the accompanying table.
在编辑新数据库池的连接属性的屏幕上,填写图6和下面的表格所示的字段。
From the screen for editing the connection properties of the new DB2 XA database pool, fill in the fields as shown in Figure 8 and described in the accompanying table.
在编辑DB 2XA数据库池的连接属性的屏幕上,填写图8和下面的表格所示的字段。
The reason for creating a data source or database pool is that it increases application performance, because opening even a single connection is a CPU-intensive operation.
创建数据源或数据库池的原因是它能够提高应用程序性能,因为即使打开一个连接也会十分占用CPU。
应用推荐