Posted At : March 8, 2009 2:29 PM
| Posted By : Admin
Related Categories:
jms mysql
,
jboss
To round-out the JBoss AS 5 clustering stuff, I figured I'd add a little how-to for configuring JMS to use MySQL.
This
is covered in the docs, but what the hell (the example DS config files
leaves out transaction stuffs, which produces an warning like this:
DataSource connection transaction isolation should be READ_COMMITTED,
but it is currently REPEATABLE_READ.).
{jbossdir} = your jboss dir
{serverdir} = your server dir {jbossdir}/server/{serverdir}
Firstly, create a mysql datasource file:{serverdir}/deploy/mysql-ds.xml
Fill it with something along these lines:
<local-tx-datasource>
<jndi-name>
DefaultDS</jndi-name>
<connection-url>
jdbc:mysql://yourMySQLhost:3306/jbossjms</connection-url>
<driver-class>
com.mysql.jdbc.Driver</driver-class>
<user-name>
yourUsername</user-name>
<password>
yourUserPassword</password>
<exception-sorter-class-name>
org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<transaction-isolation>
TRANSACTION_READ_COMMITTED</transaction-isolation>
<min-pool-size>
5</min-pool-size>
<max-pool-size>
20</max-pool-size>
<idle-timeout-minutes>
0</idle-timeout-minutes>
<metadata>
<type-mapping>
mySQL</type-mapping>
</metadata>
</local-tx-datasource>
Delete the {serverdir}/deploy/hsqldb-ds.xml file.
Then delete the {serverdir}/deploy/messaging/hsqldb-persistence-service.xml file.
Copy
{jbossdir}/docs/examples/jms/mysql-persistence-service.xml file to
{serverdir}/deploy/messaging/mysql-persistence-service.xml.
If you're using clustering, be sure to set Clustered to true in mysql-persistence-service.xml.
Um, guess that's it.
轉自:http://coldshen.com/blog/index.cfm/2009/3/8/Configuring-JBoss5-JMS-for-MySQL
分享到:
相关推荐
This book walks readers through the JBoss 5 Application Server from installation to configuration to production development. It shows how to configure the server's various component containers such as...
### JBoss in Action: Configuring the JBoss Application Server #### 关键知识点概览 - **JBoss Application Server**: 一种开源的应用服务器,适用于Java应用程序的部署与管理。 - **JBoss in Action**: 一本...
MySQL 8 Cookbook: Over 150 recipes for high-performance database querying and administration Design and administer enterprise-grade MySQL 8 solutions Key Features Store, retrieve, and manipulate your...
- 使用CAT5以太网线将TwinCAT PC与AM335x IDK/ICE连接起来。如果有多台ICE/IDK串联,则应将第一台设备的ECAT OUT/Port1 (IDK: J9, ICE: J3)连接至下一台设备的ECAT IN/Port0。 6. **扫描设备:** - 右键单击...
JBoss Application Server是一款开源的Java应用服务器,它支持多种企业级功能,如EJB(Enterprise JavaBeans)、JMS(Java Message Service)、JPA(Java Persistence API)以及Web服务等。本书第一章“VoteforJBoss...
This fifth edition of a classic best-seller includes detailed instructions for configuring the ultimate PHP 7 and MySQL development environment on all major platforms, complete coverage of the latest...
Configuring SAP R3 FICO The Essential Resource for Configuring the Financial and Controlling Modules.part5
NAV350 报文解析 Telegram_listing_Telegrams_for_Configuring_and_Operating_the_NAV350_
5. 配置IIS的web.config文件,设置URL重写规则,将特定请求转发到JBOSS服务器。 6. 使用提供的参考指南,根据具体环境调整配置参数,如端口、服务器地址等。 7. 启动IIS,测试整合是否成功,可以通过访问一个已部署...
Configuring SAP R3 FICO The Essential Resource for Configuring the Financial and Controlling Modules
在介绍如何配置和调整HP ProLiant服务器以用于低延迟应用程序时,文档主要涉及了在金融服务业中常见的高性能需求,尤其是在高频交易、市场数据分发和交易所数据处理等方面。其他需要低延迟响应的行业还包括实时信号...
总结起来,西门子技术指导文件《Configuring a TCP Connection for S7-300/S7-400 Industrial Ethernet CPs》为自动化领域工程师和技术人员提供了一套详尽的TCP连接配置指导,不仅包括了基本的网络和通讯处理器设置...
sap press doc 解压密码:abap_developer
installing and configuring MySQL on the Linux, Windows 2000, and Mac OS X operating systems; MySQL security; debugging and repairing MySQL databases and servers; MySQL performance tuning; and ...
Prepare for Microsoft Exam 70-687 – and help demonstrate your real-world mastery of configuring Windows 8.1 in the enterprise. Designed for experienced IT professionals ready to advance their status...