I am hoping this is the right forum for this question. I have a JAX-WS webservice that I want to deploy on to a windows 2008 server.
I have never deployed a web service before and so I have no clue where to start. Can anybody please help me and tell me 1) how to deploy a web service 2) how to deploy a java web service on a windows 2008 server?
I'm not really a JAX guy but I think we need more information before we can help.
Do you have a server setup or are you asking how to set up the server?
Depending on which server you choose the exact deployment method will be a bit different.
The only JAX server I'm at all familiar with is Glassfish but there are others I believe. If that's what you want to use Oracle docs are pretty good. Check out http://java.net/projects/jax-ws the left hand links describe Glassfish and its documentation.
It's not what your program can do, it's what your users do with the program.
Joined: Jan 12, 2010
Thanks for replying. Yes, we do have a windows 2008 server set up with IIS. I want to deploy my webservice to this server.
Forget about that. IIS doesn't know how to handle JAX-RS, or any serverside Java code.
What you need is a server that does know how to handle it like JBoss (does Tomcat also support JAX-RS?). Then you can setup IIS to forward calls to the JBoss (/Tomcat) server using the AJP protocol. There's a bit of documentation on how to do that on the Tomcat website (JBoss uses Tomcat internally so what works for Tomcat should also work for JBoss).
While a separate Tomcat would be an easier and cheaper option, it's worth noting that it's possible to deploy Java web apps on IIS with the help of an add-on such as ServletExec. Or you can have IIS and Tomcat work together as described here.