Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 695781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:59:41+00:00 2026-05-14T02:59:41+00:00

We are implementing an application with a webservice as component and decided to use

  • 0

We are implementing an application with a webservice as component and decided to use the Glassfish 3.0 embedded distri to provide the webservice. And it works.

We need a SSL(HTTPS) connection to the webservice, but we didn’t find any documentation or hint how to activate it programmatically via the embedded API.

Thus we tried to configure the embedded Glassfish via domain.xml, what has a listener configured with SSL. And the port is reachable but only without SSL. The embedded Glassfish seem to ignore the configuration to activate SSL for the port.

Has anyone experience in configuring embedded Glassfish with SSL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T02:59:42+00:00Added an answer on May 14, 2026 at 2:59 am

    Ok,
    sorry that it took so much time for my answer.

    The programmatical embedded API seems not to porvide a way to do this task.
    Except to run an asadmin command:

    logger.debug("Configure port for SSL");
            String command = "create-http-listener";
            ParameterMap params = new ParameterMap();
            params.add("listeneraddress", "0.0.0.0");
            params.add("listenerport", "443");
            params.add("defaultvs", "server");
            params.add("securityenabled", "true");
            params.add("enabled", "true");
            params.add("DEFAULT", "http-listener2");
            CommandRunner runner = server.getHabitat().getComponent(CommandRunner.class);
            ActionReport report = server.getHabitat().getComponent(ActionReport.class);
            runner.getCommandInvocation(command, report).parameters(params).execute();
    

    Running this code is simmlar to execute:

    asadmin create-http-listener --listeneraddress 0.0.0.0 --listenerport 443 --defaultvs server securityenabled=true --enabled=true http-listener2
    

    But this solution creates a new port with SSL. Reconfigure the already started port would be a nice option.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am implementing an application in opengl es2.0. I need to use pushmatrix() and
I need to run an application in an embedded system continuously. While implementing this
I am implementing an iPhone application. In that I need to use a timer
I am implementing a database application and I will use both JavaDB and MySQL
I am implementing the application which consumes webservice (first authentication and then calling different
I am implementing an application. In that I need to find out a way
I need a help from you, That is I am implementing an application in
I have an application implementing incremental search. I have a catalog of unicode strings
I'm implementing an application which want to draw lines in the panel. But the
I'm currently on my way to write a web application implementing the MVC and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.