Control M Agent to invoke EJB / Web Services / JMS

Everything about Control-M Control Modules
Post Reply
User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 09 Nov 2006 2:22

Hi

You will find some information about Control-M Moduke for Web Services following that link :

http://www.bmc.com/products/proddocview/0,2832,19052_19429_38815247_129662,00.html

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 12 Nov 2006 3:15

Hi,

You will find new administration documentations downloadables from that site about Java and Web Services Control Modules.

User avatar
dkadosh
Nouveau
Nouveau
Posts: 3
Joined: 16 May 2007 12:00
Location: Israel

Post by dkadosh » 16 May 2007 3:42

Hi,

You should use BPI Suite (version 6.3.01 is the latest) it contains the BPI CM.
Control-M is a scheduler, and it has various application plug-in called CMs (Control Modules).

The BPI CM (a plug-in to Control-M scheduler) can invoke Java Classes, EJBs, WebServices, Messaging (put messages in queues, and get reply)

The way to work with CMs is to define accounts (a one time administrative action), and after that you define your jobs.
The BPI Documentation explains how to do it in detail, but developers sometimes do it without needing the documentation.

Invoking WebServices:
Very simple - define an account -- 3 fields
- account name
- Type [wsdl URL -- most common account type , UDDI, wsdl from file system]
- location -- the url of the account type.

Define a job (to run according to scheduling criteria such as days of the week, time, calendars, ...)
defining a job is done by pressing Load buttons to load the account name, Business, Service, Operation, Input parameter (you will get a list of all input parameters), output parameters. (a complex type will be divided to it's detailed parameters)


Invoking EJB -- during the account definition you will need the JNDI information, classpath, etc...
Creating a job is again simple, and the documentation explains how to define a non-primitive type. (there is a format to provide values to the class constructor) for example if your method gets as an input parameter a java.sql.Date, than you can define it like this:
(java.sql.Date)((int)104 (int)11 (int)8)

Using BPI CM you can invoke a method inside a class, or a main() method and provide array as an input.

Only one JVM is invoked per account (a thread for a job) so it saves your machine resources.
Hope it answers your questions.

Post Reply