Public Member Functions | |
| Connect () | |
| Calling this method sets Active to True. | |
| Disconnect () | |
| Calling this method sets Active to False. | |
| Start () | |
| Starts (or restarts) a connection's delivery of incoming messages. | |
| Stop () | |
| Temporarily stops a connection's delivery of incoming messages. | |
| Send (const WideString TextMessage) | |
| Send a text message. | |
Public Attributes | |
Public Properties | |
| Boolean | Active |
| Starts and stops the communication. | |
| TBTJMSConnection | Connection |
| The current connection. | |
| IDestination | Destination |
| The current destination. | |
| IMessageConsumer | MessageConsumer |
| The current MessageConsumer. | |
| IMessageProducer | MessageProducer |
| The current MessageProducer. | |
| ISession | Session |
| The current Session. | |
Published Properties | |
Published Properties may be modified at designtime and runtime. | |
| string | CommunicationAdapter |
| The client identifier for this connection. | |
| string | Host |
| Server address. | |
| TOptionsConsumer | OptionsConsumer |
| Consumer options. | |
| TOptionsDestination | OptionsDestination |
| Destination options. | |
| TOptionsProducer | OptionsProducer |
| Producer options. | |
| TOptionsSession | OptionsSession |
| Session options. | |
| TOptionsMessageTransformer | OptionsMessageTransformer |
| Message transformer options. | |
| string | Password |
| Password. | |
| Integer | Port |
| Server port. | |
| string | Username |
| User name. | |
| string | Version |
| The component version. | |
Published Events | |
Published Events may be assigned at designtime and runtime. | |
| TOnBytesMessageEvent | OnBytesMessage |
| Incoming JMS bytes message. | |
| TOnObjectMessageEvent | OnObjectMessage |
| Incoming JMS object message. | |
| TOnTextMessageEvent | OnTextMessage |
| Incoming JMS text message. | |
It provides methods to send and receive messages to Apache ActiveMQ Message Brokers (version 4 and higher) using the STOMP communication protocol.
Required properties are
| THabariExpress::Connect | ( | ) |
| THabariExpress::Disconnect | ( | ) |
| THabariExpress::Start | ( | ) |
Starts (or restarts) a connection's delivery of incoming messages.
A call to start on a connection that has already been started is ignored.
| THabariExpress::Stop | ( | ) |
Temporarily stops a connection's delivery of incoming messages.
Delivery can be restarted using the connection's start method.
When the connection is stopped, delivery to all the connection's message consumers is inhibited: synchronous receives block, and messages are not delivered to message listeners.
This call blocks until receives and/or message listeners in progress have completed.
todo does it block ?
Stopping a connection has no effect on its ability to send messages. A call to stop on a connection that has already been stopped is ignored.
| Boolean THabariExpress::Active |
Starts and stops the communication.
SetActive For writing
The current connection.
Only available if the connection is active.
| IDestination THabariExpress::Destination |
The current destination.
Only available if the connection is active.
The current MessageConsumer.
Only available if the connection is active.
The current MessageProducer.
Only available if the connection is active.
The current Session.
Only available if the connection is active.
The client identifier for this connection.
The purpose of the client identifier is to associate a connection and its objects with a state maintained on behalf of the client by a provider. The only such state identified by the JMS API is that required to support durable subscriptions. Class name of the communication adapter.
SetCommunicationAdapter For writing
| string THabariExpress::Host |
Server address.
SetHost For writing
Consumer options.
Destination options.
Producer options.
Session options.
Message transformer options.
| string THabariExpress::Password |
Password.
Authorization requires Apache ActiveMQ version 5.1 or newer.
SetPassword For writing
| Integer THabariExpress::Port |
Server port.
The correct value of this setting depends on the communication protocol. The default value expects that the connection uses the STOMP protocol.
SetPort For writing
| string THabariExpress::Username |
User name.
Authorization requires Apache ActiveMQ version 5.1 or newer.
SetUsername For writing
| string THabariExpress::Version |
The component version.
SetVersion For writing
Incoming JMS bytes message.
SetOnBytesMessage For writing
Incoming JMS object message.
SetOnObjectMessage For writing
Incoming JMS text message.
SetOnTextMessage For writing