- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试在 JBoss 上添加 db2 xa 数据源。
JBoss 7.1,
Java 11。
这是我的standalone-full-ha.xml
的一部分。
<subsystem xmlns="urn:jboss:domain:datasources:5.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>
<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
<driver name="db2jcc" module="com.ibm">
<driver-class>com.ibm.db2.jcc.DB2Driver</driver-class>
<xa-datasource-class>com.ibm.db2.jcc.DB2XADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
目录结构是,standalone-modules-com-ibm-main
,我添加了 jar 文件(db2jcc.jar、db2jcc_license_cu.jar、db2jcc_license_cisuz.jar)和 module.xml。
我的 module.xml 是,
<?xml version="1.0" encoding="UTF-8"?>
<module name="com.ibm" xmlns="urn:jboss:module:1.1">
<resources>
<resource-root path="db2jcc.jar"/>
<resource-root path="db2jcc_license_cu.jar"/>
<resource-root path="db2jcc_license_cisuz.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
我试过了,.\standalone.bat --server-config=standalone-full-ha.xml
,但它根本没有改变。它不会在控制台上的Detected
选项卡上显示它。
日志文件显示,
1 INFO [org.jboss.as.server] (Thread-1) WFLYSRV0220: Server shutdown has been requested via an OS signal
2 [org.jboss.modcluster] (ServerService Thread Pool -- 35) MODCLUSTER000002: Initiating mod_cluster shutdown
3 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0010: Unbound data source [java:jboss/datasources/Ex ampleDS]
4 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0008: Undertow HTTPS listener https suspending
5 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0007: Undertow HTTPS listener https stopped, was bound to 127.0.0.1: 8443
6 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-2) ISPN000080: Disconnecting JGroups channel ejb
7 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-2) ISPN000082: Stopping the RpcDispatcher for cha nnel ejb
8 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-8) ISPN000080: Disconnecting JGroups channel ejb
9 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000080: Disconnecting JGroups channel ejb
10 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-8) ISPN000082: Stopping the RpcDispatcher for cha nnel ejb
11 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000082: Stopping the RpcDispatcher for cha nnel ejb
12 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-3) ISPN000080: Disconnecting JGroups channel ejb
13 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-3) ISPN000082: Stopping the RpcDispatcher for cha nnel ejb
14 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0019: Host default-host stopping
15 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0004: Undertow 1.4.18.Final-redhat-2 stopping
16 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0019: Stopped Driver service with driver-name = h2
17 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment xxxxx.war (runtime-name: xxxxx.war) in 836ms
18 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: JBoss EAP 7.1.0.GA (WildFly Core 3.0.10.Final-redhat-1) stopped in 844ms
19 INFO [org.jboss.modules] (main) JBoss Modules version 1.6.0.Final-redhat-1
20 FATAL [org.jboss.as.server] (main) WFLYSRV0239: Aborting with exit code 1
21 INFO [org.jboss.modules] (main) JBoss Modules version 1.6.0.Final-redhat-1
22 FATAL [org.jboss.as.server] (main) WFLYSRV0239: Aborting with exit code 1
谁能指出我做错了什么吗?
最佳答案
首先,查看官方文档: https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.1/html/configuration_guide/datasource_management#example_ibm_db2_xa_datasource其次,Java 11 仅通过 EAP 7.2 进行了测试和支持! Java 1.8 支持 EAP 7.1
关于java - 将 db2 xa 数据源添加到 JBoss 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57961603/
使用此代码我无法获得 xa 或非 xa 的连接 DatabaseMetaData dbmd = con.getMetaData(); dbmd.getDriverName(); System.out.
我们可以在同一存储库类中使用 xa 和非 xa 资源的组合吗?如果可以的话,有人可以解释一下它的行为方式以及交易将如何进行吗?目前,我们在存储库中使用 2 个 xa 资源和 2 个非 xa 资源。我们
我试图了解 Java XA 数据源的使用。但我仍然不知道何时使用它,何时不使用它。 我读到当我们使用两个数据库时使用 XA 数据源。但我不确定两个数据库是什么意思。 例如: 我有两层类(Service
我们在不需要的情况下使用 XA JDBC 驱动程序(不参与分布式事务的只读工作)。 只是想知道是否有任何已知的性能提升必须切换到非 XA JDBC 驱动程序 - 如果没有,它可能不值得切换? FWIW
在我的 Spring Boot 应用程序中,我有以下场景: 从 JMS 队列读取消息 利用数据做一些事情。 对 Oracle 数据库执行 JDBC 插入 如果在任何阶段发生异常,我希望确保消息不会丢失
我对 XA 和非 XA 世界还很陌生。我的要求是从队列中读取一条消息,直到没有消息为止。对于队列中的每条消息,转到数据库并执行一些事务,例如选择、插入、更新。 是否可以使用非 XA 数据源实现此目的?
问题 我正在尝试使用geopandas绘制每个地区的犯罪数据。我已合并 shapefile 数据和犯罪数据: merged = merged[['geometry','Extortion']] mer
我使用两个单独的数据源。使用 EJB3.0,我使用的是 non-Xa-datasources。我遇到这样的错误:无法打开连接,状态感知对象。这是因为在一个无状态 bean 中我调用了第二个无状态 be
oracle.jdbc.xa.OracleXADataSource 和 oracle.jdbc.xa.client.OracleXADataSource 黑白有什么区别 ,我知道两者都是 XA 兼容的
在我们的新项目中,我们希望实现涉及 jpa (mysql) 和消息总线 (rabbitmq) 的事务 我们开始使用 mysql 和 rabbitmq(通过 spring amqp 模块)使用 spri
在 mysql 重新启动时提交 XA 待处理事务时,出现以下错误。请帮助我解决这个错误。 mysql> XA RECOVER CONVERT XID; +----------+------------
我将两个 XA 数据源用于 EAP7 和 MySQL。应用程序正在运行,但在调用驾驶舱后抛出了很多异常。 7.5 版中的 Camunda 两者的配置相同。 (由红帽 EAP Docker 镜像生成)
有谁知道为什么 Mysql 需要可序列化隔离级别来实现 XA 事务的 ACID 属性,或者如果使用可重复读取和 XA 会丢失什么? However, for a distributed transac
假设我们有一个数据库(例如 Oracle)和一个 JMS 提供者(例如 HornetQ)参与 XA 事务。一条消息被发送到一个 JMS 队列,并且一些数据在同一个分布式事务中保存在数据库中。事务提交后
我们认为这是一个相当常见的 XA 用例: 从队列中读取消息 将一些数据写入数据库 向出队列(与入队列不同)写入响应消息 然而,我们还需要一种方法来处理内部错误和有害消息。我们想到的控制流程是这样的:
我想在 2 个不同位置的数据库中分离 2 个表...因此 1 个 MySQL 数据库位于一个数据中心,另外 1 个位于另一个数据中心。 我在 Wildfly 中使用普通数据源,并使用 JPA 连接到
我的 Websphere 应用程序有 3 个数据源。其中两个是 XA,另一个是非 XA。 我通过使用 @transactional 注释对方法进行注释,使 Java 方法具有事务性。 在该方法中,执行
背景知识:我遇到了一个问题,我越深入地研究它,就越发现 XA 似乎是正确的解决方案。我有一个“缓存”,它基本上是一个内存数据结构(树形结构),用于保存一些处理过的信息。使用Spring,我们设置了数据
我有一个关于 this 的问题 假设我有一些联系 $conn_site = mysqli_connect("localhost", "us", "ps"); mysqli_select_db("sit
我在 Mint 18 上使用 MySQL 5.7.19-0ubuntu0.16.04.1。我发现当我准备 XA 事务时,然后服务器崩溃了。服务重启后,我就不能再碰交易了。它仍然锁定了 table 。
我是一名优秀的程序员,十分优秀!