jruby cmd line client is on jre7 and referencing webshpere components
jar and the ejb jar on classpath.
exception on context#lookup:
#<NativeException: javax.naming.NamingException: Failed to initialize
the ORB>
[“com/ibm/ws/naming/util/Helpers.java:365:in `getOrb’”,
I don’t think you can use the IBM Corba client that way (but I may be
out of date). My memory of the IBM Corba stuff is that it is fairly
deeply entangled with their Java.
Can you try running JRuby on IBM’s Java? (You mention jre7, but then
refer to IBM Java 1.6 jar files, so I’m assuming you are not running on
the IBM’s Java.)
Also, note that older JRuby releases have some quirks running on IBM’s
Java on Linux: frequent segmentation faults during JVM shutdown. This is
fixed in JRuby 1.7.0 and I think also in JRuby 1.6.8.
We have used the ibm#was components from a sun#java (java code)client
earlier, it works mostly, as you said some quirks were observed, but
works mostly.
objref = lookup("my/EJB")
myEjbHome = PortableRemoteObject.narrow(objref, MyEjbHome.class)
# fails with
# NativeException: java.lang.ClassCastException: Class
org.jruby.RubyModule is not a valid remote interface
ejb = myEjbHome.create()