Skip to main content

RE: Accessing Glassfish configuration values from domain.xml

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
ss141213
Offline
Joined: 2005-03-30

Here is one suggestion. You use org.glassfish.embeddable.GlassFish service to execute asadmin commands. It's part of a public interface. Just Google for its javadocs. It's available as a service in osgi service registry. So, you can use it easily from uour bundle that is installed using felix fileinstall.

Thanks,
Sahoo

Sent from my Android phone, please excuse me for its brevity.

-----Original Message-----
From: forums@java.net [forums@java.net]
Received: Tuesday, 06 Aug 2013, 23:26
To: users@glassfish.java.net [users@glassfish.java.net]
Subject: Re: Accessing Glassfish configuration values from domain.xml

Hi Tim, Valid point. Currently I am deploying my configuration service OSGi
bundle to the Felix FileInstall location domain1/autodeploy/bundles. Are you
saying that by simply deploying my OSGi bundle to the modules/autostart
folder, I then have an OSGi module and can start to use the @inject
annotation ? Thanks Ed

--

[Message sent by forum member 'ejroberts']

View Post: http://forums.java.net/node/898130

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ejroberts
Offline
Joined: 2010-06-11

Hi Sahoo.

Thanks for that. I hadn't seen the getCommandRunner method on the org.glassfish.embeddable.GlassFish interface.

Cheers
Ed