Enabling Remote Administration For Glassfish

GlassFish 3.1.2+ does not allow remote administration out-of-the-box. To activate remote administration you will have to set an admin password before performing the actual enabling:


asadmin change-admin-password --domain_name [DOMAIN_NAME]
asadmin enable-secure-admin --port [PORT_NAME]

Comments:

Another thing I found (at least for version 3.1.1) is that to enable secure admin access for additional domains, one refers to the port number the domain is using for admin access:

http://stackoverflow.com/questions/8619063/glassfish-3-1-1-how-to-enable-secure-admin-for-different-domains

Posted by Dave on April 08, 2012 at 12:57 PM CEST #

Adam, it's Easter. Stopp working. ;)

Posted by Jens on April 08, 2012 at 02:33 PM CEST #

@Jens,

I only had to implement some Easter Eggs before Easter :-)

But: why you are reading technical blogs during Easter? :-)

adam

Posted by Adam Bien on April 09, 2012 at 01:13 PM CEST #

And, once you do that, how often do you have to provide authentication details to NetBeans once you've registered that remote instance in the ide? ie: does it ask you every time you start NetBeans, or is it storing the password for you?

Posted by Peter Belbin on April 09, 2012 at 11:28 PM CEST #

Thanks :)

Posted by Ehsun on April 01, 2014 at 06:38 PM CEST #

Perfect just two line of code required

1.
asadmin change-admin-password --domain_name [DOMAIN_NAME]

2.
asadmin enable-secure-admin

Thanks!!!!!!

Posted by rushi on January 14, 2016 at 04:41 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments
License