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 Connection

Update JMS Connection

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

PUT Request in JSON Format

Generate a PUT request. For example, the following PUT request updates a JMS connection in a RulePoint application:
PUT http://localhost:8080/rulepoint/api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25 Accept: application/json Content-Type: application/json Cookie: JSESSIONID=<VALID SESSION ID>

PUT Body in JSON Format

{ "name": "ActiveMQConnection", "type": "connections", "connectionType": "jmsConnection", "config": { "packagePrefixes": "", "jmsConnectionFactory": "ConnectionFactory", "location": "tcp://invr28cep46:61616", "contextFactory": "org.apache.activemq.jndi.ActiveMQInitialContextFactory", "userName": "", "password": null } }

PUT Response in JSON Format

Returns the JMS connection object and response code 200 OK. Returns the error object if an errors occur.
{ "id": "894b2948-ce82-4e0a-9302-267d3482ae25", "name": "ActiveMQConnection", "valid": true, "self": { "rel": "self", "href": "api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25", "title": "ActiveMQConnection", "id": "894b2948-ce82-4e0a-9302-267d3482ae25" }, "actions": [ { "rel": "update", "href": "api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25", "type": "PUT", "title": "Edit" }, { "rel": "delete", "href": "api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25", "type": "DELETE", "title": "Delete" } ], "acl": { "rel": "acl", "href": "api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25/acl", "title": "acl" }, "owningProject": { "rel": "owningProject", "href": "api/projects/1", "title": "Default Project", "id": "1" }, "type": "connections", "lastModifiedDate": "2013-08-23T15:17:58+05:30", "createDate": "2013-08-23T15:17:58+05:30", "createdBy": "Administrator", "predefined": false, "deployable": true, "deployState": "DRAFT", "force": false, "connectionType": "jmsConnection", "connectionTypeDisplayName": "JMS Connection", "config": { "packagePrefixes": "", "jmsConnectionFactory": "ConnectionFactory", "location": "tcp://invr28cep46:61616", "contextFactory": "org.apache.activemq.jndi.ActiveMQInitialContextFactory", "userName": "", "password": null } }
Response Code : 200 OK

PUT Request in XML Format

Generate a PUT request. For example, the following PUT request updates a JMS connection in a RulePoint application:
PUT http://localhost:8080/rulepoint/api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25 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"?> <connection> <name>ActiveMQConnection</name> <type>connections</type> <config> <entry> <key>packagePrefixes</key> <value/> </entry> <entry> <key>jmsConnectionFactory</key> <value>ConnectionFactory</value> </entry> <entry> <key>location</key> <value>tcp://invr28cep46:61616</value> </entry> <entry> <key>contextFactory</key> <value>org.apache.activemq.jndi.ActiveMQInitialContextFactory</value> </entry> <entry> <key>userName</key> <value/> </entry> <entry> <key>password</key> </entry> </config> <connectionType>jmsConnection</connectionType> </connection>

PUT Response in XML Format

Returns the JMS connection object and response code. Returns the error object if an error occurs.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <connection> <acl> <href>api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25/acl</href> <rel>acl</rel> <title>acl</title> </acl> <actions> <action> <href>api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25</href> <rel>update</rel> <title>Edit</title> <type>PUT</type> </action> <action> <href>api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25</href> <rel>delete</rel> <title>Delete</title> <type>DELETE</type> </action> </actions> <id>894b2948-ce82-4e0a-9302-267d3482ae25</id> <links/> <name>ActiveMQConnection</name> <owningProject> <href>api/projects/1</href> <id>1</id> <rel>owningProject</rel> <title>Default Project</title> </owningProject> <self> <href>api/projects/1/connections/894b2948-ce82-4e0a-9302-267d3482ae25</href> <id>894b2948-ce82-4e0a-9302-267d3482ae25</id> <rel>self</rel> <title>ActiveMQConnection</title> </self> <valid>true</valid> <createDate/> <createdBy>Administrator</createdBy> <deployState>DRAFT</deployState> <deployable>true</deployable> <force>false</force> <lastModifiedDate/> <predefined>false</predefined> <type>connections</type> <config> <entry> <key>packagePrefixes</key> <value/> </entry> <entry> <key>jmsConnectionFactory</key> <value>ConnectionFactory</value> </entry> <entry> <key>location</key> <value>tcp://invr28cep46:61616</value> </entry> <entry> <key>contextFactory</key> <value>org.apache.activemq.jndi.ActiveMQInitialContextFactory</value> </entry> <entry> <key>userName</key> <value/> </entry> <entry> <key>password</key> </entry> </config> <connectionType>jmsConnection</connectionType> <connectionTypeDisplayName>JMS Connection</connectionTypeDisplayName> </connection>
Response Code : 200 OK

0 COMMENTS

We’d like to hear from you!