Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
i am creating an android application which has got two parts a client part and a server part. So the client will be asking the serveer for a particular data and server need to give it back to the client. My question is how i can run this server program (jar file ) in a web server. I have tested it locally using eclipse but i need to know how i can put this into a web server and run it there. So that the client can use a data connection and connect to the server program and get back the respose from there Sorry for the inconvenience caused and a thank you in advance
From the way you describe your server it sounds like a simple .jar file that you built. If this is the case, you can simply deploy the jar on any compatible computer (or webserver) that you have shell access to.
Build runnable jar in eclipse
Place the jar file on some server
Make sure the server has java installed (same java you used to build your runnable jar)
Run the jar using java -jar path_to_jar.jar
To answer your question, you can run this in the background of a server running other services as long as you pick a port that isn't already in use. Make sure you enable port forwarding on your router/firewall (if you have one) if you want to access the service externally.
You will require Tomcat server for running Java ,jsp
To start with hosting this link might help you.
How to host a JSP website on a webserver?
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
We are well on our way to Dockerizing Domino. In fact, we have a Domino Docker running in IBM Cloud (bluemix) that replicates with on prem.
What we want to be able to do is automate the standing up of a Domino server.
In our script, we are thinking of calling a custom program we can build that will use either the C API or Java API to register a new server, deploy a XPages (JSF) application to it, and start the server, replicate over the common user directory (names.nsf) from the master server.
Currently, we started the Domino Container in CentOS in listener mode. We registered the server on prem, and copied over a bunch of files (server.id is one of them) and edited confirmation to manually configure it. We want to automate this process.
Any insights on how this can be better accomplished? any api references you can share to get us most of the way there?
Yes, this is possible. We have done this in Lotusscript using LS2CAPI.
As we are accesing API functions, this is also possible using Java. Not sure, if domino-jna already includes the needed Api calls, but this can be implemented. Take a look at github for Karsten Lehmann and domino-jna.
domino-jna can be used from XPages as well.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am working on a scala-spark application which I would like to migrate to the runnable service model.
For the application could be invoked but I would like to run the application as a service which could be stopped and stopped from a Unix/Linux command.
Also, deploy the application on webserver and build Rest APIs.
Would writing a wrapper in Linux/Unix make sense to run it as a detached daemon process?
Can someone guide me what is the right tools if any which could help me in rapid development?
Thanks,
Az
You could :
embed a REST API or whatever service you want into the driver
use the livy project as you can see in the paypal presentation ["spark compute as a Service"][1] https://spark-summit.org/2017/events/spark-compute-as-a-service-at-paypal/
As for start stop restart and so on you need to track the applicationid to kill (assuming you are using yarn)
To be stopped and started, you could use the thrift server and feed in straight SQL commands. You could run a spark job that opens a listening port as well, which is what Zeppelin does.
To deploy the application it depends what language you like but you could use flask with Python or Play with Scala.
Also, you might want to look at Zeppelin, you can write the jobs on notebooks and then use the Zeppelin API to pipe in http requests. Actually if you go this route, I'd be interested to look at your web service client because I'm goinng to be doing the same thing
https://zeppelin.apache.org/docs/0.7.0/rest-api/rest-notebook.html
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to publish my project on internet through my paid web
, but they doesn't support JSP pages and glassfish.
So is there's any way to publish it?
There are different ways to deploy your build to web servers according to the server. In this situation you telling that you are using glassfish server. It allows three different methods as follows.
1. Using admin console
First thing you should be able to access admin console which is http://localhost:4848. Follow the link below the step by step guide to deploy from oracle help.
https://docs.oracle.com/cd/E19798-01/821-1757/ghgjn/index.html
2. Using command line
You should be able to access command line with asadmin commands. Use following guide to deploy using command line.
https://docs.oracle.com/cd/E19798-01/821-1757/ghgjj/index.html
3. Deploying an Application Automatically
You can deploy applications automatically by placing them in the as-install/domains/domain-name/autodeploy directory, where domain-name is the name of the domain for which you want to configure automatic deployment. Follow the link below to step by step guide.
https://docs.oracle.com/cd/E19798-01/821-1757/ghgmi/index.html
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am going to build web application in Java (JSP). In my web application ;JApplet will communicate with the database that is on other place(Remote Database).
My question is that how applet can take and give the data from the database.
I am Using MYSQL database.
Can I use JDBC for that ?If so then how?
Unsigned applets must follow the same origin policy, hence the applet will only be able to talk with the server from where it was downloaded. For this case it may work, assuming you bundle JDBC driver somehow (like moving driver classes into applet jar, or trying to use multiple jars in the same applet).
However if you want to deploy the application more widely, it may be better to use text based communication (XML or JSON) on the server port 80. JDBC port may be blocked by various firewalls.
As the alternative to the applet technology, you may also look into Google Web Toolkit. It is the same Java (just toolkit compiles to JavaScript) and you should feel at home, but it is easier to deploy reliably. GWT provides callbacks to pass the data to and from the server.
what you exactly wanted to do is run to your applet inside your web container for that you study the architecture of J2EE web container that how it run applet container.you can check on the oracle site link : about j2EE containers. for the architecture you can view this :http://tekmarathon.files.wordpress.com/2012/10/j2ee_component_diagram.png
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am trying to setup glassfish as WebServer for my web application. I have installed the
glassfish in my server and tried to upload the folder I got some error. I have another error asadmin is not recognized if I tried to access from another computer. Any body has worked previously in this issues. Please share your insights and thoughts. Thank you.
The default configuration of asadmin is not configured to respond to connections made from other computers. If it were, then after starting glassfish, anybody could start trying to configure your system, including people who have access to your network that you've never even met.
You can reconfigure glassfish to expose asadmin to external connections, but if you make a mistake, you just let strangers access to your configuration interface. That can lead to a disaster if the strangers are not friendly people.