wood burning stoves 2.0*
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: 3426
    
  12
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: 10170
    
    8

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!]
 
Consider Paul's rocket mass heater.
 
subject: JMS Queue
 
Similar Threads
Unable to create native thread
how to send the message to Queue
Websphere MDB MQ listener port problems
Java 1.5 & IDE 3.2 with jms
how to receive message from a queue