How can I build a standalone MQSeries client under Linux using the C API? - c

IBM offer an installable MQSeries Client software that allows you to access queue managers on remote hosts. They also offer some C-callable libraries that let you do messaging from a C application.
My problem is that I don't have admin access on the hosts I plan to test-deploy on, and getting an application installed comes with bigtime Enterprise hassle. IBM, meanwhile, acts as if there's no alternative to installing their whole client package. Assuming I'm willing to forgo their support, can I get around this? i.e. is there some set of objects/libraries I can link with to produce a standalone client?

From v8.0.0.4 onwards, IBM provides set of libraries as a zip/tar and you don't need to install whole client package. See here: http://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.ins.doc/q122882_.htm.
But you still need queue manager running somewhere to test your application.

Related

What is the difference between endpoints-framework:clientLibs and endpoints-framework:generateSrc?

I've just tested both of them and got the same results. Why?
My intent is to generate server stubs for Google Java Endpoints Framework from OpenAPI specification. Is it possible?
First, I must say I do not believe that our intention is not facilitate the creation of new projects using these tools. These tools were built for migrating old projects and are not a recommended path forward.
But to answer your question:
endpoints-framework:clientLibs is an operation your run on your server side project (appengine). It just downloads a client library (zip) for you. You can process and use this downloaded library in another project to consume the endpoint.
endpoints-framework:generateSrc is an operation you run on the endpoints consumer (or client). This is a helper that automatically includes the client library code in your project (it also downloads the client library), so you don't have to copy that code in yourself (or generate a library an import it in)

How to design a system for offline updates of Linux systems that use Debian's apt?

I'm developing an update / upgrade service with an offline SDK for Linux devices.
The idea is to replicate the update / upgrade Linux services into an offline device. The "offline" device is capable to reach "internet" but only through message exchange using the SDK and through other devices (multi-hop). Devices are from different architectures, therefore the device that has "internet" capabilities (gateway) has to be capable to request and download the packages to be upgraded to/from a different architecture. the gateway device has to be capable to cache the downloaded requested packages from updates (to act as a CDN), avoiding repo requests.
The offline device doesn't have have IP address and the way it communicates is irrelevant, because the offline SDK guaranties internet reachability over multi-hop.
What I need - I need someone to provide me some help or guidance about the update / upgrade work flow on Linux.
What I found so far:
update
update command loads the /etc/apt/sources.list
don't know how update resolves each line on /etc/apt/sources.list, it seems it has a function where it loads the "deb" a "link" and "arguments" that match the corresponding repo folders.
after that it starts to download all the corresponding "Packages" files in each resolved link.
upgrade
makes a comparison between the updated local "Packages" files and the "Packages" files in the repo.
Is there any source code from update / upgrade available ?
I did some web search on the apt repos, but I couldn't find the update / upgrade functions.

windows communication between two applications

I want to create two applications running on the same device (windows rt).
One application would be the app for inputting strings (example is string "235").
The second application would be the output for the first application. (showing "235").
Is it possible to do this in visual studio?
Yes this is possible to do in Visual Studio and to run on a development machine using the loopback adapter, however the loopback adapter is disabled for release builds. You can use the share contract to share your content as a custom object that only your intended application knows how to consume as a share target to accomplish this. A little more about your scenario is needed to provide proper guidance.
John Wiese
Microsoft - Sr. Technical Evangelist
jwiese#microsoft.com
#johnwiese
Try using DLL files.
More info: https://support.microsoft.com/kb/815065

IDE with remote build feature that is compatible with MIT Kerberos

I'm using cluster resources from my academic provider (PDC, Sweden) that uses the MIT-Kerberos authentication protocol for the users to sign in securely.
I'm also using Netbeans to develop C and Fortran code. Netbeans has a feature that lets you build your code on a remote host while you are working on your localhost/Desktop machine. Naturally, this feature requires you to log into your remotehost.
Since Netbeans is using its own SSH client, I cannot connect to the above mentioned remotehost even if I have a valid Kerberos ticket. I have googled this issue, but couldn't find anything related to it.
Has anybody else had a similar issue?
Does anybody know of an IDE for C/Fortran that has a build on remotehost feature and is capable of using the Kerberos protocol?
Eclipse with the Photran plugin are commonly mentioned. I never used it myself, but Eclipse should also support authentication via Kerberos.
See here for more on Eclipse and SSH.

How can an IBM WebSphere MQ's Queue Manager's local queues be enumerated?

I'm trying to write a simple tool for monitoring the state of a Queue Manager. One of the things I'd like to monitor is the current queue depth of each queue. I haven't been able to find a way to programmatically enumerate all of the queues on a particular Queue Manager, though. Do any of the MQ APIs provide this functionality? I'd prefer to do this with C, but if it's only possible with another language's bindings, I'd at least like to know that.
Several C samples at Capitalware. Look for the ones that use the MQAI interface. Nothing there that enumerates queues but the MQAI programs all use Programmable Command Format (PCF) messages. Enumerating the list of queues is a PCF equivalent of DIS Q(*).
You will also want to review the PCF manual in the Infocenter
Tried to add this as a comment but the links didn't markup as expected:
One way or another you end up at PCF commands if you are doing this remotely. You can run MQSC script commands remotely if you install the WMQ client and use SupportPac MO72 to convert them to PCF if you want but at the QMgr it's ultimately PCF. I do a lot of central inquiry and reporting on WMQ with scripts that iterate over a list of QMgrs and execute MO72. I once used CGI and wrote a web front-end over MO72.
By the way, SupportPac MO71 will do the type of monitoring that you are describing. It's compiled C so it needs the WMQ client installed but it can be set up to monitor depth of queues and even has a mini web server so many people can use the same MO71 instance.
You should look at using GH Tester, its a middleware test automation tool developped by Green Hat:
http://www.greenhat.com

Resources