Webservice implementation on JBoss, maven and choice

I have to implement a web service in JBoss5, running on Java 6. According to the JBoss Documentation , the choice uses either a JBoss native implementation, CXF or the metro. Since the family does not need any additional libraries (will CXF pull in Spring?), I thought this would be the first choice.

The WS contract is provided in the WSDL, so I want to generate it. But JBoss tools bark at WSDL, while CXF wsdl2java happily generates sources. Can I use these sources and not be dependent on CXF, but use my own JBoss WS stack? The annotations in the generated classes even point to javax stuff (what could be choice 4. since I can create WS with java 6 without additional dependencies?)

How to set up a web service? Do I still need web.xml to define some servlet? What maven dependencies do I need?

Sorry for all these seemingly silly questions, but I searched and read a lot, but the more I read, the more I got confused. The JBoss documentation is either all about a statement using java beans and annotations, and / or ant, the jboss maven public repository is a mess (some WS stuff is under jboss, others are in org.jboss.jbossws and even other artifacts under org. jboss.ws ..)

Any pointer to howtos and / documentation is appreciated.

+3
source share
1 answer

I would go with CXF, launch a standalone war and just see jboss as a servlet container and completely ignore all the web services garbage that jboss is trying to execute.

CXF wsdl .war. / jboss (jboss , - , , , jboss firstt.

  • wsdl.
  • ( cxf)
  • maven repos,
  • - jboss, - , .

- java 6 - , , . spring, CXF spring , jaxws-commons spring. , maven wsdl , jaxws-ri.

+3

Source: https://habr.com/ru/post/1786232/


All Articles