Solved

JMS and Javaspaces

Posted on 2007-03-22
6
330 Views
Last Modified: 2008-02-01
Hi ,
I am doing some research on Java based architectures for Distributed Computing.
Can anyone shed some light on JMS and Javaspaces, and the advantages/disdvantages of both.

Thanks !
0
Comment
Question by:paragm78
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 30

Accepted Solution

by:
Mayank S earned 63 total points
ID: 18772586
JMS is a messaging framework which allows different applications to communicate with each other by transferring messages. It uses queue infrastructure for asynchronous communication:

http://java.sun.com/products/jms/

http://java.sun.com/products/jms/tutorial/

http://en.wikipedia.org/wiki/Java_Message_Service

Javaspaces gives you a platform for exchange/ co-ordination of distributed objects. It is included in JINI:

http://java.sun.com/developer/products/jini/index.jsp
0
 
LVL 3

Assisted Solution

by:CptGiggles
CptGiggles earned 62 total points
ID: 19375588
Continuing from what mayankeagle said:

JMS was built for use in low bandwidth (such as localhost) communication between processes (whether it be identical host processes or not). JMS was one of the first frameworks to implement both a queue (point to point) messaging system and a topic (publish/subscribe) messaging system. JMS uses simple (most of the time) Message objects that can contain any or all of some common objects (Objects, Strings, ints, etc). It achieves fast delivery times by use of the small (overhead) size of the Message objects. I am currently working on a project that has one large java app running receiving (pulling) messages from both queues and topics while several other java processes (15+) put formatted messages into respected queue/topics. There are tons of guides for JMS and since JMS is just a framework there are no specifics one could give about JMS (different implementations from message broker to message broker).

Sorry i cannot be of more assistance with Javanamespaces as i have very little expericence with them.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 19375645
3 months? paragm78, have you got your answers to close this Q?
0
 
LVL 3

Expert Comment

by:CptGiggles
ID: 19391028
It must be a really hard decision on his part...

<code>
/**
 * A Programmer's Joke (funny? you decide)
 * @author CptGiggles
 * @date Jun 29, 2007
 * @version 0.1
 */
public class Tester
{
    /*
     * Solution to the current question.
     */
    public void Tester()
    {
        String jMS = "PICK ME PICK ME!!!";
        String javaNameSpaces = "ARE YOU CRAZY? Pick Me";

        //And now the finaly!
        System.out.println("JMS: " + jMS + "\nJavaNameSpaces: " + javaNameSpaces);
    }
}
</code>
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
maven module vs maven project 3 73
CSV file parsing thru Java 13 39
Chrome and Firefox Java 5 67
printf performancy 11 84
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question