WebLogic Messaging API Class Library |

# ITopic Interface

An `ITopic` object encapsulates a topic. It is the way a client specifies the identity of a topic to JMS API methods. Since `IQueue` and `ITopic` both inherit from `IDestination`, for those methods that use a `IDestination` as a parameter, a `ITopic` object may used as an argument . For example, a ITopic can be used to create a `IMessageConsumer` and a `IMessageProducer` by calling:

- `ISession.CreateConsumer(ITopic topic)`
- `ISession.CreateProducer(ITopic topic)`

For a list of all members of this type, see ITopic Members.

public interface ITopic : WebLogic.Messaging.IDestination

#### Requirements

Namespace: WebLogic.Messaging

Assembly: WebLogic.Messaging (in WebLogic.Messaging.dll)

#### See Also

ITopic Members | WebLogic.Messaging Namespace | ISession CreateDurableSubscriber, CreateProducer, and CreateConsumer methods | ISession.CreateTopic(string)