aspose file tools*
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
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

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
Rancher

Joined: Aug 05, 2005
Posts: 3169
    
  10
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.

Joanne
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Ragavendran,

Please do not post the same question on multiple forums.
Let is continue the discussion at http://www.coderanch.com/t/440926/IDEs-Version-Control-other-tools/Java-IDE-with-jms


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS Queue
 
Similar Threads
Unable to create native thread
Websphere MDB MQ listener port problems
how to receive message from a queue
how to send the message to Queue
Java 1.5 & IDE 3.2 with jms