[jboss-user] [JBossWS] - Design issue: packaging JAX-WS artifacts

jimpo do-not-reply at jboss.com
Thu Aug 14 03:40:13 EDT 2008


We have a project with several web services (A, B , C) and a client that uses them. The services and the client are separate subprojects, each built independently. Both the services and the client use jbossws JAX-WS but of course other types of external clients may exist as well.

We create the interfaces from wsdl and schemas using wsconsume. This produces the service interface and tens of data classes for each service.

What's the best approach for packaging these artifacts? 

- having the same classes created for the client and the services so that the same classes exist in 2 places results in having to update lot of classes in 2 places when the interface changes
- we could create separate jars for each web service interface: a.jar, b.jar, c.jar and include for example a.jar both in web service a project and the client project. This of course complicates the build structure a bit
- or we could create a single webservice-api.jar which contains the artifacts for a, b, and c. Bit simpler build, but feels a bit bad to combine these 3 services which have nothing to do with each other into same package


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170501#4170501

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170501



More information about the jboss-user mailing list