Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Does Tomcat support Jax-Ws?  RSS feed

 
Prakash RS
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am bit confused by comparison matrix for tomcat and tomee.
http://tomee.apache.org/comparison.html

According to this tomcat does not have support for JAX-WS. But lots of tutorial on net to deploy JAX-WS web services on Tomcat. how come?
What about Jpa? Can I not develop application that uses Jpa and deploy on tomcat? no support for EJB I understood since its not an app server. What about JTA? - I want to know whether single transaction committing over multiple databases is possible on tomcat. there is one more...does tomcat support JAAS? if no what are the alternatives for security on Tomcat?
 
Tim Moores
Saloon Keeper
Posts: 3670
78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat does not support JAX-WS out of the box, but you can use the JAX-WS libraries in web apps running on Tomcat. TomEE 7 comes with those libraries pre-installed. Same with JPA and JAX-RS - those are just additional libraries you can use without problem on Tomcat. For EJB, you can't use Tomcat - you need to use TomEE 7.
 
Tim Holloway
Bartender
Posts: 18608
68
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JPA is a subset of the EJB3 standard. Tomcat does not support any EJB features, including JPA, but there are several JPA libraries that can be used in Tomcat-based webapps as WAR-supplied libraries. Probably the most popular one is Hibernate, but I've also used Apache OpenJPA.

The transaction processing capabilities of JPA are available in the Tomcat-friendly JPA implementations, but XA support for transactions spanning multiple databases (or more accurately, multiple database connections), is not provided to the best of my knowledge. The Spring Framework's transaction management may be able to provide this sort of coverage, however, possibly by linking to a true XA transaction manager. I've had my suspicions, but I've never actually needed to do anything along those lines so I don't know current capabilities.

Some DBMS's support foreign database linkages, and one would reasonably expect that any transactions done via those linkages could also be part of an enclosing transaction for the gateway DBMS.

I've done web services on Tomcat (in JPA-based JSF webapps) using Apache's Axis and CXF facilities.

Of course, if you use enough of the advanced JEE services, neither Tomcat with added libraries nor TomEE is worth the trouble. At that point, you're better off using a full-stack server such as WildFly, WebSphere or WebLogic.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!