Client exception "Not allowed to lookup dynamic destination...".

Client exception "Not allowed to lookup dynamic destination...".

book

Article ID: KB0086434

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
Description:
===========
Since EMS 5.0, client applications are not allowed to look up dynamic destinations. From the EMS User's Guide : Developing an EMS Client Application : Dynamically Creating Topics and Queues:

---------
Because dynamic destinations do not appear in the configuration files, a client cannot use JNDI to lookup dynamically created queues and topics.
---------

Client application also gets the following exception:

javax.naming.NameNotFoundException: Name not found

Resolution:
==========
Do either of the following:

1). Change the application to use static destinations.

2). Promote the dynamic destination to static destination by running the following command in tibmesadmin:

create topic &lttopic>
or
create queue &ltqueue>

This operation does not require restating of EMS server. Alternatively, you can directly add destination to queues.conf or topics.conf.  The change only take effect after the EMS server is restarted.

Platforms:
=========
All

Keywords:
========
lookup dynamic destination javax.naming.NameNotFoundException Name not found

Issue/Introduction

Client exception "Not allowed to lookup dynamic destination...".