Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI/JMS/???

 
Bojan Knezovic
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm looking for a solution to the following problem: we have a JVM1 in a app. server and JVM2 on web server. When something happens (an event fires) in AS I need to contact some object in JVM2. Now, I'm thinking JMS rather than RMI - can anyone point out which one is better and why?

To make things more interesting, most likely the clustering architecture will be involved.

I'd appreciate a comment, a simple example, whatever from someone that has already seen a situation similar to this one.

TIA,
Bojan
 
Natarajan Shankar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JMS you can use it for non-Java client. Where
RMI as known specific to Java client.

As you said there will be 2 JVM understood both willbe running in Java. So I hope RMi might useful .
 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Natarajan Shankar:
JMS you can use it for non-Java client. Where RMI as known specific to Java client.

As you said there will be 2 JVM understood both willbe running in Java. So I hope RMi might useful .


JMS - Java Messaging Service is only for Java Clients. IBM MQSeries support any clients written in Java, C and JMS is basically for Asynchronous communication. i.e Sender will send the request and does not required to wait till it gets the response.

RMI - Remote Method Invocation is basically for Synchronous communication.
i.e Sender will send the request and wait till it gets the response.

You can choose the technology based on your synchronous/Asynchronous mode of communication.

Regards,
M.S.Raman.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!