If an exception occurs, sometimes it's difficult to build and restart your running software system. Especially if you are using complex associated and distributed software components which hold states. The solution could be the usage of a runtime inspection mechanism. The Pax Reflector project supports the manipulation of object instances at runtime level. The following steps describes the usage of the Pax Reflector in OSGI environments.
Step 1 - Checkout and Build:
svn co https://scm.ops4j.org/repos/ops4j/projects/pax/reflector mvn clean installStep 2 - Download Pax-Runner
Step 3 - Starting of the OSGI Engine
sh bin/pax-run.sh --profiles=web,config \ mvn:org.ops4j.pax.reflector/pax-reflector-service \ mvn:org.ops4j.pax.reflector/pax-reflector-servlet \ mvn:org.ops4j.pax.reflector/pax-reflector-types \ mvn:org.ops4j.pax.reflector/pax-reflector-html \ mvn:org.ops4j.pax.web-extender/pax-web-ex-whiteboardStep 4 - Look at http://localhost:8080/reflector
Regards
Rafael
Technorati Tags: Inspection Java Inspection PAX Reflector
