reidmorrison/jruby-jms — Issue #9: Connecting to WebsphereMQ using bindings file
Author: larryFrenchy
Created: 2011-11-09 03:57:05+00:00
State: open

Hi there,

I am pretty new to the ruby world and am already very impressed! I am using ruby-jms to connect to multiple vendor in order to set up a BDD framework. Exiting.

However I am having trouble to connect to MQ server using the binding file.

here is my jms.yml configuration:
wmq:
:jndi_name: JNDI-Directory
:jndi_context:
java.naming.factory.initial: com.sun.jndi.fscontext.FSContextFactory
java.naming.context.url: file:///JNDI-Directory
:require_jars:
- C:/Program Files/IBM/WebSphere MQ/eclipse/plugins/com.ibm.mq.runtime_6.0.0/lib/com.ibm.mqjms.jar
- C:/Program Files/IBM/WebSphere MQ/eclipse/plugins/com.ibm.mq.runtime_6.0.0/lib/fscontext.jar
- C:/Program Files/IBM/WebSphere MQ/eclipse/plugins/com.ibm.mq.runtime_6.0.0/lib/jms.jar
- C:/Program Files/IBM/WebSphere MQ/eclipse/plugins/com.ibm.mq.runtime_6.0.0/lib/com.ibm.mq.jar
- C:/Program Files/IBM/WebSphere MQ/eclipse/plugins/com.ibm.mq.runtime_6.0.0/lib/providerutil.jar

My bindings files are located in the c:/JNDI-Directory.

It is trying to instantiate the following to create the connection from the sun jndi Context Factory which isn't a Connection Factory.
undefined method `create_connection' for # (NoMethodError)

How can you help?