Samples for JCSMP use deprecated classes

Robert
Robert Member Posts: 58 ✭✭

I just faced today when looking at JCSMP samples for publishing e.g. to topic that samples
here:
https://tutorials.solace.dev/jcsmp/publish-subscribe/
+
https://github.com/SolaceSamples/solace-samples-java-jcsmp/blob/master/src/main/java/com/solace/samples/jcsmp/features/TopicPublisher.java
to not get adapted to a latest version of library.
The JCSMPStreamingPublishEventHandler got deprecated and now points to use:
JCSMPStreamingPublishCorrelatingEventHandler

https://docs.solace.com/API-Developer-Online-Ref-Documentation/java/com/solacesystems/jcsmp/JCSMPStreamingPublishEventHandler.html

I recommend to verify and run your samples you provide towards latest version of libraries to detect usage of deprecated functionality. If found it should get replaced to avoid confusion.

Tagged:

Comments