Solved

Accessing JMS queue from VB application

Posted on 2004-09-24
4
372 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 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

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

729 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