As the document says,"To use JMS with Edge, you configure the JMS connection details by creating a JMS host".
I tried creating the JMS host with the following request
Verb : POST
Request URL:http://{host}:8080/v1/organizations/environments/jmshosts
Header : Content-Type
Body:
<JmsHost name="jmshost"> <Description></Description> <ConnectionFactoryClass>org.apache.activemq.jndi.ActiveMQInitialContextFactory</ConnectionFactoryClass> <ConnectionFactory>ConnectionFactory</ConnectionFactory> <ConnectionURL>tcp://{ip}:61616</ConnectionURL> <Context>JmsContext</Context><ContextUsername>abc</ContextUsername> <ContextPassword>password</ContextPassword> <ConnectionUsername>admin</ConnectionUsername> <ConnectionPassword>password</ConnectionPassword> <Connections>5</Connections> </JmsHost>
The response from the Apigee is
{ "code": "organizations.OrganizationDoesNotExist", "message": "Organization : environments does not exist", "contexts": [] }
so made changes to my request URL as
http://10.226.47.82:8080/v1/organizations/{org_name}/environments/jmshosts
The response for the above change is
{ "code": "rest.SchemaValidationFailure", "message": "Schema validation failed. Cause : unexpected element (uri:\"\", local:\"JmsHost\"). Expected elements are <{}Collection>,<{}Entry>,<{}Environment>,<{}IPAccessControl>,<{}IPRules>,<{}LDAPStore>,<{}List>,<{}Map>,<{}MatchRule>,<{}Organization>,<{}Properties>,<{}SecurityProfile>,<{}SourceAddress>,<{}UserAccessControl>,<{}beanImpl>,<{}jaxbPropertyEntry>. Line number : 1. Column number : 1. File name : NA.", "contexts": [] }
Help me with where i missed
Solved! Go to Solution.
Hi @maivizhi.arunagiri@cognizant.com , try POSTing the payload with the below changes
<JMSHost name="jmshost"> instead of <JmsHost name="jmshost"> and
</JMSHost> instead of </JmsHost>
Refer this https://github.com/apigee/api-platform-samples/tree/f15af568cd7b50a1552aae7501a1a701eec4d19f/schema... for any schema related issues.
Hi @maivizhi.arunagiri@cognizant.com. Try it with /organizations/{org_name}/environments/{env_name}/jmshosts
. Apologies if you ran into this following the doc topic. There was a bug in it.
Thanks Floyd Jones!
I tried that too and got the following response.
{ "code": "rest.SchemaValidationFailure", "message": "Schema validation failed. Cause : unexpected element (uri:\"\", local:\"JmsHost\"). Expected elements are <{}APIProxy>,<{}APIProxyRevisions>,<{}AccessControl>,<{}AccessEntity>,<{}Admin>,<{}Alert>,<{}Allow>,<{}AllowConnections>,<{}AppUserId>,<{}AssignMessage>,<{}AssignTo>,<{}Attribute>,<{}AttributeKey>,<{}Authentication>,<{}BasicAuthentication>,<{}CRL>,<{}CRLStore>,<{}Cache>,<{}CacheContext>,<{}CacheExpiry>,<{}CacheKey>,<{}CalloutRequest>,<{}CertInfo>,<{}CertsInfo>,<{}Collection>,<{}CommonName>,<{}Compression>,<{}ConcurrentRatelimit>,<{}Configuration>,<{}ConfigurationVersion>,<{}ConnectPool>,<{}Connection>,<{}CredentialMethod>,<{}DefaultFaultRule>,<{}DirectionalFlow>,<{}Entry>,<{}Environment>,<{}EnvironmentVariable>,<{}ExtractVariables>,<{}ExtractVariablesSource>,<{}FaultRule>,<{}File>,<{}FileRotationOptions>,<{}Flow>,<{}FormParam>,<{}GenerateErrorResponse>,<{}GenerateResponse>,<{}GenerateSAMLAssertion>,<{}GetAPIProduct>,<{}GetOAuthV1Info>,<{}GetOAuthV2Info>,<{}GzipUtil>,<{}HTTP>,<{}HTTPMonitor>,<{}HTTPProxyConnection>,<{}HTTPTargetConnection>,<{}HTTPTargetSessionCache>,<{}Header>,<{}HealthMonitor>,<{}Host>,<{}IPAccessControl>,<{}IPRules>,<{}Identifier>,<{}InvalidateCache>,<{}JMSHost>,<{}JSONThreatProtection>,<{}JSONToXML>,<{}JavaCallout>,<{}Javascript>,<{}JmsProxyConnection>,<{}KeyStore>,<{}KeyValueMapOperations>,<{}LDAP>,<{}LDAPStore>,<{}Ldap>,<{}LdapResource>,<{}List>,<{}LoadBalancer>,<{}LookupCache>,<{}Map>,<{}MatchRule>,<{}Message>,<{}MessageLogging>,<{}MessageValidation>,<{}MetaData>,<{}Namespace>,<{}OAuthV1>,<{}OAuthV1Service>,<{}OAuthV2>,<{}OAuthV2Service>,<{}Organization>,<{}Parameter>,<{}Parameters>,<{}Password>,<{}Path>,<{}Pattern>,<{}Policy>,<{}PopulateCache>,<{}Properties>,<{}Property>,<{}ProxyEndpoint>,<{}QueryParam>,<{}Quota>,<{}RaiseAlert>,<{}RaiseFault>,<{}Recipient>,<{}RegularExpressionProtection>,<{}Request>,<{}RequestToken>,<{}ResetQuota>,<{}ResetQuotaClassIdentifier>,<{}ResetQuotaIdentifier>,<{}ResetQuotaStepDefinition>,<{}Resource>,<{}ResourceFile>,<{}ResourceFiles>,<{}Response>,<{}ResponseCache>,<{}RootElement>,<{}RotationFrequency>,<{}RouteRule>,<{}SMTP>,<{}SOAPMessage>,<{}SSLInfo>,<{}Script>,<{}ScriptTarget>,<{}Search>,<{}SecurityProfile>,<{}Server>,<{}ServiceCallout>,<{}SetOAuthV2Info>,<{}SourceAddress>,<{}SpikeArrest>,<{}Statistic>,<{}Statistics>,<{}StatisticsCollector>,<{}Step>,<{}Syslog>,<{}TCPMonitor>,<{}TargetEndpoint>,<{}TargetServer>,<{}URL>,<{}User>,<{}UserAccessControl>,<{}Username>,<{}ValidateSAMLAssertion>,<{}Variable>,<{}VerifierCode>,<{}VerifyAPIKey>,<{}VirtualHost>,<{}WebSocketProxyConnection>,<{}WebSocketRaiseFault>,<{}WebSocketTargetConnection>,<{}XMLPayload>,<{}XMLThreatProtection>,<{}XMLToJSON>,<{}XMLToJSONFormats>,<{}XPath>,<{}XSL>,<{}beanImpl>,<{}extraction>,<{}flowBean>,<{}inlineBean>,<{}jaxbPropertyEntry>,<{}namedExtraction>,<{}serviceConfigBean>,<{}stepDefinitionBean>. Line number : 1. Column number : 1. File name : NA.", "contexts": [] }
Hi @maivizhi.arunagiri@cognizant.com , try POSTing the payload with the below changes
<JMSHost name="jmshost"> instead of <JmsHost name="jmshost"> and
</JMSHost> instead of </JmsHost>
Refer this https://github.com/apigee/api-platform-samples/tree/f15af568cd7b50a1552aae7501a1a701eec4d19f/schema... for any schema related issues.
Thanks @Maruti Chand.It worked!
@maivizhi.arunagiri@cognizant.com - Awesome! Thanks for the update. And just to double-check, you ran it with /organizations/{org_name}/environments/{env_name}/jmshosts?
Hi @Maruti Chand,
Please update the apigee docs.
Thank you @Abhishek Subramanya for highlighting same, @docs , We need an update here.
Docs updated. Thanks! Waiting to hear back on the JmsResponseHost question below, since that's exactly what's in the schema for the proxy configuration.
Awesome, Thank you @Floyd Jones
For JMSResponseHost we looked into the schema and tried <JmsResponseHost> but it gives us the schema error for that.Please let us know what is the correct tag name for JMSResponseHost?
User | Count |
---|---|
7 | |
2 | |
2 | |
2 | |
1 |