You can use JSR88 (
http://jcp.org/en/jsr/detail?id=88) which is part of
the standard JavaEE platform to programmatically deploy applications.
AMX deploy API is deprecated in v2.
KamilBek wrote:
>I have test.ear file. I use Glassfish v2(Sun Java System Application Server
>9.1_01). I whant to write java code wich will deploy and undeploy test.ear.
>I know, that I should use AMX. How to do it?
>
>