ContextFactoryCreateQueue Method (String, String) |
Note: This API is now obsolete.
Note: This method is obsolete, and its usage with appliances running SolOS Version 5.4 and greater is strongly discouraged. Applications should use CreateQueue(String) instead.
Creates a representation of a durable/non-temporary queue in the API, given its name and the Virtual Router Name of the hosting appliance.Before creating a IFlow instance to a durable queue on the appliance, the queue must be first provisioned. Applications can provision durable/non-temporary queues using Provision(IEndpoint, EndpointProperties, Int32, Object).
Applications can send or receive Guaranteed messages from a Queue, messages received on a Queue have a single consumer. Multiple subscribers can listen for messages on the same Queue, but once any subscriber retrieves a particular message from the Queue and acknowledge it, that message is consumed and is no longer available to other potential subscribers. To consume messages from a Queue, client applications must create a Flow using CreateFlow(...) on ISession passing in the corresponding IQueue instance.
Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 7.2.1.27 (7.2.1.27)
[ObsoleteAttribute("Use CreateQueue(string) instead", false)] public IQueue CreateQueue( string name, string virtualRouterName )
<ObsoleteAttribute("Use CreateQueue(string) instead", false)> Public Function CreateQueue ( name As String, virtualRouterName As String ) As IQueue
public: [ObsoleteAttribute(L"Use CreateQueue(string) instead", false)] IQueue^ CreateQueue( String^ name, String^ virtualRouterName )
Parameters
- name
- Type: SystemString
the local queue name - virtualRouterName
- Type: SystemString
The network virtual router name of the appliance configured with the Queue. You must get this string from your network administrator or query the session property VirtualRouterName.
Return Value
Type: IQueueA durable queue instance
Exception | Condition |
---|---|
ArgumentNullException | |
OperationErrorException | Thrown when unable to create the queue |