zhfeng commented on a change in pull request #3681:
URL: https://github.com/apache/camel-quarkus/pull/3681#discussion_r839414873
##########
File path:
integration-tests/paho/src/main/java/org/apache/camel/quarkus/component/paho/PahoResource.java
##########
@@ -87,4 +88,11 @@ public String mqttExceptionDuringReconnectShouldSucceed() {
return mqex.getMessage();
}
+ @Path("/readThenWriteWithFilePersistenceShouldSucceed")
+ @GET
+ @Produces(MediaType.TEXT_PLAIN)
+ public String
readThenWriteWithFilePersistenceShouldSucceed(@QueryParam("message") String
message) throws Exception {
+
producerTemplate.requestBody("paho:withFilePersistence?retained=true&cleanSession=false&persistence=FILE",
message);
Review comment:
yeah, the similar situation with mqtt5 but I have to add
```cleanStart=false```. I took some debug works by adding some
```system.out.println``` and
[clientDir.delete()](https://github.com/eclipse/paho.mqtt.java/blob/master/org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/persist/MqttDefaultFilePersistence.java#L298)
return ```false``` in jvm mode but ```true``` in native mode.
It might be worth to raise a upstream CAMEL issue track 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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]