Solved

JMS and Javaspaces

Posted on 2007-03-22
6
319 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

920 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now