Solved

Accessing JMS queue from VB application

Posted on 2004-09-24
4
354 Views
Last Modified: 2013-11-13
Is it possible to post and receive messages from JMS queue from a VB application? Or is there any way on interaction (sending and receiving data) between a java application and VB program.
0
Comment
Question by:SarikaDhami
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
KeithWatson earned 250 total points
ID: 12150748
JMS is a specification for an API that implementations of message queue software can implement to provide portability between different vendors' products, such as IBM's MQSeries (what's now being called WebSphere MQ) and Microsoft's MSMQ. JMS is a specification of a Java API and as such, cannot be used by a VB program. However, it's perfectly possible to write messages to an MQSeries queue (we do this at work) or an MSMQ queue. I wrote a C# program last week using the MQSeries API to post a message to an MQSeries queue.

There are other ways to communicate, the simplest being:

- Sockets: send messages across TCP/IP. Use the Winsock control in VB to achieve this and some basic socket programming on the Java side.
- Pipes: pipe the output of the VB program to the input of the Java program. This will only work if both programs are on the same machine.
- Web services would be another possibility; however, this is a good deal more heavyweight.

Hope that's of use.
0
 
LVL 3

Expert Comment

by:KeithWatson
ID: 12151714
Let me know if the code for a sockets-based solution is needed and I can post the detail.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

708 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

18 Experts available now in Live!

Get 1:1 Help Now