Niclas Hedhman wrote:

On Tuesday 16 December 2003 05:47, Nicolai Wadstr�m wrote:



One of them is a Text-Mode Console that will accept commands from stdin and
send response to stdout (I am also working on getting remote telnet support
for it), that allows one to query jvm stats, memory and submit commands to
different components. I find this very useful during the development
process of both client and server applications. Now it also has an
integrated BeanShell interpreter that allows for advanced commands to be
executed as well as scripts (for example you can build scripts that dump
certain information by issuing java calls on your components).



Really Cool. I have a not-so-advanced one myself in certain cases.




For this I am looking a way to query Avalon/Merlin for which components are
currently deployed, and information about them. Do anyone have some input
on how this should be done from a loaded component? (The Console is a Block
itself, that is included in another Block).



There is a small problem; Classloaders. They will protect components to reach each other's guts.


One possible solution that may work, would be to create the console as a LifeCycle extension, as all components will "fly by" in those hooks.


And an even better approach would be to add block listener support and add this functionality as a facility without any intrusion on the component.

Cheers, Steve.

--

Stephen J. McConnell
mailto:[EMAIL PROTECTED]

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/                               |
|------------------------------------------------|





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to