aspose file tools*
The moose likes Java in General and the fly likes deploying a java web service to windows 2008 server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "deploying a java web service to windows 2008 server" Watch "deploying a java web service to windows 2008 server" New topic
Author

deploying a java web service to windows 2008 server

ratna sargurp
Ranch Hand

Joined: Jan 12, 2010
Posts: 32
Hi

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?

Any help is greatly appreciated.

Thanks
Joe Areeda
Ranch Hand

Joined: Apr 15, 2011
Posts: 315
    
    2

Hi Ratna,

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.

Joe


It's not what your program can do, it's what your users do with the program.
ratna sargurp
Ranch Hand

Joined: Jan 12, 2010
Posts: 32
Hi Joe:

Thanks for replying. Yes, we do have a windows 2008 server set up with IIS. I want to deploy my webservice to this server.



Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19670
    
  18

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).


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Joe Areeda
Ranch Hand

Joined: Apr 15, 2011
Posts: 315
    
    2

Thanks for jumping in Rob.

I don't know didly about IIS

Joe
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41532
    
  53
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deploying a java web service to windows 2008 server