HiveMq Java Client

Finally figured it out, with the help of this post Using Java.net Socket - #13 by pturmel

Looks like this last error had to do with Java overloading methods. Using reflection I can get the method from the class using the method name and parameter types. Then once I get the method from the class I can use the invoke method on the method returned from get method passing in my instance of the class object, along with parameter values. This is on line 22 and 24.

3 Likes