Here's the Scala version:
package co.bookleaf.servletAnd... it works too! Getting there.
import javax.servlet.{ServletContextListener,ServletContextEvent}
import javax.ejb._
import com.scalaejb.ScalaEjbLocal
class StartupShutdown extends javax.servlet.ServletContextListener {
@EJB private var localEJB:ScalaEjbLocal = _
override def contextInitialized( sce: ServletContextEvent ) = { println("Here Scala: "+localEJB); localEJB.sayHi("Fred") }
override def contextDestroyed( sce: ServletContextEvent ) = {}
}
No comments:
Post a Comment