Attaching BeanShell to a Running Process

mohsen mollanoori <[email protected]> Sun, 16 Aug 2009 14:02:21 +0430
Newsgroups gmane.comp.java.beanshell.user
Message-ID <[email protected]>
Hi,
I was working with AdaptJ Stacktrace yesterday and I am wondered how
it uses BeanShell to communicate with a running java process.
Stacktrace allows you to select an already running java process and
allows you to attaches a BeanShell console to that process.
Thereafter, you can simply run BeanShell commands inside that process.
I want to know, how can we run a beanshell snippet inside a running
process? Note that neither the target process has BeanShell jars in
its class path nor the process is run with attach mechanism (JMX)
enabled. Even, JConsole cannot attach to the process.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july