Skip to Content

How to run Java EE 6 web profile server from command line ?

Hi,

I would like to know if and how we can run Java EE 6 Web profile server from command line / terminal.

(I would like to run the same in a docker container.)

Regards,

Akshay

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 04 at 06:03 AM

    Please check out the Console Client Commands documentation. I think you're looking for the Local Server options.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 02 at 01:35 PM

    Hi Akshay,

    What do you mean by running the application from the terminal? Do you mean "start" the application from neo SDK command line or deploy the app via command line?

    If so, both are supported. Neo's SDK comes with a command line tool in which you are able to do both tasks.

    /path/to/neo deploy --host HOST --account ACCOUNT --user USER --application app_name --source path/to/application.war
    /path/to/neo start --host HOST --account ACCOUNT --user USER --application app_name

    You could also use Maven to accomplish the same. The Neo SDK comes with a samples directory where you can find the main application POM.xml with loads of configuration options to run your app locally for tests or to deploy and start it remotely.

    Check also the following blog and this other one for further reference.

    To the best of my knowledge, Java EE 6 Web Profile apps are web applications, thus in order to run them, you need to perform http requests (maybe you are looking for JUnit tests). As far as Docker containers, I understand they are "images" of a pre-built installation of Tomcat or something similar (JOnAs, etc). So it will require you to deploy the app the same way you are used to in a local tomcat installation (i.e.: WAR file).

    Regards,
    Ivan

    Add comment
    10|10000 characters needed characters exceeded