











Signup for Training
- Atlanta, GA Dec 3-5
- Melbourne, AU, Dec 9-11
- New York Dec 10-12
- Brussels, BE, Dec 16-18
- Washington, DC, Dec 17-19
More trainings...
Intalio|BPMS Webinars
- Nov 20, 2008 1 PM EST
- Nov 21, 2008 1PM EST
- Nov 26, 2008 10 AM GMT
- Dec 5, 2008 10 AM PST
- Dec 9, 2008 1 PM EST
- Dec 11, 2008 1 PM EST
- Dec 19, 2008 10 AM PST
- Dec 30, 2008 10 AM PST
- Jan 13, 2009 10 AM PST
- Jan 15, 2009 1 PM EST
- Feb 3, 2009 10 AM PST
- Feb 12, 2009 1 PM EST
- Feb 17, 2009 10 AM PST
- Mar 10, 2009 10 AM PST
- Mar 12, 2009 1 PM EST
- Mar 24, 2009 10 AM PST
Login
Who's online?
- (jloge@ebsco.com)
- Alexander Stuckenholz (alexander.stuckenholz)
- alfons bataller Díaz (alfons.bataller.diaz)
- chris robson (chris.robson)
- Deepa Tekumalla (deepa.tekumalla)
- gianni naccio (gianni.naccio)
- Guerman Smirnov (guerman.smirnov)
- Ilo Rivero (ilo.rivero)
- Leonardo Lopes (leonardo.lopes)
- Leonardo Saraiva (leonardo.saraiva)
- manindra mallick (manindra.mallick)
- Marcin Urbanski (marcin.urbanski)
- Milos Vacek (milos.vacek)
- nie pin (nie.pin)
- Oleg Pozdnyakov (o.pozdnyakov)
- Pavel Lekhanov (lehanov)
- Ravinderjit Singh (ravinderjit.singh)
- Tamara Dobrynina (tamara.dobrynina)
- Teo Bon (teo.bon)
- Wael Soliman (wael.soliman)
Samples-5.1
Send JMS Message Send JMS Message
sendjmsmessage 12/02/2008,03:35 26.73 Kb
Description:
This use case illustrates functionality of sending JMS
message.
The process has been implemented by creating a wsdl that
performs send operation, and invoking this wsdl in Intalio
process.
The WSDL file "SendJMSContract.wsdl" is
generated from "Web Logic 8.1" Application Server which
consists "sendJMSMessage" as its Operation name. The
process accepts the "StringQueueJNDI", "StringHost"
and "StringMessage" as its input parameters and keeps them
in a Queue and generates the output as whether the message has been
sent successfully or not.
In the Input parameters,
'StringQueueJNDI' specifies the JNDI name which is created in web
logic console, 'String Host' specifies the name of the host ie "where
the Web Logic Server is located" and "StringMessage"
is any valid text message that we need to store in the Queue.
Use case dependencies"
sendjms.xsd: Schema used is of "complex" type.
Requirements:
- Intalio|BPMS Server-5.1.1.
- Intalio|BPMS Designer-5.1.1.
- BEA-Web Logic 8.1 SP2
Process Download & Import
- Download 'SendJMSMessage.zip'.
- Go to File > Import...
- Select 'Existing Projects into Workspace', in the wizard, click on Next >.
- Select "Select archive file" radio button.
- Browse to select the downloaded archive file & Click on Finish.
- Update project builders by right click on project; go to BPMS Designer Tools > Update BPMS Builders.
Web Logic Configurations:
-
Make sure WebLogic Server is running successfully.
-
Open a web browser, provide url as: http://localhost:7001/console, that takes you to WebLogic Server Administration Console page.
-
Login with the following credentials:
username: 'weblogic' (without quotes).
password: 'weblogic' (without quotes). -
Expand "workshop > Services> JMS >Servers” in left pane and click on it.
-
In right side panel, click on "Configure new JMS Server".
-
In "General" tab, provide "Name" as "JMSTest" and click to "create".
-
Select "Target" as "cgServer" under "Target and Deploy" tab and click to "Apply".
Note: New JMSTest" will be created with "Destinations" and "Session Pools" as its sub nodes under "JMS > Servers" in left panel of console. -
Click on "Destinations" given under JMSTest" in the left panel.
Note: In the right side, window refreshes and displays with configuration options. -
Click on "Configure a new JMS Queue".
-
In "General" tab, provide Name as "New.JMS" and JNDI Name as "jws.test" respectively then click to "Create".
Note: New JMS Queue name displays under "Destinations" in left panel. -
Click to Logout from console.
Work Scenario in WebLogic:
-
Open WebLogic Workshop 8.1.
-
Right click on "SamplesApp" under Application tab, go to New >, select “Project”.
-
Select "Web Service Project" and provide project name as "send_jms" then click on “Create”.
Note: New project with name "send_jms" displays under "SamplesApp" which includes "WEB-INF" folder also. -
Right click on "send_jms", go to New > select “Web Service”.
-
Provide File_name as "SendJMS" and click to "Create".
-
Instantly window with name as "SendJMS" having two tabs "Design View" and "Source View" is available.
-
Click on “Source view” tab and paste code from "SendJMS.jws" file attached within the zip file into SendJMS.jws being created by you.
-
Repeat 4-7 steps, but provide file name as "QueueJMS.jws" and for the code please check for "QueueJMS.jws" file attached within the zip file and paste this code into QueueJMS.jws being created by you.
-
Save the jws files.
-
Right click on project “send_jms”, select "Build send_jms" to build project.
-
Right click on "SendJMS.jws" and click to "Generate WSDL file".
-
Open the generated "SendJMSContract.wsdl" wsdl file.
-
Go to File >Save As, save the WSDL file as "SendJMSContract.wsdl" in any of your folder.
Please follow these below instructions to remake the process.
Preconditions:
- Make sure Intalio|BPMS Server is up and running fine.
-
Make sure the Process Explorer pane does not contain any Intalio|BPMS Business Process Project with same name.
Steps to remake the process:
-
Go to File > New > select "Intalio|BPMS Business Process Project".
-
Give Project name as "SendJMSMessage", click on Finish.
-
Import wsdl file "SendJMSContract.wsdl" from zip file attached, directly under "Send_JMSMessage" project.
-
Right click on the project; go to New > select "Business Process Diagram".
-
Provide diagram name as "Send_JMSMessage", and click on Finish.
-
A pool with a task is available in BPMN Editor Pane, name default pool as “Client” and task as “send”.
-
Right click on client pool and select "Set pool non executable".
-
Add new pool by click on BPMN Editor (select "Add Pool" option from pop up menu) and name it as "SendJMSMessage".
-
Focus on “send” task in Client pool, drag the out going message icon from boundary and release mouse control onto SendJMSMessage pool to select the option "Connect to a new Message Start Event".
-
Focus on Message Start Event, drag sequence flow icon from boundary and select option to "Connect to a new Task", name the task as "invoke".
-
Focus on “invoke” task, drag sequence flow icon from boundary and select option to "Connect to a new Message End Event".
-
Drag the outgoing message icon from Message End Event and connect to "send" task in the Client Pool.
-
Repeat step 8 & 7, but name the pool as "SendJMSMessageWSDL".
-
Drag and drop "sendJMSMessage" operation onto SendJMSMessageWsdl pool (Go to Process Explorer > SendJMSContract.wsdl > SendJMS > SendJMSSoap).
-
Focus on invoke task in SendJMSMessage pool, drag the outgoing message icon from "invoke" task and connect to "sendJMSMessage" task in SendJMSMessageWsdl pool, similarly create connection in vice versa direction.
-
Import schema files from zip file into the project (You can also create your own schema from File > New > Other > XML > XML Schema).
-
Drag and drop sendjms.xsd > tns:objQueueJMS schema node on to incoming message flow from "send" task to message start event.
-
A message "Set schema element 'objQueueJMS' as the content of the message" will prompt you, click on it.
Defining Outgoing Mapping:
-
Make sure Mapper view is visible (go to Windows > Show View > Mapper).
-
In the process model select "invoke" task.
-
Click on "$thisEventStartMessageRequest.body" > StringQueueJNDI node in left side of mapper and then click on "$opeSendJMSMessageRequest.parameters" > objQueueJMS[?] >StringQueueJNDI node in right side of mapper which will make an association.
-
Similarly form associations between other nodes, i.e. "StringHost" & "StringMessage".
-
Select Message End Event in process model.
-
Click on "$opeSendJMSMessageResponse.parameters" node in left side of mapper and then click on "$thisEventStartMessageResponse.body" node in right side of mapper which will make an association.
-
Save the process model.
-
Now your process is fully implemented which is ready to deploy and execute within Intalio|BPMS Server.
Process Deployment & Execution:
-
Click on Deploy Project to Intalio|BPMS Server button in tool bar.
-
Make sure you select all runtime files while exporting to Intalio|BPMS Server.
-
Click on Finish button.
-
Open a web browser, provide url as: http://localhost:8080/bpms-console which takes to login screen for bpms-console.
-
Login with the following credentials:
username: 'admin' (without quotes).
password: 'changeit' (without quotes). -
In the processes list you should see "Send JMSMessage:Send JMSMessage" process with a package name
-
"SendJMSMessage", select it and click to Start.
-
This should generate a form with label "EventStartMessageRequest", three input fields to map three input data.
-
Type 'jws.test' in StringQueueJNDI field, 'localhost' in StringHost field and 'hello jms' in StringMessage field then click to Submit.
-
This will replace the page with an output like :
-
EventStartMessageResponse:
-
sendJMSMessageResult: Message sent sucessfully hello jms
