• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat versus Axis2

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am looking at implementing some Web Services and am wondering how best to do this. The two options I have are running the Web Services on Axis2 which is running on Tomcat or running the Web Services directly on Tomcat. Running directly on Tomcat would provide a much easier way of doing this as I could use the built in features of NetBeans for interacting between web services (I have developed web services this way before). I am really wondering what the differences are between these two methods? Also, in the long run we are looking at implementing a SOA architecture to the system so whichever method would be work with that would be great.

Thanks for any help

James
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean by "running the Web Services directly on Tomcat"? Tomcat has no built-in WS provisions, so whatever NetBeans does - it must be installing/using some SOAP toolkit as well (I'm guessing that it uses the JAX-WS reference implementation, but I'm not sure about that).

If you're set on using an IDE for this (personally, I've never seen the need for that), then I'm sure you can find plugins that work with Axis 2 as well; I know there's one for IntelliJ.
 
James Tildesley
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, when you create a web service in net beans it does indeed use JAX-WS and it generates a .war file that can then be deployed and ran directly on Tomcat. You can also use the plug-in functionality of NetBeans to create Axis2 Archives (.aar files) that can be deployed onto Axis2 (which I have running on Tomcat). The question is; what is the difference between these two approaches?

Thanks

James
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are some things Axis does that the JAX-WS RI doesn't, and vice versa, but for most usage scenarios those differences don't matter.

I'd start by selecting one of the frameworks based on whatever criteria make sense in your situation (development, deployment, runtime, etc.), and then look for a convenient way to develop for it.
 
James Tildesley
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, I just really wanted to know if there were any performance differences between the two.

Thanks for that, will probably use JAX-WS as it makes the development in NetBeans so much easier

Cheers

James
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic