Export java web service from eclipse java ee - java

This might be a newbie question. But I am working with iPhone programming and I have hosted my own webservices written in Java on a ubuntu linux and Eclipse EE edition with a glashfish server. Is there any easy way to export this webservice and getting it hosted elsewhere.
I have been looking around for a solution but have not found the grail yet.
All help is appreciated

I don't know what you have in mind when you think "export", but you're deploying a WAR file locally on Glassfish. That's the package you need to pick up and move to your hosting service. They, in turn, have to accept WAR files and deploy on a Java EE app server.
Your WAR file should be portable if it has everything your app needs. Make clear what you need from the server (e.g. dependent JARs); everything else should be in your WAR.

If you can adapt your solution to the limitations of the Google Application Engine, they will host it for free.
This strongly depends on how many Java EE features you use.

there any easy way to export this webservice and getting it hosted elsewhere.
You just need to take war file and deploy it somewhere else you want

Related

Launch a Java web application on internet

I have a project made with Eclipse or Netbeans, it's a Java web application, I would like to deploy this application on web, using a free server, It's only a trial for to learn how function, Could you explain how I can do it ?
You need an application server that supports Java. Tomcat, JBoss, Jetty, any one who fits your needs. Then, just upload your war file into webapps folder (for Tomcat) and it will do the work for you.
You can check here some free or trial services that should be enough for learning.
Then, when you kickass deploying web apps, just subscribe some java application server service or, as I do, rent a VPS and install all you need. Give you some more work, but much more flexible. I've been using ovh VPS and for the price, I'm very happy. Good luck ;)

How we can deploy an ear file in a remote jboss 8.2 wildfly server?

Can someone please help me to deploy an ear in server.
my requirements are:
The ear should be deployed by by jboss-cli. Because I need to deploy the ear file in remote server.
It should work in all platforms like Linux, Windows etc
I want to write the code for this in a build.gradle.
so someone please help me.
Deploying via jboss-cli to a remote server is quite simple, anyway you can do this using multiple options
building a recipe, as documented here: https://docs.jboss.org/author/display/WFLY8/CLI+Recipes
simply hacking into your favorite linux shell, as described in Adam Bien's blog here: http://www.adam-bien.com/roller/abien/entry/deploying_from_command_line_with
Both ways work fine. I personally suggest using the second way, since most deployments aren't rocket science. :)
Take a look at the Gradle Cargo plugin.

From Basic Java Project With Web Service To Deployable Glassfish Artifacts?

I am trying to learn about Web Services, Glassfish, Eclipse, etc. and the way I learn is I like to do things manually Instead of playing around with Dynamic Web Projects as many of the tutorials online ask you to do. I am starting with a basic Java project and creating the WSDLs, client stubs, etc. by hand.
I have (remarkably) come pretty far along. What I have done so far is create a web service class and used wsgen to create the WSDL and then used wsimport to create client stubs.
The part that I am stuck on is how do I deploy my service to Glassfish? I have been able to do it using Eclipse (right-click, -> Web Services -> Create Web Service) but as I stated above I want to learn how things work under the covers. So let's say I was using nothing but Notepad and a Java command line compiler how would I go from my current Web Service project to something that is deployable in Glassfish?
Thanks!
You find a hell lot of examples on the Apache TomEE website. This one might fit your needs.
http://openejb.apache.org/examples-trunk/simple-webservice/
You need to package your Webservice and deploy it to the container. There is merely anything happening "under the hood". It's just bred and butter stuff for your IDE. you could also do everything "by hand" (war, http://www.openscope.net/2010/01/25/war-deployment-file-structure/ ; asadmin deploy http://docs.oracle.com/cd/E19798-01/821-1751/giobi/index.html).
M

Common practice deploying/publish/debuggin a java webapp

I have always programmed my applications in php. But recenlty I discovered that best combination of language and server to achieve scalable comet functionality is Java + Jetty, because jetty support continuation, which eases the number of threads in the server. However, I'm slowly learning Java right now. I'm using Eclipse as my IDE with the plugin RSE(Remote System Explorer). When I used to program in PHP I just created a new php-file inside of htdocs in my Apache webserver, very simple to deploy. But now when I program in Java I have to compile the file too. Another flaw is that I cant create a Dynamic web project in RSE, so to deploy a webapp I have to drag all my file in my personal computer to my remote server and unzip and compile(manually via ssh). How do you guys deploy your java webapp in Eclipse?
And yes I haven't found any good answer to this on the web yet before asking this question.
Install a web server on your machine, and do all your development and tests locally on your machine. When the application is ready, deploy it on your remote server.
You don't have to compile it on the server. Java bytecode is portable across OSes and machines. You can build your war file on your machine and send it to the remote server.

Pure Java app on Glassfish?

I may be barking up the wrong tree here -- it's relatively easy to wrap a vanilla Java app in a daemon/service -- but it'd be really helpful for deployment if we could push pure Java apps onto a Glassfish server and have them start up automatically.
We use JMS to connect this app to several other beans living on the Glassfish server. We are actually using glassfish to "deploy" it to the production machine, but it doesn't start automatically. Have been looking into JCA, but it doesn't seem like quite what I'm looking for.
Thanks!
If your 'pure Java app' is packaged as .war you could add a ServletContextListner to your app that gets called when the application is loaded and that performs the starup of the application...

Categories

Resources