cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <>
Subject Re: woody, flowscript and ejb
Date Sun, 14 Mar 2004 01:44:07 GMT
Try something like this:

  var initialContext = new InitialContext();
  var ejbHome = 
  var accountHome = 
Packages.javax.rmi.PortableRemoteObject.narrow(ejbHome, AccountHome);

JavaScript "JavaClass" objects like AccountHome in the above example are 
implicitly converted to the corresponding java.lang.Class object when 
passed as an argument to a Java method.

Ulf Sahlin wrote:

>Can someone please post a working implementation of an EJB lookup from
>within Woody's binding.js flowscript (i.e. the ugly Home lookup onto the
>findByPrimaryKey stuff)? I'm having difficulties with the (javascript-style)
>syntax and I cannot seem to find a good resource for reference nor good
>examples. Currently I'm having issues with the myhome.class narrowing part.
>I've tried with myhome["class"] to avoid the reserved keyword issue but I'm
>still having problems. The error i get is:
>--- class "<myhome>" has no public instance field or method named "class".
>I guess I have some issues with package importing or something. It's working
>great if I use the bean setters manually and load the form with that bean.
> Cheers,
>    Ulf Sahlin
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message