This is an automated email from the ASF dual-hosted git repository.
xingfudeshi pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/incubator-seata.git
The following commit(s) were added to refs/heads/2.x by this push:
new 84c9f3561b optimize: compatible with integration.grpc API (#6328)
84c9f3561b is described below
commit 84c9f3561b01fb70918dfe8c32ad9a38488d63f4
Author: jimin <[email protected]>
AuthorDate: Thu Feb 15 12:33:49 2024 +0800
optimize: compatible with integration.grpc API (#6328)
---
changes/en-us/2.x.md | 1 +
changes/zh-cn/2.x.md | 1 +
compatible/pom.xml | 11 +++++++++++
.../client/ClientTransactionInterceptor.java | 22 ++++++++++++++++++++++
.../server/ServerTransactionInterceptor.java | 19 +++++++++++++++++++
5 files changed, 54 insertions(+)
diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 991ed849cc..26d7560c83 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -82,6 +82,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#6301](https://github.com/apache/incubator-seata/pull/6301)] upgrade
console frontend dependencies and supported nodejs versions
- [[#6301](https://github.com/apache/incubator-seata/pull/6312)] add saga
related io.seata compatible api
- [[#6313](https://github.com/apache/incubator-seata/pull/6313)] console
display the version number
+- [[#6328](https://github.com/apache/incubator-seata/pull/6328)] compatible
with integration.grpc
- [[#6330](https://github.com/apache/incubator-seata/pull/6330)] remove
mariadb API
- [[#6329](https://github.com/apache/incubator-seata/pull/6312)] add saga
subcomponent-level io.seata compatible api
- [[#6254](https://github.com/apache/incubator-seata/pull/6254)] optimize
Hessian Serialize
diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md
index 88d595ca0f..a998c0e02d 100644
--- a/changes/zh-cn/2.x.md
+++ b/changes/zh-cn/2.x.md
@@ -80,6 +80,7 @@
- [[#6301](https://github.com/apache/incubator-seata/pull/6301)]
升级console前端依赖及支持的nodejs版本
- [[#6301](https://github.com/apache/incubator-seata/pull/6312)]
添加saga相关的io.seata兼容性API
- [[#6313](https://github.com/apache/incubator-seata/pull/6313)] console展示版本号
+- [[#6328](https://github.com/apache/incubator-seata/pull/6328)] 兼容
integration.grpc API
- [[#6330](https://github.com/apache/incubator-seata/pull/6330)] 去除 mariadb API
- [[#6329](https://github.com/apache/incubator-seata/pull/6312)]
添加saga子组件的io.seata兼容性API
- [[#6254](https://github.com/apache/incubator-seata/pull/6254)] 优化Hessian 序列化
diff --git a/compatible/pom.xml b/compatible/pom.xml
index fd4b4d76a6..406d3e01d9 100644
--- a/compatible/pom.xml
+++ b/compatible/pom.xml
@@ -49,6 +49,17 @@
<version>2.1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.seata</groupId>
+ <artifactId>seata-grpc</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>io.grpc</groupId>
+ <artifactId>grpc-stub</artifactId>
+ <version>1.27.1</version>
+ <scope>provided</scope>
+ </dependency>
<dependency>
<groupId>org.apache.seata</groupId>
<artifactId>seata-rm-datasource</artifactId>
diff --git
a/compatible/src/main/java/io/seata/integration/grpc/interceptor/client/ClientTransactionInterceptor.java
b/compatible/src/main/java/io/seata/integration/grpc/interceptor/client/ClientTransactionInterceptor.java
new file mode 100644
index 0000000000..8699b72796
--- /dev/null
+++
b/compatible/src/main/java/io/seata/integration/grpc/interceptor/client/ClientTransactionInterceptor.java
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package io.seata.integration.grpc.interceptor.client;
+
+public class ClientTransactionInterceptor
+ extends
org.apache.seata.integration.grpc.interceptor.client.ClientTransactionInterceptor
{
+
+}
diff --git
a/compatible/src/main/java/io/seata/integration/grpc/interceptor/server/ServerTransactionInterceptor.java
b/compatible/src/main/java/io/seata/integration/grpc/interceptor/server/ServerTransactionInterceptor.java
new file mode 100644
index 0000000000..21644d0896
--- /dev/null
+++
b/compatible/src/main/java/io/seata/integration/grpc/interceptor/server/ServerTransactionInterceptor.java
@@ -0,0 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package io.seata.integration.grpc.interceptor.server;
+
+public class ServerTransactionInterceptor extends
org.apache.seata.integration.grpc.interceptor.server.ServerTransactionInterceptor{}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]