java - Difference between JAX-WS implementation in container VS Standard alone Application -


i want implement jax-ws api in existing web application runs in tomcat , uses servlet. dont have knowledge on jax-ws. worried web application portability tomcat other servers, preferring implement jax-ws standard alone application in tomcat. what's better way of doing it, implementing jax-ws on java ee container or standalone application in tomcat. there better way of doing it...? , know pros , cons implementing jax-ws in container vs standalone application. , suggest me best jax-ws implementation framework.

so think misusing terms here. standalone application means java se application runs outside of server. guess question is:

should add jax-ws webservices existing java ee application have or make new java ee application on tomcat?

the answer is: depends. beginning it's better create separate application , implement endpoints there.

the simplest possible jax-ws web service be:

@webservice public class myexample {  public string sayhello() {    return "hello";  } } 

you need put in standard dynamic web project in eclipse. if add glassfish server, there's no more do. if use tomcat, you'll need add libraries. can access webservice at: http://localhost:8080/mywsapp/myexampleservice (this implies named project in eclipse mywsapp)

an example of simple jax-ws service , client


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -