I am new to write code for Websphere mq. I need sample code to use existing Websphere mq to send request and receive response. Please help me. Advance thankd
A lot of samples are shipped with IBM MQ. Look into <mq installation>\tools\ directory (on Windows) for samples developed in C,C++, Java, C# and number of other languages.
Related
I have to develop an application in VB6 to read records from Oracle tables format it as per the defined message type and send it over to another application via Websphere MQ,i am a beginner in VB .Please suggest how should i proceed.
There are VB6 samples shipped with MQ and you can find them under tool/VB/SampVB6 folder of your MQ installation. amsputb and amqsgetb samples will be useful to you.
Are you bound by any limitation for developing your application using VB6? My recommendation would be to use the .NET Framework (VB .NET or C#) for your development. MQ recommends the usage of MQ .NET assemblies as the .NET assemblies are more up to date and lot of features implemented compared to VB interface.
EDIT
Answering your questions:
a) Yes, multiple applications can put/get to/from the same queue.
b) Each program can set a unique CorrelationId when a sending a message. The intermediate program can use the CorrelationId to identify the program that is sending message. Intermediate program must have some knowledge of which CorrelationId maps to which program.
Is there reason for intermediate program needs to identify the sender application?
Can we access Websphere MQ distribution list in c# ? .Net manual "csqzav07" does not provide any information on this. If any one has tried it already or can share any info on this, that would be highly appreciated.
The current MQ .NET API does not support distribution list. If you like you may submit a RFE to IBM at http://www.ibm.com/developerworks/rfe/execute?use_case=submitRfe
I come from the world of Tibco and EMS (the same as JMS) and I was wondering if there is a GUI way to see statistics of the JMS queues in Glassfish.
For example, I would like to know how many messages were published, how many consumed, durable connections, active subscribers and publishers, things like that.
I have seen that previous versions seemed to have it, but in the administration manual of Glassfish I can't find any other way than using the console. I think this is kind or archaic.
Thanks in advance.
Best regards,
Glassfish uses "Open Message Queue" and it comes with a GUI admin tool plus a full suite of command line tools. You can find these in the Glassfish/imq/bin folder. The gui tool is imqadmin which will answer some of the questions you asked.
You can also use a 3rd party app if you wanted as well, you just need to supply the connection info.
Visit the Oracle GlassFish Server Message Queue 4.5 Administration Guide for more info.
Im currently looking into the difference between IBM Websphere Application Server and IBM Websphere Process Server?
I am aware that the Process Server is like a higher level layer ontop of the App server, but was wondering if development using either would be the same or similar. I have been working with integration developer and App server for a while now, and was wondering if the skills transfered across for Process server.
thanks for any help :)
The process server has a built in WAS.
You can build and deploy standard Java EE applications on both servers this part carries over.
The process server is an extended ESB. If you want to create mediations and process flows, etc, with the full WID feature set then you require the process server. These can be created with the WebSphere Integration Developer as well. However I doubt that you where using these as they won't run on a simple WAS.
Creating mediations and process flows is totally different from the standard Java EE programming.
Udo's answer is correct but i would like to add a few more things to this.
WPS is superceded with the release of IBM BPM V7.5 which was released in June this year. IBM BPM is a merger of two BPM products - WPS and WebSphere Lombardi edition.
Do note that both WPS and BPM 7.5 will use typically a older version of WAS (currently they use a WAS 7.x version) while WAS 8 has been in the marketplace for a longer period of time.
To do Java EE stuff, you are better off using WAS as they will keep up pace with the Java EE specs while WPS and BPM 7.5 lags and you will not be able to take advantage as they lag for a good period of time.
WAS's focuses on Java EE and providing the base for products like WPS, WESB, WebSphere Portal etc. WPS and BPM 7.5 focus on providing a BPM platform for users to build and deploy their BPM solutions.
Hope this gives some clarity
I have to integrate my web service with IBM Enterprise Service Bus (ESB).
I think that there should not be any mediation because this service has only one location
and do not have to change requests.
Is it true? Can ESB administrator simply connect web service to the bus?
If it is necessary to write mediation code:
are there any free tutorials and tools to create such mediation
or I have to buy WebSphere Integration Developer (WID)?
This mediation should be simple and I don't want to spend money on something
used once.
Disclaimer: I'm a WebSphere ESB consultant for IBM.
The answer to your question depends on what you're expecting WebSphere ESB (WESB) to do for you. If you're simply trying to connect a Web Service consumer to a Web Service provider, you don't need need WESB to do that. However, typically folks want to use WESB because they either want to put some logic between the two (maybe transforming from one Web Service interface to another, for example), or because they might want to later. In either case, you'll need to create a mediation module to do that - there is no bus per se that you just connect services to.
In practice, you will need WebSphere Integration Developer (WID) to do that - it would be a lot of work to create the mediations manually, it's not documented, and it's not supported by IBM either. Your local IBM client team should be able to advise you, but these products are typically purchased together.
Hope that helps.
There are several ESB's in IBM's portfolio. The only one that don't really need WID is IBM WebSphere DataPower (I don't know enough about Lombardi to comment). If you have choice, I would use that to get your company started down this path.