?
Solved

Accessing JMS queue from VB application

Posted on 2004-09-24
4
Medium Priority
?
375 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
[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
4 Comments
 
LVL 3

Accepted Solution

by:
KeithWatson earned 1000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This article will show, step by step, how to integrate R code into a R Sweave document
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

764 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