| Do not use JBoss web services deployment descriptor |
|
This rule flags any existing webservices.xml to detect the presence of a J2EE web services
deployment descriptor file for JBoss. In the source scanner, the quick fix produces an Ant script with specific IBM Ant
tasks. Those tasks generate JAX-RPC Web services based on JBoss Java Platform, Enterprise Edition (Java EE) web service
deployment descriptors. The quick fix scans the web services deployment descriptors and produces an Ant script.
Conditions for triggering the rule: This rule detects the presence of JAX-RPC web services based on the following criteria: a. The presence of the J2EE web services deployment descriptor file webservices.xml b. In the source scanner it detects that the IBM Ant generated file does not already exist in the root folder of the project. Rule properties: The properties within this rule only affect the quick fix. You must provide correct values for the rule properties. To change the values of the properties for this rule, select the rule in the Software Analyzer Configurations window. Then use the fields in the Properties tab. The properties for this rule are:
Ant classpath:
IBM WebSphere Application Server Ant tasks IBM WebSphere(R) Application Server includes Ant tasks like java2wsdl and wsdl2java to generate the necessary artifacts for JAX-RPC services. The generated Ant script uses these tasks to build the service. Additional information on these tasks can be obtained from the WebSphere Application Server documentation. Running the Ant script After the quick fix produces the Ant script, view the script, and add additional customizations if necessary. Consult the WebSphere Application Server documentation for additional customization for the IBM Ant tasks. You must run the script using the Ant tools provided by IBM that is included with IBM WebSphere Application Server. The IBM Ant script can be run from:
When the Ant targets are run, the produced artifacts reside in the generation folder. You can inspect the generated code, deployment descriptors, and then add these artifacts to their modules. |