wood burning stoves 2.0*
The moose likes Web Services and the fly likes Tomcat versus Axis2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Tomcat versus Axis2" Watch "Tomcat versus Axis2" New topic
Author

Tomcat versus Axis2

James Tildesley
Greenhorn

Joined: Jun 22, 2009
Posts: 6
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
Ulf Dittmer
Marshal

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


Ping & DNS - my free Android networking tools app
James Tildesley
Greenhorn

Joined: Jun 22, 2009
Posts: 6
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
Marshal

Joined: Mar 22, 2005
Posts: 41096
    
  44
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

Joined: Jun 22, 2009
Posts: 6
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat versus Axis2
 
Similar Threads
Tocmat 5.5 or Tomcat 6.0 for new installation?
Multiple axis2 services using same third party jars
Starting Axis2 1.4 - axis2.xml vs service.xml
Asynchronous Web services with Axis2
Axis2 Vs. CXF