File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes JMS Queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

JMS Queue

Shyam Hai
Ranch Hand

Joined: Feb 04, 2009
Posts: 68

I changed the java version( 1.4 to 1.5) in Eclipse3.1

After that i got one error in jms Queue.

Error : "The type Queue is ambiguous"

How to rectify this error.

Thank you...........
Joanne Neal

Joined: Aug 05, 2005
Posts: 3742
Java 5 introduced the java.util.Queue class.
I assume you are importing java.util.*.
Your options are to
1. change this so you only import the specific classes you use
2. use the full class name of the javax.jms.Queue class wherever you refer to it.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10828


Please do not post the same question on multiple forums.
Let is continue the discussion at

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: JMS Queue
It's not a secret anymore!