WebLogic Messaging API Class Library |

# IContext Members

IContext overview

#### Public Instance Methods

Close | Closes this context but does not close child resources such as connection, sessions, consumers, and producers that are related to this context. This method does not release the context's network connection immediately, instead the network connection will be released after the application closes all of its child resources first. Since JMS allocates context resources on behalf of an `IContext` outside the .NET CLR, clients should call Close on them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. This method is idempotent: invoking it on a context that has already been closed has no effect. Invoking any other method on a closed context is not allowed, and results in undefined behaviour.
CloseAll | Closes this context and all JMS child resources such as connections, sessions, producers, and consumers that were created within this context as well. This method closes and releases this context's and all its child resources immediately, instead of waiting for them to be closed individually by an application. This method is idempotent: invoking it on a context that has already been closed has no effect. Invoking any other method on a closed context is not allowed, and results in undefined behaviour.
LookupConnectionFactory | Retrieves the named JMS connection factory from WebLogic Server JNDI.
LookupDestination | Retrieves the named JMS destination from WebLogic Server JNDI, which will either be an `IQueue` or an `ITopic`.

#### See Also

IContext Interface | WebLogic.Messaging Namespace | ContextFactory