Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

message queue and Java

Status
Not open for further replies.

chz013

Programmer
Jan 5, 2003
73
0
0
US
A message queue created by a task on a server on
IP address 192.168.1.1;
I like to write a java client application (on IP address 192.168.1.2);

1 - What's the basic concept of using message queue ?
2 - is there a code example on java network programming where
I could retrieve message from the message queue and display
the contents on the java client GUI ?
3- how is the client notified of when to retrieve msg from the
message queue ?
4 - how does the task know when to retrieve a message
sent from client and perform its task ?

any help is fully appreciated

 
If you mean JMS (Java Message Service) :

>>>> 1 - What's the basic concept of using message queue ?

Peer-2-Peer, or asynchronous Publish-Subscribe messaging using a JMS server, generally embedded within a J2EE compliant app server.


>>>> 2 - is there a code example on java network programming where
I could retrieve message from the message queue and display
the contents on the java client GUI ?

>>> 3- how is the client notified of when to retrieve msg from the
message queue ?

EG - Publsh-Subscribe Queues :
The client looks up the Queue or Topic using JNDI, and writes a method in the client that recieves messages. The JMS server, on recieving a message from somewhere else then forwards the message to all clients that have subscribed.


>>>> 4 - how does the task know when to retrieve a message
sent from client and perform its task ?
The JMS server 's raison d^etre is to listen for incoming publish messages, and forward these to their client subscribers.
 
Sedj, thanks for your response. appreciate it.

1 - how is JMS different from the message queue created
by a Solaris task ?
2 - I need help/guidance on how to read messages
in message queue, which is created by a Solaris task,
and send them to display these messages on Java GUI.
How exactly do I do that or is that even possible ?
Any web site that would show such implementation example ?

 
Sorry, not familiar with Solaris message queues - maybe you could try the Solaris/UNIX forum ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top