creating a monitored tds for websphere 6.1 using rad 7.0 steve munsat senior technical account...

16
Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsa Senior Technical Account Manage [email protected]

Upload: cathleen-dalton

Post on 20-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0

Steve MunsatSenior Technical Account Manager

[email protected]

Page 2: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © ILOG, All rights reserved 2

Java Based eXecution Object Model (XOM)

Page 3: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © ILOG, All rights reserved 3

JRules unable to create a HTDS

Page 4: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © 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?)

Page 5: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © 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

Page 6: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © 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

Page 7: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © ILOG, All rights reserved 7

Prerequisites

Using Rational Application Developer 7.0

Java XOM must be serializable

Page 8: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © 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

Page 9: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © ILOG, All rights reserved 9

Creating a new Dynamic Web Project

Page 10: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © ILOG, All rights reserved 10

Creating a new Dynamic Web Project

Page 11: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © ILOG, All rights reserved 11

Creating a new Dynamic Web Project

Page 12: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © 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)

Page 13: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © ILOG, All rights reserved 13

Add Appropriate Resources

Add <XOM>.JAR to Web App Libraries Add JRules modules to Web App Libraries

<jrules-home>\executionserver\lib\jrules-bres-dsmbean.jar <jrules-home>\executionserver\lib\jrules-bres-session-java.jar <jrules-home>\executionserver\lib\executionserver\applicationservers\websphere6\ jrules-

bres-session-WAS6.jar

Add the JRules xu resource-ref to the deployment descriptor (web.xml)<resource-ref>

<res-ref-name>eis/XUConnectionFactory</res-ref-name>

<res-type>javax.resource.cci.ConnectionFactory</res-type>

<res-auth>Application</res-auth>

<res-sharing-scope>Unshareable</res-sharing-scope>

</resource-ref>

Add the (PretradecheckswdsrulesListener) listener to web.xml<listener>

<description></description>

<display-name>PretradecheckswdsrulesListener</display-name>

<listener-class>pretradecheckswdsruleapp.PretradecheckswdsrulesListener</listener-class>

</listener>

Page 14: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © ILOG, All rights reserved 14

Generating the Web Service

Page 15: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

04/21/23 © 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

Page 16: Creating a Monitored TDS for WebSphere 6.1 using RAD 7.0 Steve Munsat Senior Technical Account Manager smunsat@ilog.com

Questions & Answers

Steve Munsat [email protected]

Thank You