in Education by
Im having a jar file(for java classes) with some associated files of my project.Its bacially a client/server based application,but not web based.How can I run this program in a machine(24*7)? How can i deploy it in any application server? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You don't need JBoss or any other application server. Just start it: java -jar yourfile.jar and it will run 24/7. To start it in the background, add " &" to it. If you look for ways to start it automatically, with the system your could use init.d (if on unix/linux). If you want to use an application server anyway, just wrap your jar in a war file and deploy it. This can be done using Ant's War Task or maybe directly from your IDE.

Related questions

0 votes
    Which jar provides FileUtils which contains methods for file operations? (a) file (b) apache commons (c) ... Miscellaneous of Java Select the correct answer from above options...
asked Feb 23, 2022 in Education by JackTerrance
0 votes
    Which of the following is correct error when loading JAR file with duplicate name? (a) java.io.NullPointerException ( ... JDBC of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Can someone please tell me how to import a jar file in eclipse IDE? Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    What is the difference between deploying applications on hosts and containers?...
asked Oct 2, 2021 in Technology by JackTerrance
0 votes
    Which of the following option helps Azure maintain a high availability and fault tolerance when deploying and upgrading applications ... IP address 4. Scale set 5. Replica set...
asked Sep 22, 2021 in Technology by JackTerrance
0 votes
    What is the first step in the process of deploying a cloud computing offering? 1. Assess risk 2. Plan governance 3. None of the options 4. Cloud Readiness assessment...
asked Apr 11, 2021 in Technology by JackTerrance
+1 vote
    Which of the following helps Azure maintain high availability and fault tolerance when deploying and upgrading applications?...
asked Oct 20, 2020 in Technology by JackTerrance
0 votes
    When I try the following lookup in my code: Context initCtx = new InitialContext(); Context envCtx = ( ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 22, 2022 in Education by JackTerrance
0 votes
    I want to try and get an understanding of how JMS works. I am going through a tutorial and have ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    I want to try and get an understanding of how JMS works. I am going through a tutorial and have ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    Can we run Seam outside of JBoss AS?...
asked Jun 6, 2021 in Technology by JackTerrance
0 votes
    What version of JBoss AS do I need to run Seam?...
asked Jun 6, 2021 in Technology by JackTerrance
0 votes
    What if you need to span your transaction across multiple Servlet invocations in JBOSS?...
asked Jun 5, 2021 in Technology by JackTerrance
0 votes
    How can you start a JTA transaction from a Servlet deployed on JBoss?...
asked Jun 5, 2021 in Technology by JackTerrance
0 votes
    Is the Session Factory Thread-safe in JBoss?...
asked Jun 5, 2021 in Technology by JackTerrance
...