On Fri, Jul 31, 2009 at 3:31 AM, Mikael
Lammentausta<[email protected]> wrote:
> I solved my problem. It was really simple in the end :)
Things with JRuby often are :)
> home = @@context.lookup('ServicesHome')
>
> beanHome = PortableRemoteObject.narrow(
> home,
> BeanHome.java_class
> )
>
> ejb = beanHome.create
>
>
> Now I can call methods on the ejb object.
Yup...PRO basically just forces any lazy stub logic to fire, so the
resulting object you get has the interface you specified. Since we
inspect the *actual* types of objects, once you've done that there's
no need to cast (and really, there's no need to cast in Java, except
that Java is so picky about types...it doesn't actually *do* anything
but appease the type system).
- Charlie
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email