B4J Question jMQTTBrokerExtended 2.1 not support : broker.As(JavaObject).GetFieldJO("config")

fengce

Member
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!
 

Attachments

  • Screenshot 2023-10-20 204707.png
    Screenshot 2023-10-20 204707.png
    24.7 KB · Views: 55
Top