MAIN arrow Samples-5.1 arrow Send JMSUsingActiveMQ

Send JMSUsingActiveMQ

Print E-mail

zip sendjmsmessage 31/12/2007,02:44 45.04 Kb


Description:

This use case illustrates functionality of sending JMS message using Active MQ.
The process has been implemented by creating a wsdl that performs sending JMS operation, and invoking this wsdl in intalio process

 

Use case dependencies:

  1. Count.xform
  2. Count.xform.xsd
  3. JMSMessage.xform
  4. JMSMessage.xform.xsd
  5. Response.xform
  6. Response.xform.xsd
  7. Requirements:
  8. Intalio|BPMS Server-5.1.1
  9. Intalio|BPMS Designer-5.1.1
  10. SendJMSMessage.bpm  (bpm file created for this project).
  11. SendJMSServiceWS.aar
  12. SendJMSServiceWS.wsdl
  13. 12 Jar files:
    i.    activeio-core-3.0.0-incubator.jar
    ii.   activemq-console-4.1.0-incubator.jar
    iii.  activemq-core-4.1.0-incubator.jar
    iv.  activemq-core-4.1.0-incubator-tests.jar
    v.   activemq-jaas-4.1.0-incubator.jar
    vi.  activemq-web-4.1.0-incubator.jar
    vii. backport-util-concurrent-2.1.jar
    viii.commons-logging-1.1.jar
    ix. derby-10.1.1.0.jar
    x.  geronimo-j2ee-management_1.0_spec-1.0.jar
    xi. geronimo-jms_1.1_spec-1.0.jar
    xii. mx4j-2.1.1.jar
  14. apache-activemq-4.1.0-incubator.jar 
  15. Axis2 version 1.3

 

Configurations:

  1. Download apache-activemq-4.1.0-incubator.jar file and paste in lib folder under axis directory i.e. [axis2-1.3]\lib 
  2. Download the above given 12 jar files and paste all the jar files in lib folder given under intalio|BPMS server: \repository\com\intalio\bpms\axis2-services-geronimo-1.1\1.1.1\axis2-services-geronimo-1.1-1.1.1.war\WEB-INF\services\lib of Intalio|BPMS server
  3. Restart the server.

 

Preconditions:

  1.  Make sure Intalio|BPMS Server is up and running fine.
  2. Make sure the Process Explorer pane does not contain any Intalio|BPMS Business Process Project with same name.
     

Process Download & Import:

  1. Download ‘SendJMSMessageUsingActiveMQ.zip’.
  2. Go to File > Import...
  3. Select 'Existing Projects into Workspace', in the wizard, click on Next >
  4. Browse to select the downloaded archive file.
  5. Click to Finish.
  6. Update project builders by right click on project; go to BPMS Designer Tools > Update BPMS Builders.

 

sendmsusingactivemq.jpg  

Work Scenario in the Axis 2:
To upload “SendJMSServiceWS.aar” in the Axis2:

  1. Make sure Intalio-bpms server is already started.
  2. Open a web browser, provide url as:  http://localhost:8080/axis2/., that takes to login screen for axis2.
  3. Click on the “Administration” link.
  4. Login with the following credentials:
    username: ‘admin’ (without quotes).
    password: ‘axis2’ (without quotes).
  5. Click on the link to “Upload Service”.
  6. Browse to location of “SendJMSServiceWS.aar” to “Upload a AxisService Archive File “ page.
  7. Now click on Available Services link and refresh the webpage
    Note: You will see the list of the available services.
  8. Verify that “SendJMSServiceWS” is present there.
  9. Click on the “SendJMSServiceWS” it displays respective wsdl file.
    Note: This wsdl displays users Ip address in place of localhost in soap address location.If you want you can save this wsdl file on your system and use in place of the existing wsdl.


Process Deployment  & Execution:

  1. Click on Deploy Project to Intalio|BPMS Server button in tool bar.
  2. Make sure you select all runtime files while exporting to Intalio|BPMS Server.
  3. Also verify & check "Deploy processes" choice before click on Finish button.
  4. Open a web browser, provide url as: http://localhost:8080/ui-fw which takes to login screen for workflow UI.
  5. Login with the following credentials:
    username: 'examples\ewilliams' (without quotes).
    password: 'password' (without quotes).
  6. Under Processes tab you should see "Count-init process SendJMSMessage/SendJMSProcess with form Count.xform " link, click it to view JMSMessage form
  7. The form generated displays respective two input fields to map input data.
  8. Type "5" in "Enter number of JMS messages" field, "Hello" in "Enter the message" field then click on Start process button.
  9. This will replace form with new form displaying READY link, click it to view JMSMessage form:
  10. The form generated displays respective two input fields to map input data.
  11. The first field will display the data already entered by the user and the second field displays the count of message being entered.
  12. Click on Complete button to complete the process.
  13. This will replace form with new form displaying READY link, click it to view Response form:
  14. This will replace form with new form displaying output like:.
    Acknowledgment: Jms Message sent
  15. Click on Complete button to complete the process.
  16. Again the form will be replaced by JMSMessage form displaying respective data.
  17. The process continues to loop till the count of messages is greater than 0
Last Updated ( Feb 04 2008 )
  < Prev Next >