Problem solve Get help with specific problems with your technologies, process and projects.

What are the advantages/disadvatages of Java, C++ and VB from a messaging perspective?

Can you give me the advantages and disadvantages in using Java, C++ and Visual Basic? Compare the reusability,...

coding effort and easiness, understandability of the program source, testing efforts, and learning curve of the languages of choice. What is that make them useful or unuseful?

I would also add "speed" to the evaluation criteria. Here are the main considerations I would make:

  • C++:
    Pros: Good execution speed. Good choice of MOM middleware products (IBM MQ, TIBCO, MSMQ, Vitria, ...).
    Cons: Coding distributed applications in C++ is much more prone to runtime errors (memory leaks, etc.), than with Java or VB. Applications are platform dependent and need to be recompiled (or ported) for every operating system environment.
  • VB:
    Pros: More convenient coding. Rapid development. Reusable components. A large class of potential bugs that lurk in C++ applications does not exist in VB (free memory access, array out of boundary access, ...).
    Cons: Slower execution speed. Less choice of middleware products (mainly MSMQ). Applications are typically tied to one platform (Windows).
  • Java:
    Pros: More convenient coding. Rapid development. Choice of application servers and other server side components (transaction brokers etc). Applications are platform-independent and run on Windows, Solaris, Linux, etc., with little or no modification at all. Good choice of MOM middleware products (JMS, IBM MQ, TIBCO, etc.).
    Cons: Microsoft is trying to get Java developers to abandon the platform. Hence Java applications will probably be more difficult to integrate with .NET applications, than applications written in C#, VB.

In summary, I believe Java is a good choice for MOM programming since it combines the main advantages of C++ (speed) with the main advantages of VB (easier coding), and gives you a good choice of MOM products. Also, your applications become pretty independent of the underlying operating system. Especially in the JMS market there are some very good MOM product offerings, with good performance and scalability, at an affordable price.

This was last published in September 2002

Dig Deeper on Microservices pattern, platforms and frameworks



Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.