Factories in the Solace JCSMP API

As programming interfaces for object-oriented languages, the Solace JCSMP API uses a singleton factory as the first point of contact to the APIs. A factory is used to obtain instances of messaging system entities such as contexts, sessions, non-temporary destinations, durable endpoint instances, and subscriptions. It is also used to configure global properties, and it exposes a number of useful statistics at the message and memory pool levels.

The com.solacesystems.jcsmp.JCSMPFactory class in the Solace JCSMP API provides factory methods for creating instances of various objects used for messaging, such as session configurations, connection factories, and message producers and consumers.