I wanna use then Sub like this:
Sub SetMaxMessageSize(broker As MqttBrokerExtended, MaxSize As String)
broker.As(JavaObject).GetFieldJO("config").RunMethod("setProperty", Array("netty.mqtt.message_size", MaxSize))
End Sub
but MqttBrokerExtended.jar 2.10 not support the method broker.As(JavaObject).GetFieldJO("config") ,when running ,it will report error
"java.lang.RuntimeException: Field: config not found in: flm.b4j.mqttbroker.MQTTBrokerExtended"
I use JD-GUI to find out the reason: config field is not PUBLIC
I hope Erel can update MqttBrokerExtended.jar
Many thanks!
Sub SetMaxMessageSize(broker As MqttBrokerExtended, MaxSize As String)
broker.As(JavaObject).GetFieldJO("config").RunMethod("setProperty", Array("netty.mqtt.message_size", MaxSize))
End Sub
but MqttBrokerExtended.jar 2.10 not support the method broker.As(JavaObject).GetFieldJO("config") ,when running ,it will report error
"java.lang.RuntimeException: Field: config not found in: flm.b4j.mqttbroker.MQTTBrokerExtended"
I use JD-GUI to find out the reason: config field is not PUBLIC
I hope Erel can update MqttBrokerExtended.jar
Many thanks!