Eric,
Thank you so much for your in-depth analysis. I truly appreciate it as
it will save me a good chunk of time. Thank you for the many links and
the details provided.
Eric,
Thank you so much for your in-depth analysis. I truly appreciate it as
it will save me a good chunk of time. Thank you for the many links and
the details provided.
Eric:
fantastically useful , as a matter of fact I wasn’t even going to bother
with trying to setup MQ server since I don’t have the cycles, I have an
MQ server already setup at one of my work sites. Now ideally what I
wanted to do is to setup an MQ server in my vmware CentOS instance which
I carry around in my Mac Mini from my two work locations + home. So
what you have done will greatly reduce my pain when I get around to it
which will be thanks to you sooner than later
For what I have to do I think that the straight up MQ Api will do fine.
Your excellent write up does remind me of a big outstanding issue. In
our case we deploy to customer locations that are Vmware virtual
instances irrelevant I guess but just that they are many and new are
added periodically and we are not just meant to mirror , what we need is
a packager so that all the required jars, jruby etc can be installed
with one click and with compiled classes. It doesn’t seem that the i
click install solution is available. I actually need something that will
also package the JRE. I read that TorqueBox may do this although I
don’t know if they are able to compile source. Sorry to digress.
Charles
This code loads for me:
require ‘java’
import com.ibm.mq.MQQueueManager
import com.ibm.mq.MQEnvironment
import com.ibm.mq.MQC
MQEnvironment.hostname = “the.host.name”
MQEnvironment.port = -1
MQEnvironment.channel = “channel.name”
qMgr = MQQueueManager.new “TESTQ”
however it craps out because I don’t have a proper server setup
available at home
if you are not getting name binding issues still it must be that the mq
jars are not being picked up , they will be picked up if you put them
under the jruby install directory / lib folder
Charles
Ok, i’m successful in running MQ from Jruby , I believe that the last
issue you (Ruby S.) was having related to bindings. Just put the
jars under / lib. BTW, all I needed was the IBM MQ
Jars, no other MQ client related dependencies.
Charles
I should note that you had an error in your code i.e. mixing Ruby and
Java semantics
not Ruby:
MQQueueManager qMgr = new MQQueueManager(“TESTQ”);
Charles M.
[email protected]
Charles,
I tried your suggestion and it worked.
Instead of:
import com.ibm.mq.*
I tried:
import /opt/jruby/lib/com.ibm.mq.*
and that worked.
At least I am past that point. Now let me see what else I’ll find.
Thank you so much for your help with your posting. I truly appreciated.
Thanks again,
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs