[Beginners Corner] - Verifying JBOSS Startup and Shutdown via STD Out
by avalanche333
I am writing some JAVA code that will SSH into a linux server and run the start and stop scripts for JBOSS.
My knowledge of JBOSS is basically 0. What I basically would like to know is what std out trace I can look for in my SSH Session to verify the JBOSS startup script (to my knowledge this is run.sh) has ran successfully (or failed) and started JBOSS?
Once this is complete I would like to do a ps (or whatever else I can do) to verify the JBOSS server is actually running. (Remembering all I have to work with is the STD Out trace)
I would like to do the same for a the shutdown script (shutdown.sh -S)?
Can someone please help me out and let me know what is the proper std out trace I should be looking for to do a proper verification that JBOSS server is running through STD OUT.
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185382#4185382
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185382
17 years, 6 months
[JBoss AOP] - Re: Acting on class load
by fbrueseke
Thanks for the quick answer.
So what I would have to do is:
- Implement my own class that conforms to the interface "java.lang.instrument.ClassFileTransformer"
- Register an object of that class with the PluggableInstrumentor
and then I'm ready to go?
So in code:
public class MyTransformer implements ClassFileTransformer
| {
| public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined,
| ProtectionDomain protectionDomain, byte[] classfileBuffer)
| throws IllegalClassFormatException
| {
| //do something ...
| }
| }
| public class someOtherClass
| { //all static for simplicity
| public static MyTransformer transformer= new MyTransformer();
| static{
| PluggableInstrumentor.getInstrumentor().addTransformer(transformer)
| }
| }
Is that correct?
Kind regards
Frank
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185369#4185369
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185369
17 years, 6 months