?
Solved

JMS and Javaspaces

Posted on 2007-03-22
6
Medium Priority
?
344 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 252 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 248 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month15 days, 17 hours left to enroll

741 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