I have been working on a Java webservice using AXIS and Apache Tomcat. I have deployed it on a Server remotely and I am using eclipse to Run the web server.
When I log off from the machine the web service will be stoped.
I need to keep the web service always running no matter what. Its is better if eclipse could handle this.
I would appreciate a specific answers.
Related
I am developing a Java application in windows that employs the use of a Tomcat server. I have added the Tomcat server into Eclipse and have been able to start/stop it by clicking it. I now want to be able to start/stop the server by code but have not been able to find a working solution. Please help!
I am currently writing a web application which uses JBoss6.x as the application server, for load sharing what I have decided is to write some EJB's which can be either run locally on the same machine as the web application on the Jboss or in a separate machine which will be remotely connected which will have Jboss running on it.
Now the question here is, I would be needing only 1 JBoss server to serve the web application, all other Jboss in question should be running with only the EJB Containers. Is it possible to run only the EJB Container and the naming services so that I can remotely connect to the same? Pointers or specific links as to how to go about doing this would be much appreciated.
I have created webservice using following link
http://www.ibm.com/developerworks/webservices/tutorials/ws-eclipse-javase1/section2.html
When i am running a endpoint publish class as java application in eclipse (in my case it is a runservice.java), web service is running fine.
i have created a client for the same webservice client is communicating with webservice properly.
I want to run this endpoint class with jboss or with tomcat without eclipse, it is possible to do this.
Please help.
Notice that the tutorial states that it is a tutorial on how to run a "stand alone webservice application". Since what you are creating is not a java web application but is instead a JavaSE application you will not be able to deploy it to an application server. You will have to create a java web application in order to do that.
Eclipse WS Tutorial
i am new to webservice. i need your help to understand deployment process.
I have created a new webservice by using following tutorial
http://www.ibm.com/developerworks/webservices/tutorials/ws-eclipse-javase1/section2.html
web service is running fine in eclipse,
right now i am running this service by right clicking on endpoint class and run it as java application. i want to run this service manually because on our server we not going to install eclipse.
You need to bundle your web service implementation classes as jar and you need to deploy to any Java EE complaint servers like JBoss or GlassFish.
You need some web site to host your application. Eclipse is hosting it for you on your local machine but to use manually I assume you mean you want it on a real site?
Is it possible to distribute Tomcat by Java Web Start and run it from there?
My application shall run within its own Tomcat server on the machine it is deployed on. Can I package Tomcat and the client application into one Java Web Start archive and run the Tomcat server and the client once the user has
downloaded the Java Web Start archive?
You cannot run a full blown Tomcat as it expects a certain layout in the filesystem and scripts and more.
You can however run an embedded web server in an application where you control it completely. I have done that with Jetty. You might find Howto embed Tomcat 6? interesting.
This might be possible if you signed all the jars correctly. But, it seems like this is quite a heavyweight solution. Have you considered doing this with Jetty?