Injecting better logging into a binary .class using Javassist
Continue reading →
Add method tracing (params, result) to existing application w/o modifying it
Have you ever needed to learn what's going on in a 3rd-party java application and yet didn't want to debug it and step through it? Were you wishing to be able to see what methods get called in what order together with their actual parameters and return values? There is a "simple" solution: AspectWerkz.
Quick start:
Continue reading →
The Ultimate Web UI Framework
Continue reading →
Introducing Facelets
You might have already heard about Facelets (docs), a library for Java Server Faces (JSF), and wondered why it is popular and what it is good for. I've wondered too and now I want to share the answers with you.
Warning: I'm a novice to Facelets and some things may be not completely exact.
Continue reading →
Truncating UTF String to the given number of bytes while preserving its validity [for DB insert]
string.substring(0, DB_FIELD_LENGTH);
Continue reading →
VMWare: Shrink image even though it’s a snapshot
Continue reading →
Dependency Finder 1.2.0 for Java
Dependency Finder for java can help you to find your way in unknown class files/library.
Usage:
Continue reading →
Troubleshooting Class/Resource Loading on an Application Server
If you need to find out where is a certain class loaded from or where a class has loaded a resource (typically a configuration file) from, you can use the JSP below - just put it to your web app and point a browser to it.
Continue reading →
WAS 6.0 ant tasks: Install an app with an external Ant
There are special ant taks to install/start/.. an application to a WebSphere App Server 6.0. It's easy to run them with WAS's ant script (<was>/bin/was_ant.bat) but not so trivial to get them working with an external ant, which may be necessary because WAS has an old version of ant. So lets see how to do it.
Continue reading →
RAD, WAS 6 Test Env and J2EE security: getting rid of “No received or invocation credential exist on the thread”
Continue reading →
RAD: Profiling a portlet
Continue reading →
Kill a zombie database (not in the directory but can’t create it)
Continue reading →
RAD: Server Configurations in Rational Developer 6.0: copy, repair...
Continue reading →
DB2: Find out current locks, long transactions etc. [snapshot]
Continue reading →
Ant/Maven: Add build date/revision to the generated JAR's Manifest
Continue reading →