A
A
Alexander2021-11-30 10:17:07
Java
Alexander, 2021-11-30 10:17:07

What is the most appropriate way to develop Java EE applications using GlassFish at home?

Hello! I have been struggling with GlassFish for a fair amount of time and I can’t fully understand one moment.
I want to run it at home and deploy my Java EE application. But I don’t want to make a full-fledged installation, so I was puzzled by launching the Docker image. And everything seems to be fine, but I ran into the fact that it is not possible to connect to the admin console, since a secure connection is needed and whole dances with a tambourine begin to activate it. And from the extremely small amount of information on the Internet on this issue, I realized that I was probably doing something wrong and digging in the wrong direction, so I began to look for other options. As a result, I came to the conclusion that I just copy the archive with the application to the deploy folder in the container with GlassFish and everything is fine. But one thing arises, this is the need to constantly repackage the application, make a new Docker image and restart the container.
Therefore, I would like to know what is the most adequate option for developing Java EE at home and, if this is one of those that I came to, then what am I doing wrong? And in the end, I would like something like embedded tomcat in SpringBoot.
I hope for understanding and help)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-11-30
@SharkVale

But I don’t want to make a full-fledged installation, so I was puzzled by launching the Docker image.

You have come up with problems for some reason. The archive with GlassFish is simply unpacked to a convenient place, launched by a shell script or bat'nickname, and that's it. GlassFish Embedded is not for development, it's for integration tests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question