As described in JMS Message Bodies, EMS works with the following types of messages:
See the tibjmsMsgProducer.java sample client for a working example.
Use the tibemsTextMsg_Create function to create a text message of type
tibemsTextMsg:
See the tibemsMsgProducer.c sample client for a working example.
See the csMsgProducer.cs sample client for a working example.
Before a client sends a message, it can use a "set property" method to set the message properties described in
EMS Message Properties. The client can check the message properties with a
"get property" method.
Use the tibemsMsg_SetBooleanProperty function to set the
JMS_TIBCO_PRESERVE_UNDELIVERED property to
true:
Use the tibemsMsg_GetStringProperty function to get the user ID of the
JMS_TIBCO_SENDER:
Use the Message.SetBooleanProperty method to set the
JMS_TIBCO_PRESERVE_UNDELIVERED property to
true:
Use the Message.GetStringProperty method to get the user ID of the
JMS_TIBCO_SENDER:
You can use the Message Producer client, described in Creating a Message Producer, to send messages to a destination. You can either send a message to the destination specified by the Message Producer or, if the Message Producer specifies NULL as the destination, you can send a message to a specific destination. In either case, you can optionally set the
JMSDeliveryMode,
JMSExpiration, and
JMSPriority message header fields described in
JMS Message Header Fields when sending each message.
See Chapter 2, Messages for more information about creating messages.
Use the MessageProducer object’s
send() method to send a message to the destination specified by the
MessageProducer object:
Use the following form of the send() method to send a message to a specific destination:
Use the form of the send() method with a completion listener argument to send a message asynchronously:
See the tibjmsMsgProducer.java sample client for a working example.
Use the tibemsMsgProducer_Send function to send a message to the destination specified by the
tibemsMsgProducer:
Use the tibemsMsgProducer_SendToDestination function to send the message to a specific destination:
See the tibemsMsgProducer.c sample client for a working example.
Use the MessageProducer.Send method to send a message to the destination specified by the
MessageProducer:
Use the following form of the MessageProducer.Send method to send a message to a specific destination:
See the csMsgProducer.cs sample client for a working example.
The Message Consumer created in Creating a Message Consumer receives messages from a destination and acknowledges the receipt of messages using the mode established for the session, as described in
Creating a Session.
Use the Connection object’s
start() method to start the connection:
Use the MessageConsumer object’s
receive() method to receive a message. This is typically used in a loop for the duration the client wishes to receive messages:
See the tibjmsMsgConsumer.java sample client for a working example.
Use the tibemsConnection_Start function to start the connection:
Use the tibemsMsgConsumer_Receive function to receive a message. This is typically used in a loop for the duration the client wishes to receive messages:
See the tibemsMsgConsumer.c sample client for a working example.
Use the Connection.Start function to start the connection:
Use the MessageConsumer.Receive function to receive a message. This is typically used in a loop for the duration the client wishes to receive messages:
See the csMsgConsumer.cs sample client for a working example.