Ruby and EJavaBeans with RJB

A

Andre Ferreira

Hi,

i'm analyzing the possibility of calling a EJB from ruby code,
in order to fetch sets of information from remote server.

Does anyone have done this before?
I' m having trouble in translating the following piece fof code.

Context ctx = new InitialContext(env);
Object narrowFromObj = ctx.lookup();
userSessionHome = (UserSessionHome) PortableRemoteObject.narrow(
narrowFromObj, ejbRemoteHomeClass);

to

narrowfromobj = init_context.lookup(remoteHomeJndiName)
portable_remote = Rjb::import('javax.rmi.PortableRemoteObject')
portable_remote.narrow narrowfromobj, ejbRemoteHomeClass

and i get the following error:

" method missing : Fail: unknown name 'narrow' (RuntimeError) "

I would be glad to resolve this issue, i´m trying to integrate a RoR app
with in j2ee environment.

Thanks!

André
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Remote JNDI/EJB Problems 0

Members online

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top