Habari Client for ActiveMQ 3.0
Delphi and Free Pascal client library for the Apache ActiveMQ open source message broker

TBTJMSConnectionFactory Class Reference

A ConnectionFactory is used for creating Connections. More...

Inheritance diagram for TBTJMSConnectionFactory:
IConnectionFactory

List of all members.

Public Member Functions

TBTJMSConnection CreateAMQConnection ()
 Creates a connection with the default user identity.
TBTJMSConnection CreateAMQConnection (const string UserName, const string Password)
 Creates a connection with the specified user identity.
IConnection CreateConnection ()
 Creates a connection with the default user identity.
IConnection CreateConnection (const string UserName, const string Password)
 Creates a connection with the specified user identity.
IClientLibraryInfo ClientLibraryInfo ()
 Returns the client library information.

Public Attributes

string ClientID
 The JMS clientID to use for the created connection.
Integer ConnectTimeOut
 Connect time out.
string UserName
 The JMS userName used by connections created by this factory.
string Password
 The JMS password used for connections created from this factory.
string BrokerURL
 The connection URL used to connect to the ActiveMQ broker.
Integer SendTimeOut
 Send time out.

Detailed Description

A ConnectionFactory is used for creating Connections.

A ConnectionFactory object encapsulates a set of connection configuration parameters that has been defined by an administrator.

A client uses it to create a connection with a JMS provider.


Member Function Documentation

IClientLibraryInfo TBTJMSConnectionFactory::ClientLibraryInfo ( )

Returns the client library information.

Since:
2.4
TBTJMSConnection TBTJMSConnectionFactory::CreateAMQConnection ( const string  UserName,
const string  Password 
)

Creates a connection with the specified user identity.

The connection is reated in stopped mode. No messages will be delivered until the Connection.Start method is explicitly called.

Since:
1.4
TBTJMSConnection TBTJMSConnectionFactory::CreateAMQConnection ( )

Creates a connection with the default user identity.

The connection is created in stopped mode. No messages will be delivered until the Connection.Start method is explicitly called.

Since:
1.4
IConnection TBTJMSConnectionFactory::CreateConnection ( )

Creates a connection with the default user identity.

The connection is created in stopped mode. No messages will be delivered until the Connection.Start method is explicitly called.

IConnection TBTJMSConnectionFactory::CreateConnection ( const string  UserName,
const string  Password 
)

Creates a connection with the specified user identity.

The connection is reated in stopped mode. No messages will be delivered until the Connection.Start method is explicitly called.


Member Data Documentation

The connection URL used to connect to the ActiveMQ broker.

See also:
GetBrokerURL For reading
SetBrokerURL For writing

The JMS clientID to use for the created connection.

Note that this can only be used by one connection at once so generally its a better idea to set the clientID on a Connection.

See also:
FClientID For reading
FClientID For writing

Connect time out.

Since:
1.9
Note:
Experimental feature.
See also:
FConnectTimeOut For reading
SetConnectTimeOut For writing

The JMS password used for connections created from this factory.

See also:
FPassword For reading
FPassword For writing

Send time out.

Since:
1.4
Note:
Experimental feature.
See also:
FSendTimeOut For reading
FSendTimeOut For writing

The JMS userName used by connections created by this factory.

See also:
FUserName For reading
FUserName For writing
 All Classes Functions Variables