Thanks for your interrest in this issue.
Well, I am expecting the same way for console interaction that is possible with
a scripting language like BeanShell (either telnet/console or into asadmin or
embeded in the web admin ... lots of possibilities). BeanShell provide vy
default implementation for all of these goodies and only require small
code/config to be wrapped.
But as a PoC, maybe it would be interresting to start with the BshServlet and
embed that into the web admin in a particular page. This would limit the impact
on a particular application of Glassfish and will not introduce any unexpected
"hole" (as still running inside the container under its control).
About the script choice, I was pushing BeanShell as this is available now and a
viable short-term solution without much impact on the existing code base. But I
do agree that middle-term target should be more oriented toward JSR-223 but this
would make Mustang a requirement for Glassfish which is not acceptable IMHO.
That was the reason for the choice of BeanShell. Also as you might know
BeanShell is Java friendly (java synthax friendly), it is rock solid & stable
since years ... so it adds point to the score.
My goal adding an interractive console right into the container is to be able to
"key in" whatever code I like to test it, for instance :
- get an EJB Stateless reference from an application
- call on of its business method with a given value, get the result
- call another method with more values ...
As you've understood, this is not only for test purpose during development phase
that such a tool might be usefull (agile dev, shortening cycles), but it could
also be very usefull for system administrator to inject "off the track" code to
hotfix bugs into the system, bypassing the presentation layer logic but directly
interfacing to the business layer (and thus lowering the risk of data
inconsistencies). Such an admin "bypassing" door is quite often requeste by
trouble shooting teams that are monitoring complex applications in order to be
able to unlock complex unexpected situations.
For all those reason I think this would be a bargain for Glassfish.