users@glassfish.java.net

Re: SLSB implementing interface with EJB 3.1 simplified packaging/GFv3

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Jun 2009 13:08:16 PDT

It works now! And it's short and sweet. Hooray!

Thanks for your prompt help. This has driven my poor graduate student crazy for a long time.

[code]
@Stateless @LocalBean class ScalaSB {
  def getLanguage() = {
    "Scala"
  }
}

@ManagedBean{val name = "test"} @SessionScoped class ScalaMB {
    @EJB private[this] var slsb : ScalaSB = _
    @BeanProperty var response : String = ""
    def submit() : String = {
        response = slsb.getLanguage()
        null
    }
}
[/code]
[Message sent by forum member 'cayhorstmann' (cayhorstmann)]

http://forums.java.net/jive/thread.jspa?messageID=351953