WebLogic Messaging API Class Library |

# IContext.LookupDestination Method

Retrieves the named JMS destination from WebLogic Server JNDI, which will either be an `IQueue` or an `ITopic`.

IDestination LookupDestination(
String name
);

#### Parameters

String
  The name of the destination to look up.

#### Return Value

The `IDestination` object bound to `name`.

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if a naming exception is encountered

#### See Also

IContext Interface | WebLogic.Messaging Namespace