SoaFaqAddJavaEEWebApp
How to add a JavaEE or Web app project into a composite application?
Contents |
JavaEE and web application projects created on NetBeans can be added to a service assembly as a component of JavaEE service engine. The following is a list of commonly asked questions about how to add JavaEE or Web app projects:
JavaEE/WebApp projects with web services created from WSDL
If the web service in a JavaEE/WebApp project was created from WSDL directly, then the resulting EAR or WAR file will be packaged with the source WSDL. These projects can be added to and used directly in a CompApp project.
- create and implement a web service in a JavaEE/WebApp project, WebApplication1, from a source WSDL
File:Wsfromwsdl.gif Web service from WSDL
- drag-n-drop the JavaEE/WebApp project, WebApplication1, to the JBI modules area in CASA
- click on the build action of CompApp project to generate the content of JavaEE SU for WebApplication1
File:Javaeesu.gif WebApp as a JavaEE SU
- the JavaEE SU endpoint can be connected to other endpoints of the same port type in CASA
File:Connection.gif Connect to a JavaEE SU endpoint
JavaEE/WebApp projects with web services created without WSDL
If the web service in a JavaEE/WebApp project was created from annotations and/or Java code directly without a source WSDL, then the resulting EAR or WAR file will *NOT* be packaged with the source WSDL needed in CompApp. The soruce WSDL has to be created and added to the CompApp project separately as follows:
- create and implement a web service in a JavaEE/WebApp project, WebApplication2, using annotations and Java code directly without WSDL.
File:Wswowsdl.gif Web service from WSDL
- right click on the web service node and select the "Generate and Copy WSDL.." action
File:Genwsdl.gif Generate WSDL
- in the Generate and Copy WSDL dialog, select the source/jbiasa directory of the target CompApp project, webCA2
- drag-n-drop the JavaEE/WebApp project, WebApplication2, to the JBI modules area in CASA
- click on the build action of CompApp project to generate the content of JavaEE SU for WebApplication2
File:Javaeesu2.gif WebApp as a JavaEE SU
- the JavaEE SU endpoint can be connected to other endpoints of the same port type in CASA

