This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Queue,please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Queue,please help" Watch "Queue,please help" New topic

Queue,please help

Lola Dardar

Joined: May 01, 2004
Posts: 3
I need to use Queue.. but may I don't know the correct method to use it , I work in JB9 , I read that it is in
java.util.object; and try to define a refernce to it like this :
Queue queue;
it didn't work ,
Note: I don't want use the queue that use in jms => java.jms.Queue;
I wish to take a benifit...
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Lola!
There is no such thing as java.util.object.
Also, in the J2SE API, there is no class or interface named Queue. And there is no class or interface named java.jms.Queue anywhere, I'm pretty sure.
As part of the J2EE API there does exist an interface javax.jms.Queue. To be able to make use of it, you'll want to have downloaded, installed, and properly configured your system to make use of Sun's J2EE SDK. Or perhaps the edition of JBuilder 9 that you are using already has the APIs at hand, and you just need to specify the correct fully-qualified interface in your import statement.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
There is an implementation of a queue (and stack) which is kind of hidden.
Check out java.util.LinkedList
You can use it for queue behaviour with methods:
- addLast() & removeFirst()
Consider Paul's rocket mass heater.
subject: Queue,please help
It's not a secret anymore!