I am trying develop a install war application for other war application.
The install application must add new JNDI connector to the glassfish.
In this way i need modify the glassfish's domain.xml in my application, to add new resource.
Too the application must modify the persistence.xml of the war application.
In conclusion my problem is ; what class i can use for navegate in the folders of glassfish, ( i need that for get access to the domain.xml and persistence.xml )
sorry for my bad English
Why can't you just use asadmin? It can configure everything for you and updates the domain.xml properly. It launches CLIMain which is a java class. If you must, you could just instantiate it directly from your java code or better yet, use the JMX interface.