Technical Blog Post
Abstract
Create a Web service project for RuleApps for WebSphere Application Server V7
Body
JRules along with the out of the box feature provides an extensive API in order to create your own Client for ruleApps project generator. This API involves an eclipse UI, in order to create your own wizard and code generation API using Velocity.
To illustrate this API you can use the following sample to generate a Web Service project for WebSphere Application Server V7.
To install, unzip the following file in the folder <jrule-install>/eclipse/dropins:
WebSphere_V7_webservice_1.0.0.zip (Click to download zip file)
When you run the New Client Project for RuleApps wizard, you will then be offered the possibility to select Web Service for WebSphere AS V7:
New Client Project for RuleApps (Click image to enlarge)
The generated javatm project comes with an ant build.xml script that provides a target deploy-ruleapp to deploy the ruleapp to the specified WebSphere RES Configuration and a target create-ear to generate the webservice application ready to install in WebSphere Application Server V7.
If you elect to generate the web service as an Monitored Transparent Decision Service (MTDS), you will be able to use the RES console to monitor the execution:
TransparentDecisionService (Click image to enlarge)
The source code is included in the zip file for review and customization as needed.
We welcome your feedback.
UID
ibm11080531