Hi,
I have JOnAS 1.5 running and want to stop it from a different VM (but same
machine). My code is:
org.objectweb.jonas.adm.Adm adm1;
adm1.stopServer();
I always get a NullPointerException on the second line. I thought it would
be possible to call methods directly in this manner as the UI I am writing
will always be on the same physical machine as the EJB Server.
If I have to access the "Adm" as if it existed remotely, then "Adm" will
need to be list in the Naming Directory, which means "Adm" will require a
stub class to be used in this way.
How would you recommend I access the classes I need? Any help appreciated.
Thanks in advance.
Cheers,
Andy G.
Andrew Gray
Development Manager
Arclight Strategy Systems