Adam Bien's Weblog

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]


NEW workshop: Building HTML 5 Applications Without Frameworks, Full week in December 2016: from Java EE 7 Bootstrap, Effective, Architectures over Testing to Microservices
On demand workshops: Java EE 7: Bootstrap, Effective, Testing and Microservices available for streaming.

Newsletter: airhacksnews.com

A book about rethinking Java EE Patterns

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
realworldpatterns.com
Online Workshops
...the last 150 posts
...the last 10 comments
License