• 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

Does Tomcat support Jax-Ws?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Saloon Keeper
Posts: 7582
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic