Error "Name 'xxx' is ambiguous: both a topic and a queue exist".

Error "Name 'xxx' is ambiguous: both a topic and a queue exist".

book

Article ID: KB0084615

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
Description:
= = = = = = =
Error "Name 'xxx' is ambiguous: both a topic and a queue exist".

Cause:
======
The error occurs because there exists topics and queues with the same name and a JNDI lookup by this name is done.  

Platforms:
========
All

Resolution:
=========
Do a rename. You can prepend the name with "$topics" or "$queues". For example, if a queue and a topic both have name "sample", you can look up the topic by name "$topics.sample" and the queue by name "$queues.sample".

Keywords:
=========
topic queue ambiguous

Issue/Introduction

Error "Name 'xxx' is ambiguous: both a topic and a queue exist".