Table of Contents

Search

  1. Preface
  2. RulePoint Interfaces
  3. RulePoint Services
  4. Custom Service API
  5. Java Adapter for REST API
  6. RulePoint REST API
  7. Sample XML and JSON Requests and Responses
  8. RulePoint Pluggable Authentication Module
  9. HTTP Request and Response Attributes

Developer Guide

Developer Guide

Update JMS Source

Update JMS Source

Use the PUT method to update a JMS source in RulePoint.

PUT Request in JSON Format

Generate a PUT request. For example, the following PUT request updates a JMS source in a RulePoint application:
PUT http://localhost:8080/rulepoint/api/projects/1/sources/f9a382cd-fb73-4165-bbaa-f05f40303b5d Accept: application/json Content-Type: application/json Cookie: JSESSIONID=<VALID SESSION ID>

PUT Body in JSON Format

{ "name": "ActiveMQSource", "sourceType": "JMSSource", "schedulable": false, "config": { "clientAcknowledgeMode": "AUTO_ACKNOWLEDGE", "clientId": "", "destination": "jmsQueue", "messageSelector": "", "subscriptionName": "" }, "topics": [ { "href": "api/projects/1/topics/6e9c0ae9-fce0-4219-9e58-639af4e79daa", "title": "jmstopic", "objectType": "topics", "id": "6e9c0ae9-fce0-4219-9e58-639af4e79daa" } ], "connection": { "rel": "connection", "href": "api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25", "title": "jmsconnection", "id": "894b2948-ce82-4e0a-9302-267d3482ae25" }, "marshaller": { "marshallerClassname": null, "marshallerProperties": { }, "marshallerThreadsafe": false }

PUT Response in JSON Format

Returns the JMS source object and source code. Returns the error object if an error occurs.
{ "id": "f9a382cd-fb73-4165-bbaa-f05f40303b5d", "name": "ActiveMQSource", "valid": true, "self": { "rel": "self", "href": "api/projects/1/sources/f9a382cd-fb73-4165-bbaa-f05f40303b5d", "title": "ActiveMQSource", "id": "f9a382cd-fb73-4165-bbaa-f05f40303b5d" }, "actions": [ { "rel": "update", "href": "api/projects/1/sources/f9a382cd-fb73-4165-bbaa-f05f40303b5d", "type": "PUT", "title": "Edit" }, { "rel": "delete", "href": "api/projects/1/sources/f9a382cd-fb73-4165-bbaa-f05f40303b5d", "type": "DELETE", "title": "Delete" }, { "rel": "deploy", "href": "api/projects/1/deploy", "type": "POST", "title": "Deploy" } ], "acl": { "rel": "acl", "href": "api/projects/1/sources/f9a382cd-fb73-4165-bbaa-f05f40303b5d/acl", "title": "acl" }, "owningProject": { "rel": "owningProject", "href": "api/projects/1", "title": "Default Project", "id": "1" }, "type": "sources", "lastModifiedDate": "2013-08-23T15:19:28+05:30", "createDate": "2013-08-23T15:19:28+05:30", "createdBy": "Administrator", "predefined": false, "deployable": true, "deployState": "DRAFT", "force": false, "sourceType": "JMSSource", "sourceTypeDisplayName": "JMS Source", "schedulable": false, "config": { "clientAcknowledgeMode": "AUTO_ACKNOWLEDGE", "clientId": "", "destination": "jmsQueue", "messageSelector": "", "subscriptionName": "" }, "topics": [ { "href": "api/projects/1/topics/6e9c0ae9-fce0-4219-9e58-639af4e79daa", "title": "jmstopic", "objectType": "topics", "id": "6e9c0ae9-fce0-4219-9e58-639af4e79daa" } ], "connection": { "rel": "connection", "href": "api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25", "title": "jmsconnection", "id": "894b2948-ce82-4e0a-9302-267d3482ae25" }, "marshaller": { "marshallerClassname": null, "marshallerProperties": {}, "marshallerThreadsafe": false } }
Response Code: 200 OK

PUT Request in XML Format

Generate a PUT request. For example, the following PUT request updates a JMS source in a RulePoint application:
PUT http://localhost:8080/rulepoint/api/projects/1/sources/f9a382cd-fb73-4165-bbaa-f05f40303b5d Accept: application/xml Content-Type: application/xml Cookie: JSESSIONID=<VALID SESSION ID>

PUT Body in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <source> <name>jmssource</name> <type>sources</type> <config> <entry> <key>clientAcknowledgeMode</key> <value>AUTO_ACKNOWLEDGE</value> </entry> <entry> <key>clientId</key> <value/> </entry> <entry> <key>destination</key> <value>jmsQueue</value> </entry> <entry> <key>messageSelector</key> <value/> </entry> <entry> <key>subscriptionName</key> <value/> </entry> </config> <connection> <href>api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25</href> <id>894b2948-ce82-4e0a-9302-267d3482ae25</id> <rel>connection</rel> <title>jmsconnection</title> </connection> <marshaller> <marshallerProperties/> <marshallerThreadsafe>false</marshallerThreadsafe> </marshaller> <schedulable>false</schedulable> <sourceType>JMSSource</sourceType> <sourceTypeDisplayName>JMS Source</sourceTypeDisplayName> <topics> <topic> <href>api/projects/1/topics/6e9c0ae9-fce0-4219-9e58-639af4e79daa</href> <id>6e9c0ae9-fce0-4219-9e58-639af4e79daa</id> <objectType>topics</objectType> <title>jmstopic</title> </topic> </topics> </source>

PUT Response in XML Format

Returns the JMS source object and response code. Returns the error object if an error occurs.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <source> <acl> <href>api/projects/1/sources/f9a382cd-fb73-4165-bbaa-f05f40303b5d/acl</href> <rel>acl</rel> <title>acl</title> </acl> <actions> <action> <href>api/projects/1/sources/f9a382cd-fb73-4165-bbaa-f05f40303b5d</href> <rel>update</rel> <title>Edit</title> <type>PUT</type> </action> <action> <href>api/projects/1/sources/f9a382cd-fb73-4165-bbaa-f05f40303b5d</href> <rel>delete</rel> <title>Delete</title> <type>DELETE</type> </action> <action> <href>api/projects/1/deploy</href> <rel>deploy</rel> <title>Deploy</title> <type>POST</type> </action> </actions> <id>f9a382cd-fb73-4165-bbaa-f05f40303b5d</id> <links/> <name>jmssource</name> <owningProject> <href>api/projects/1</href> <id>1</id> <rel>owningProject</rel> <title>Default Project</title> </owningProject> <self> <href>api/projects/1/sources/f9a382cd-fb73-4165-bbaa-f05f40303b5d</href> <id>f9a382cd-fb73-4165-bbaa-f05f40303b5d</id> <rel>self</rel> <title>jmssource</title> </self> <valid>true</valid> <createDate/> <createdBy>Administrator</createdBy> <deployState>DRAFT</deployState> <deployable>true</deployable> <force>false</force> <lastModifiedDate/> <predefined>false</predefined> <type>sources</type> <config> <entry> <key>clientAcknowledgeMode</key> <value>AUTO_ACKNOWLEDGE</value> </entry> <entry> <key>clientId</key> <value/> </entry> <entry> <key>destination</key> <value>jmsQueue</value> </entry> <entry> <key>messageSelector</key> <value/> </entry> <entry> <key>subscriptionName</key> <value/> </entry> </config> <connection> <href>api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25</href> <id>894b2948-ce82-4e0a-9302-267d3482ae25</id> <rel>connection</rel> <title>jmsconnection</title> </connection> <marshaller> <marshallerProperties/> <marshallerThreadsafe>false</marshallerThreadsafe> </marshaller> <schedulable>false</schedulable> <sourceType>JMSSource</sourceType> <sourceTypeDisplayName>JMS Source</sourceTypeDisplayName> <topics> <topic> <href>api/projects/1/topics/6e9c0ae9-fce0-4219-9e58-639af4e79daa</href> <id>6e9c0ae9-fce0-4219-9e58-639af4e79daa</id> <objectType>topics</objectType> <title>jmstopic</title> </topic> </topics> </source>
Response Code : 200 OK

0 COMMENTS

We’d like to hear from you!