Creates a topic connection with the specified user identity.
The connection is created in stopped mode. No messages
will be delivered until the Connection.start method
is explicitly called.
Namespace:
Kaazing.JMSAssembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Function CreateTopicConnection ( _ userName As String, _ password As String _ ) As ITopicConnection |
| C# |
|---|
ITopicConnection CreateTopicConnection( string userName, string password ) |
| Visual C++ |
|---|
ITopicConnection^ CreateTopicConnection( String^ userName, String^ password ) |
Parameters
- userName
- Type: System..::..String
the caller's user name
- password
- Type: System..::..String
the caller's password
Return Value
a newly created topic connection
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to create a topic connection due to some internal error. |
| Kaazing.JMS..::..JMSSecurityException | if client authentication fails due to an invalid user name or password. |