Download presentation
Presentation is loading. Please wait.
Published byCathleen Dalton Modified over 9 years ago
1
Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com
2
12/7/2015 © ILOG, All rights reserved 2 Java Based eXecution Object Model (XOM)
3
12/7/2015 © ILOG, All rights reserved 3 JRules unable to create a HTDS
4
12/7/2015 © ILOG, All rights reserved 4 Success with WebSphere and JRules Goals Quick Web Service solution for WebSphere Minimize required coding Benefits Quickly create and demonstrate JRules MTDS on “unsupported” platform Minimal coding and configuration required Solution Use OOB Java Client for RuleApps Web Service Patch the OOB WebService for RAD and WebSphere Use RAD 7.0 to generate Web Service Situation Need a WebSphere Web Service for a Java XOM (MTDS) JRules 6.6 does not create a OOB web service for a Java XOM on WebSphere WAS 6.1 does not support JAX-WS 2.0 (need “Feature Pack for Web Services”) RAD 7.0 does not support JAX-WS 2.0 (will be added in RAD 7.5?)
5
12/7/2015 © ILOG, All rights reserved 5 Solution Outline Use JRules OOB Features…. Create a Client Project for RuleApps …to Create a WebSphere MTDS Copy classes to a (new) RAD Dynamic Web Project Copy resources to RAD Dynamic Web Project Modify the JRules generated classes for RAD Generate the new Web Service Deploy and Test
6
12/7/2015 © ILOG, All rights reserved 6 Code Foundation Samples > Rule Execution Server Integration > How to Generate a Monitored Transparent Decision Service Used as a foundation for this example
7
12/7/2015 © ILOG, All rights reserved 7 Prerequisites Using Rational Application Developer 7.0 Java XOM must be serializable
8
12/7/2015 © ILOG, All rights reserved 8 Solution Outline Use JRules OOB Features…. Create a Client Project for RuleApps …to Create a WebSphere MTDS Copy classes to a (new) RAD Dynamic Web Project Copy resources to RAD Dynamic Web Project Modify the JRules generated classes for RAD Generate the new Web Service Deploy and Test
9
12/7/2015 © ILOG, All rights reserved 9 Creating a new Dynamic Web Project
10
12/7/2015 © ILOG, All rights reserved 10 Creating a new Dynamic Web Project
11
12/7/2015 © ILOG, All rights reserved 11 Creating a new Dynamic Web Project
12
12/7/2015 © ILOG, All rights reserved 12 Modify the Generated Classes Remove all JAX-WS annotation RAD 7.0 does not support JAX-WS PretradecheckswdsRunner PretradecheckswdsRunnerImpl Change the RuleExecutionException class to general Exception class Web Service wizard in RAD expects default constructor in the exception PretradecheckswdsRunner PretradecheckswdsRunnerImpl Change the rule session provider to SIMPLE_RULESESSION_PROVIDER No requirement to use the J2SE_RULESESSION_PROVIDER PretradecheckswdsRunnerImpl Change MBean properties to match new information PretradecheckswdsrulesListener Change the wsdlurl to match the URL (http://localhost:9080/pretradechecks- webservice/services/PretradecheckswdsRunnerImpl?wsdl)
13
12/7/2015 © ILOG, All rights reserved 13 Add Appropriate Resources Add.JAR to Web App Libraries Add JRules modules to Web App Libraries \executionserver\lib\jrules-bres-dsmbean.jar \executionserver\lib\jrules-bres-session-java.jar \executionserver\lib\executionserver\applicationservers\websphere6\jrules- bres-session-WAS6.jar Add the JRules xu resource-ref to the deployment descriptor (web.xml) eis/XUConnectionFactory javax.resource.cci.ConnectionFactory Application Unshareable Add the (PretradecheckswdsrulesListener) listener to web.xml PretradecheckswdsrulesListener pretradecheckswdsruleapp.PretradecheckswdsrulesListener
14
12/7/2015 © ILOG, All rights reserved 14 Generating the Web Service
15
12/7/2015 © ILOG, All rights reserved 15 Solution Outline Use JRules OOB Features…. Create a Client Project for RuleApps …to Create a WebSphere MTDS Copy classes to a (new) RAD Dynamic Web Project Copy resources to RAD Dynamic Web Project Modify the JRules generated classes for RAD Generate the new Web Service Deploy and Test
16
Questions & Answers Steve Munsat smunsat@ilog.com Thank You
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.