users@glassfish.java.net

Re: How to do create/delete-jvm-options programatically without using asadm

From: <glassfish_at_javadesktop.org>
Date: Thu, 07 Jun 2007 08:11:35 PDT

> Hi all,
>
> I would like to do the create/delete-jvm-option
> programatically either through AMX mbean calls or
> using other helper classes. I was trying out a few
> things but it did not work. I tried using the helper
> class JVMOptionsHelper but was not successful. Has
> someone tried doing this?
>
> Thanks
> prakash.

You should be using JavaConfig class as documented at:
https://glassfish.dev.java.net/nonav/javaee5/amx/javadoc/com/sun/appserv/management/config/JavaConfig.html

Let me know if you don't know how to access JavaConfig Object.
It should be straightforward.

Regards,
Kedar
[Message sent by forum member 'km' (km)]

http://forums.java.net/jive/thread.jspa?messageID=220990