![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
A connection with the EMS server is defined by the Connection object obtained from a Connection Factory, as described in Connection Factories.See the tibjmsMsgProducer.java sample client for a working example.Use the tibemsConnectionFactory_CreateConnection function to create a connection of type tibemsConnection:If there is no connection factory, a C client can use the tibemsConnection_Create function to dynamically create a tibemsConnection type:The tibemsConnection_Create function exists for backward compatibility, but the recommended procedure is that you create tibemsConnection objects from factories.See the tibemsMsgProducer.c sample client for a working example.See the csMsgProducer.cs sample client for a working example.Before consuming messages, the Message Consumer client must "start" the connection. See Creating a Message Consumer for more details about Message Consumers.If you wish to temporarily suspend message delivery, you can "stop" the connection.When a client application exits, all open connections must be "closed." Unused open connections are eventually closed, but they do consume resources that could be used for other applications. Closing a connection also closes any sessions created by the connection.See the "start," "stop" and "close" methods for the Java Connection object, the C tibemsConnection type, and the C# Connection object.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |