I have developed a journey planner app using opentripplanner (its a java based server). Now i want to put my server online using Cloudbees, but i don't know how I can achieve this. Kindly help me out in this matter.
Thanks.
According to opentripplanner documentation you can't deploy it on default tomcat container as this require some customization. So the simpler way for you is to embed a servlet container and run as a Java application
Related
I have developed an offline java application and i would like to host it online in internet. I am not sure how to adapt my code as an webapplication. How to adapt html css to my code? (as i already have GUI). thanks.
Not able to find the right example or how tos on internet
You can use some cloud services to run your application, for example you can use AWS (aws.amazon.com/cloud).
Steps you need to perform:
register your account there;
add credit card (it's gonna take like a few dollars from that);
install application container (like tomcat);
deploy your application to tomcat server (for example);
run tomcat (for example).
That's all, enjoy your application online.
For a school project we need to create a Web app with Java and Spring. We also need some sort of cms so we wanted to use wordpress in our app. I have searched for a way to use wordpress within our application but can't seem to find the fitting answer.
Please help :)
Since Wordpress is a PHP-based application, you cannot use it directly in Java web app. Depending on your needs, you might be able to integrate the two by running your Java web application side-by-side with PHP server with Wordpress and share the data via database.
Currently I have a very basic desktop Java application in Eclipse that is meant to add entities to an existing project's datastore on Google App Engine. I have it all setup right now but since I am new to working with Google App Engine, I have no clue on how to get the application to send the Entities into the datastore of my existing project.
I tried looking this up online but most of what I found was for making java web apps. My goal is to have the application running as its own application, not through a browser.
So, what do I have to do to make the application connect to my GAE datastore? Is there some code I need to type, or perhaps some xml file I need to have within the project? I am just using the Java Eclipse plugin for Google App Engine.
Thanks for the help!
Based on the language of your question, I think you really need a big-picture sort of answer, rather than any specific code. Therefore:
You have a desktop application. This runs on some desktop computer.
You have a Google App Engine application with its data store. This runs in Google's data centers.
These are not the same computer. Therefore, they must communicate over the network in some fashion — that is the missing piece you're looking for.
Since GAE is designed around doing web applications, I recommend you think of this as a “web service” situation — that is, your desktop application makes HTTP requests to your GAE application. (The situation is simplified over the general case because you are writing both the client and the server.)
I recommend you read about designing simple web services and do whatever seems to fit your application.
One important warning: Unless your GAE application only ever has one user, you must not simply write a bridge that gives access to the data store over HTTP, because then anyone can make arbitrary changes to other people's data. As it is said for multiplayer game design: don't trust the client — that is, only accept network requests that make sense according to the rules of your application, and do not expect the client to enforce those rules. This is because anyone can make requests to your GAE application using something other than your desktop application, so you must assume you could receive arbitrary requests. This is the fundamental nature of the Internet.
For example, in the simple case of a multi-user application whose users do not interact with each other using the application, this means that every request that, say, updates a record, should only update a record which belongs to the logged-in user, not one of any other user.
For anyone that gets this problem in the future, I got an answer to it. I just tried experimenting around with the project settings and found it. So as it turns out, after you have installed the GAE Eclipse Plugin, you can just right click your project folder in the Package Explorer, go the Google sub menu, then click on App Engine Settings... .
From there, you need to check the Use Google App Engine checkbox, then in the deployment section, just fill in your project's Application ID. Your project's application ID can be found under the Application Settings tab of your project's online Google app engine dashboard. It is listed there as your Application Identifier.
Turns out that for me, I will need to find a different solution as you cannot integrate GAE with a desktop application that uses the Java Swing library. Bummer :/
I would like to see if I can use GWT in my already existing Servlet-site using the Resin web-server, however I am having problems locating any decent guides that can help me out
Does anyone have a hands-on tutorial/guide on how to use GWT outside an "GWT project" or without using Google App Engine (GAE)?
I am still using Eclipse and have GWT plugins enabled and added the GWT support for the project, but I am unsure how to connect all the components together without using GAE.
First of all, you dont need GAE for GWT. I have been using GWT nearly for two years. I do not need to install GAE sdk..
I recommend your to read this document . It explains how to configure application servers to integrate with gwt..
NOTE: I'm a veteran Java developer (10yrs) and have recently decided to make things interesting and jump over to the ASP.NET / C# world. Thus the question...
I have a business requirement to build an ASP.NET web application that can be installed into an "enterprise data center" for use by an entire organization or can be downloaded by a single user and run on their desktop (assuming WinXP or higher). Installing the web application into an enterprise environment is easy, but allowing single users to download a file, double-click, then access the application through their web browser is an entirely different story.
To solve the single user dilemma in Java, I would simply bundle the Jetty web app server into my application and configure the WAR file to start up the web server and run the web application when someone double clicks on it.
Is there any way within the .NET world to do something like this?
Are there other .NET web app containers that I could bundle into my application?
Would I need to create an Installer Wizard that would configure IIS on the users machine?
Any help is much appreciated.
probably the closest thing to what you're describing would be a WPF Browser Application.
What I personally would use is a ClickOnce installed winform or wpf application.
You can include the Cassini web server (free to distribute). This server is great for one or two users, but you wouldn't want to run your site on it.
http://www.ultidev.com/products/Cassini/
There's a side benefit to this .... you can include the code in your solution and set break points wherever you need them. If you're using SharpDevelop instead of Visual Studio set Cassini as the startup project.
EDIT : Just checked the site and I'm not sure if it's open source anymore. I may have used Reflector to generate code to set break-points.