I created an application that is running locally without server. It recieves data through a socket, processes it and then sends the result back.
I want to host it on a local apache-tomcat server using Eclipse, and I already created the server.
How can I run the program on the server ? Do I have to convert the project to a web project ?
Couldn't find any tutorial except for webpage-creating projects...
Thanks
If you're already using sockets, there is a good chance Tomcat won't be serving your needs. As for web application projects, you need to use, e.g. Servlets to serve requests on server wrappers like Tomcat.
Related
I'm trying to figure out how to deploy an Angular.js app to a Weblogic server and am getting stuck. The goal is to have a Java Servlet running a REST API to communicate with the weblogic server while the Angular app serves up the front-end.
Typically, I used a gulpfile to build my Angular application and bower to manage the dependencies. I can't figure out how to fit the Java Servlet into the build though, and what to do about deploying the app to the weblogic server.
I read that grunt and bower can be used to generate Maven files which would then be installed as artifacts on the local repository, but it isn't making much sense to me. Has anyone done something similar to this before and have advice?
Oops. all right!?
I'm currently having to develop applications in AngularJS to be used in an application server. Specific tasks that the Gulp can provide, I will be flawed if i try to say something as use Grunt (grunt-contrib-war), but on the issues architecture're, i created e install 2 aplications to the weblogic, usually with CrossOrigin defined between them. therefore its development is separated, Service layers and consumption layer.
In a larger scope could consider using:
Service-web
Service-oauth
Service-rs
ApplicationA
ApplicationB
P.S .: Searching in npm to found: https://www.npmjs.com/package/gulp-war
I have created a Java restful server application which can be compiled as a JAR/WAR file and I have another front-end application built using knockoutjs and HTML5 which talks to the Restful Server side application.
I am trying to deploy both on to Amazon Linux AMI EC2 Instance. I was successfully able to deploy the JAR after setting up a glassfish server on the server. The server side application is running completely fine.
I am having problems in understanding how the HTML5 application needs to be deployed on the AWS server. So that both can be accessible from the same server.
It would be great if some best practices are also suggested.Appreciate any help
Thanks
You probably want to put your GlassFish application server behind an HTTP server like Apache HTTPd or nginx, and either of those servers could then also serve your static content -- your HTML and JS. Check out http://www.codefactorycr.com/glassfish-behind-apache.html
I'm working in a lab where they typically deploy apps to Geronimo. I have an existing stand-alone server based app written in Java. Can any Java application be hosted in Geronimo? If so, is there a good reference to take an existing app and host it in Geronimo? Is there a benefit to hosting something in Geronimo or are there times when something is best left as a stand-alone app?
When you work on an Application Server, there is specific way a program should be written for it to be qualified for deployment on app server. A program can be a Servlet, EJB, JSP etc. If your existing stand-alone server based app is any of these, then it can surely be deployed on Geronimo.
I want to check deploying procedure of my struts2 web application developed using eclipse juno on local tomcat server. I want to deploy it to a remote host like 000webhost. Can you provide me any information how to do that?
well, I run my application by typing
http://localhost:8080/Struts2starter/
on browser I want to run it by typing
http://myapp.com/Struts2starter
like something on browser. I wanted to know how to do it.
I don't believe you can deploy a Java application in 000webhost. For example, you can deploy on Google App Engine. Here is an example of how to do that: http://www.mkyong.com/google-app-engine/google-app-engine-struts-2-example/
It depends on server in question. Most servers provide some kind of remote deployment using manager applications / rmi connectors / whaever else exitic means , and eclipse can work with most of them. But of course it needs to be configured on both sides in order to work. Be more specific about your server config, and you will surely get proper answer
I have a java web application that I am developing in Netbeans (and running through Tomcat). Is there any way to put this application on Sharepoint?
This is my first time doing this. I've read that to post the application to a tomcat server you just have to copy the .war file over, but I haven't been able to find an easy solution for Sharepoint.
Sharepoint isn't a Java Application Server. You'll have to use Tomcat (or another Java Application Server) to host your application. If you need to interact with Sharepoint from your application, you'll have to use web services, a shared database or something else to communicate.
That's not possible out of the box. SharePoint only runs ASP.NET applications, not java projects.
You can deploy the solution to a Tomcat server and then use the Page Viewer Web Part to show external content.