3

Inspect Your Webapp in a Live Environment Interactively with GroovyConsole

 2 years ago
source link: https://blog.jakubholy.net/2011/09/27/inspect-your-webapp-in-a-live-environment-interactively-with-groovyconsole/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Inspect Your Webapp in a Live Environment Interactively with GroovyConsole

September 27, 2011
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.

Are you benefitting from my writing? Consider buying me a coffee or supporting my work via GitHub Sponsors. Thank you! You can also book me for a mentoring / pair-programming session via Codementor or (cheaper) email.

Allow me to write to you!

Let's get in touch! I will occasionally send you a short email with a few links to interesting stuff I found and with summaries of my new blog posts. Max 1-2 emails per month. I read and answer to all replies.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK