Inspect Your Webapp in a Live Environment Interactively with GroovyConsole
Join the DZone community and get the full member experience.Join For Free
have you ever needed to check the state of your webapp’s objects/session/.. to find out why the hell something doesn’t work or have you had to learn a weird 3rd party api that is only available on the server? then you were doomed … until the publication of groovyconsole. jeeutils groovyconsole provides a jsp page that let you execute any groovy/java code on the server side, with access to server-side objects like request/session etc.
here is a screenshot of my recent troubleshooting session, where i needed to check the state of a session-scoped jsf managed bean:
(notice that the screenshot uses heavily the beauties of groovy though you could use the ordinary boring java too .)
the application is self-explanatory (and pretty small) so just check it check it out (and let me know what you think).
if you would prefer telnet access (and can have the port open) then you may be also interested in the embedding groovy article .
Opinions expressed by DZone contributors are their own.