You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/06/30 09:39:10 UTC
[GitHub] [rocketmq-spring] liuliuzo opened a new pull request #273: [ISSUE apache#219] need support TLS
liuliuzo opened a new pull request #273:
URL: https://github.com/apache/rocketmq-spring/pull/273
[ISSUE apache#219] need support TLS
- support Producer enable tls
- update samples pom
- update git ignore file for spring eclipse
- unit test
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] liuliuzo commented on pull request #273: [ISSUE #219] need support TLS
Posted by GitBox <gi...@apache.org>.
liuliuzo commented on pull request #273:
URL: https://github.com/apache/rocketmq-spring/pull/273#issuecomment-652841189
> > 对,解决的,和listener一样添加了一个interface prepare producer的初始化就可以设置TLS了,目前项目上是这么做的不知道合不合适
>
>
>
> 我在想Template去继承这样的接口应该不是很优雅。 直接通过配置文件开启会好点。
好的我试试配置文件的方式
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] vongosling closed pull request #273: [ISSUE #219] Support to enable tls through configuration file
Posted by GitBox <gi...@apache.org>.
vongosling closed pull request #273:
URL: https://github.com/apache/rocketmq-spring/pull/273
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] RongtongJin commented on pull request #273: [ISSUE #219] need support TLS
Posted by GitBox <gi...@apache.org>.
RongtongJin commented on pull request #273:
URL: https://github.com/apache/rocketmq-spring/pull/273#issuecomment-652754697
It is strange that need to submit so many commit records, could you solve this problem?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] RongtongJin commented on a change in pull request #273: [ISSUE #219] need support TLS
Posted by GitBox <gi...@apache.org>.
RongtongJin commented on a change in pull request #273:
URL: https://github.com/apache/rocketmq-spring/pull/273#discussion_r448724219
##########
File path: rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/support/RocketMQProducerLifecycle.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 org.apache.rocketmq.spring.support;
+
+public interface RocketMQProducerLifecycle<T> {
+ void prepareStart(final T consumer);
Review comment:
consumer should be renamed to producer.
##########
File path: rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/core/RocketMQDefaultMQProducerLifecycle.java
##########
@@ -0,0 +1,24 @@
+/*
+ * 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 org.apache.rocketmq.spring.core;
+
+import org.apache.rocketmq.client.producer.DefaultMQProducer;
+import org.apache.rocketmq.spring.support.RocketMQProducerLifecycle;
+
+public interface RocketMQDefaultMQProducerLifecycle extends RocketMQProducerLifecycle<DefaultMQProducer> {
Review comment:
IMO, this class is not necessary.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] liuliuzo commented on pull request #273: [ISSUE #219] Support to enable tls through configuration file
Posted by GitBox <gi...@apache.org>.
liuliuzo commented on pull request #273:
URL: https://github.com/apache/rocketmq-spring/pull/273#issuecomment-659451343
尴尬了😅,暂时目前没想到更好的配置的方式和@value配合使用也能达到配置的效果。
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] liuliuzo commented on pull request #273: [ISSUE #219] need support TLS
Posted by GitBox <gi...@apache.org>.
liuliuzo commented on pull request #273:
URL: https://github.com/apache/rocketmq-spring/pull/273#issuecomment-652756103
对,解决的,和listener一样添加了一个interface prepare producer的初始化就可以设置TLS了,目前项目上是这么做的不知道合不合适
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] liuliuzo commented on a change in pull request #273: [ISSUE #219] Support to enable tls for each producer
Posted by GitBox <gi...@apache.org>.
liuliuzo commented on a change in pull request #273:
URL: https://github.com/apache/rocketmq-spring/pull/273#discussion_r485751657
##########
File path: rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/support/RocketMQProducerLifecycle.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 org.apache.rocketmq.spring.support;
+
+public interface RocketMQProducerLifecycle<T> {
+ void prepareStart(final T consumer);
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] RongtongJin commented on pull request #273: [ISSUE #219] need support TLS
Posted by GitBox <gi...@apache.org>.
RongtongJin commented on pull request #273:
URL: https://github.com/apache/rocketmq-spring/pull/273#issuecomment-652806246
> 对,解决的,和listener一样添加了一个interface prepare producer的初始化就可以设置TLS了,目前项目上是这么做的不知道合不合适
我在想Template去继承这样的接口应该不是很优雅。 直接通过配置文件开启会好点。
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] RongtongJin commented on pull request #273: [ISSUE #219] need support TLS
Posted by GitBox <gi...@apache.org>.
RongtongJin commented on pull request #273:
URL: https://github.com/apache/rocketmq-spring/pull/273#issuecomment-659431248
Hi, @liuliuzo We are preparing to release version 2.1.1. It is unclear whether this feature can be released in 2.1.1. Otherwise, it will be released in the next version.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-spring] liuliuzo commented on a change in pull request #273: [ISSUE #219] Support to enable tls for each producer
Posted by GitBox <gi...@apache.org>.
liuliuzo commented on a change in pull request #273:
URL: https://github.com/apache/rocketmq-spring/pull/273#discussion_r485751919
##########
File path: rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/core/RocketMQDefaultMQProducerLifecycle.java
##########
@@ -0,0 +1,24 @@
+/*
+ * 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 org.apache.rocketmq.spring.core;
+
+import org.apache.rocketmq.client.producer.DefaultMQProducer;
+import org.apache.rocketmq.spring.support.RocketMQProducerLifecycle;
+
+public interface RocketMQDefaultMQProducerLifecycle extends RocketMQProducerLifecycle<DefaultMQProducer> {
Review comment:
remove
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org