in reply to EJB client

It may be possible, but I'm pretty sure you'll be happier with Jython, JScheme or one of the other scripting languages implemented in Java. Since the scripts execute inside the JVM they have easy access to Java classes and objects.

-sam