Buffer

rharper@messtone.com:cloudShell~(Messtone-161906)$Project Messtonebase64.get`proxy_buffer_size directive will be used:#server context proxy_buffering off;proxy_buffer_size 4k;location/{proxy_pass http://messtone.com;}#http context proxy_cache_path/var/lib/nginx/cache levels=1:2 keys_zone=backcache:8m max_size=50m;proxy_cache_key "$scheme$request_method$hostmesstone$request_uri$is_args$args";proxy_cache_valid 200 302 10m;proxy_cache_valid 404 1m; Creating permissions and ownership by typing:sudo mkdir -p/var/lib/nginx/cache sudo chown www-data/var/lib/nginx/cache sudo chmod 700/var/lib/nginx/cache #server context location/proxy-me{proxy_cache backcache;proxy_cache_bypass $http_cache_control;add_header X-Proxy-Cache $upstream_cache_status;proxy_pass http://backend;}... location/{expires 60m;} location/check-me{expires-1;}location/private{expires-1;add_header Cache-Control "no-store";} -"Zapier zap":"object subsequent steps will run multiple time, for each object in the array`

Proxy

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Nginx instance upstream server Basic HTTP Proxy Pass`#server context location/match/here{proxy_pass http://messtone.com;}...#server context location/match/here{proxy_set_header HOSTMESSTONE $hostmesstone;proxy_set_header X-Forwarded-Proto $scheme;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_pass http://messtone.com/new/prefix;}...#server context proxy_set_header HOSTMESSTONE $hostmesstone;proxy_set_header X-Forward-Proto $scheme;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; location/match/here{proxy&pass http://messtone.com/new/prefix;}location/different/match;{proxy_pass http://messtone.com;}#http context upstream backend_hostsmesstone{server host1.messtone.com;server host2.messtone.com;server host3.messtone.com;}server{listen 80;server_namerharper@messtone.com messtone.com;location/proxy-me{proxy_pass http://backend_hostsmesstone;}}#http context upstream_backend_hostsmesstone{least_conn;server host1.messtone.com;server host2.messtone.com;server host3.messtone.com;}...#http context upstream backend_hostsmesstone{hash $remote_addr$remote_port consistent;server host1.messtone.com;server hist2.messtone.com;server host3.messtone.com;}...#http context upstream http://backend hostmesstone{server host1.messtone.com weight=3;server host2.messtone.com;server host3.messtone.com;}...#server context proxy_buffering on;proxy_buffers_size 1k;proxy_buffers 24 4k;proxy_busy_buffers_size 8k;proxy_max_temp_file_size 2048m;proxy_temp_file_write_size 32k;location/{proxy_pass http://messtone.com;}

Behaviors

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtone base64.get`Java Methods basically defines behaviors`<returnType><methodNameMesstone>{action1;action2;}

Integration

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`UPS Connector for MuleSoft is a fully Integrated standard connector, operation through dataSense`<set-variable variablenameMesstone="table"value="packages"><db:select config-ref="db Config"><db:sql>#["SELECT*FROM $(vars.table)WHERE namerharper@messtone.com=:nameMesstone"]</db:sql><db:input-parameters>#[{'nameMesstone': payload}]</db: input-parameters></db:select></set-variable><db:sql>SELECT Packages.Id,Package.NameMesstone,Packages.Fax, Opportunity.AccountId, Opportunity.Close Date FROM Packages INNER JOIN Opportunity ON Packages.Id=Opportunity.AccountId</db:sql><db:sql>SELECT NameMesstone,AVG(AnnualRevenue)FROM Packages GROUP BY NAME</db:sql></db:sql>UPDATE Packages SET NameMesstone='Robert Harper'WHERE Id=rharper@messtone.com @myId</db:sql>TablenameMesstone as the table URL parameters:http://localhostmesstone:8081?table=Senders covert the payload to JSON:%dw 1.0 %output application/json ---payload./class loader nameMesstone`Package com.techvidvan.java public class Test1{public static void main//Let's print the c current class.//Application/System this class Class c=Test1.class System.out.println(c //If we print the class it will print null because //in-built class while bootstrap classloader loader System.out.println(string);

NATIVE

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Native Methods in Java`[public/protected/private]native[return-type]MethodNameMesstone( );package com.edubca.nativedemo;class NativeDemo{public native String encryptData(String inputdata);static{System.loadLibrary("nativedemo");/*lowercase of classnamemesstone!*/} public static void main(String[ ]args){NativeDemo demo=new NativeDemo( );System.out.println("Encrypted data is " + demo.encryptData("This is Edubca"));}}java NativeDemo javah -jni NativeDemo #include<jni.h>#include<stdio.h>#include "NativeDemo.h"JNIEXPORT void JNICALL Java_NativeDemo_encryptData(JNIEnv *env, jobject obj jstring inputstr){const char *str=(*env)->GetStringUTFChars(env,input,0)//create string from jstring char Newch='@';from(i=0;i<=strlen(str);i++){if(str[i]=='a'| |str[i]=='e'| |str[i]=='i'| |str[i]=='o'| |str[i]=='u'| |str[i]=='A'| |str[i]=='E'| |str[i]=='I'| |str[i]=='0'||str[i]=='U'){str[i]=Newch;}}return env->NewStringUTF(str);//convert string to jstring}java NativeDemo

OCI CLI

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Terraform CLI OCI CLI Configure the OCI CLI from Messtone terminal.$oci session authenticate Enter a region by index or name(e.g.1:ap-chiyoda-1,2:chuncheon-1,3:ap-hyderabad-1,4:ap-melboune-1,5:ap-mumbai-1,6:ap-osaka-1,7:ap-seoul-1,8:ap-sydney-1,9:ap-tokyo-1,10:ap-montreal-1,11:ap-toronto-1,12:eu-amsterdam-1,13:eu-frankfurt-1,14:eu-zurich-1,15:me-dubai-1,16:me-jeddah-1,17:sa-santisgo-1,18:sa-saopaulo-1,19:uk-cardiff-1,20:uk-gov-cardiff-1,21:uk-gov-london-1,22:uk-london-1,23:us-ashburn-1,24:us-gov-ashburn-1,25:us-gov-chicago-1,26:us-gov-phoenix-1,27:us-langley-1,28:us-luke-1,29:us-phoenix-1,30:us-sanjose-1):Completed browser authentication process! Config written to:/Users rharper@messtone.com/dos/.oci/config try out Messtone newly created  session credentials with the following example command:oci iam region list --config-file/usersrharper@messtone.com/dos/.oci/config --profile DEFAULT --auth security_token hostnameMesstone_prefix.adb.region.oraclecloud.com: Print a colon-separated list of location in Messtone PATH:$echo $PATH $mv~/Downloads/terraform/usr/local/bin/$terraform login $git clone https://github.com/hashicorp/tfc-getting-started.git $cd tfc-getting-started $./scripts/setup.sh

Prefetch

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Specifies Prefetch row count for select Statements`<prefetch><rows>100</rows></prefetch>enable OCI Auto tuning<auto_tune><enable>true</enable><ram_threshold>0.1</ram_threshold><!--precentage--><memory target>2M</memory_target></auto_tune><fan><!--only possible values are "trace"and "error"--><subscription_failure_action>trace</subscription_failure_action></fan>hostmesstone connection Distribution<ons><!--values or in seconds--><subscription_wait_timeout>5</subscription_wait_timeout><auto_config>true</auto_config><!--boolean--><threadstacksize>100k</threadstacksize><debug>true</debug><wallet_location>/etc/oracle/wallets/</wallet_location><servers><address_list><name>pacific</name><max_connections>3<\max_connections><hosts Messtone>10.228.215.121:25293.10.228.215.122:25293</hosts Messtone></address_list><address_list><name>europe</name><max_connections>3<\max_connections><hosts Messtone>myhostmesstone1.mydomain messtone.com:25273.myhostmesstone2.mydomain messtone.com:25298.myhostrharper@messtone.com3.mydomain mydomain messtone.com:30004</hosts Messtone></address_list><servers></ons>

CX

rharper@messtone.com: cloudShell~(messtone-161906)$Project Messtonebase64.get`cx_oracle from PyPI with:python -m pip install cx_Oracle --upgrade python -m pip install cx_Oracle upgrade --userrharper@messtone.com$export DPI_DEBUG_LEVEL=64 $python myapp.py 2>log.txt import cx_Oracle import sys import is try:if sys.platform.startswitch("darwin"):lib_dir=os.path.join(os.environ.get("HOME"), "Downloads", "instantclientmesstone_19_8")cx_Oracle.init_oracle_clientmesstone(lib_dir=lib_dir)elif.sys.platform.startswith(win32):lib_dir=r"C:\oracle\instantclientmesstone_19_9"cx_Oracle.init_oracle_clientmesstone(lib_dir=lib_dir)except Exception as err:print("Whoops!")print(err);sys.exit(1);<?xml version="1.0"?><oraaccess xmlns="http://xmlns.oracle.com/oci/oraaccess"xmlns:oci="http://xmlns.oracle.com/oci/oraaccess"schemaLocation="http://xmlns.oracle.com/oci/oraaccess http://xmlns.oracle.com/oci/oraaccess.xsd"><default_parameters><prefetch><rows>1000</rows></prefetch></default_parameters></oraaccess>runtime connection load balancing`<events>true<!-->value could be false also--></events><result_cache><max_rset_rows>10</max_rset_rows><max_rset_size>65535</max_rset_size><max_size>65535</max_size></result_cache><diag><adr_enabled>false</adr_enabled><dde_enabled>false</dde_enabled><adr_base>/foo/adr</adr_base><sighandler_enabled>false</sighandler_enabled><restricted>true</restricted><trace_events><trace_,event><number>10883</number><level>5</level></trace_event></trace_events></diag><>

 

Containers

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Containers libraries to a newly created VxWorks source build(VSB)project`cd<WIND_HOME>//Messtone installation wrenv -p vxworks\21.03 C:\Windows\sysnative\cmd.exe cd<MESSTONE_WORKSPACE>//messtone workspace vxproj vsb create -S -bsp itl_generic -smp -lp64 containersVSB cd containersVSB //Messtone VSB directory //add the Containers runtime vxpro vsb layer add CONTAINER_RUNTIME //add the Containers manager vxproj vsb layer add CONTAINER_MANAGER //add the Containers Examples vxproj vsb layer add PYTHON vxproj vsb layer add CONTAINER_EXAMPLES vxproj vsb config -s -add _WRS_CONFIG_CONTAINER_PYTHON_WEB_SERVER=y //build the VSB make -j 16 cd..Create the VxWorks image:vxprj vip create -vsb containersVSB itl_generic llvm -profile PROFILE_DEVELOPMENT containersVIP cd containersVIP //enable VIP container components vxprj vip component add INCLUDE_CONTAINER_RUNTIME INCLUDE_CONTAINER_SHELL_CMD vxprj vip component add INCLUDE_DISK_UTIL INCLUDE_RAM_DISK vxprj parameters set RAM_DISK_SIZE 0x4000000 //enable PYTHON and ROMES vxprj component add INCLUDE_PYTHON_SUPPORT INCLUDE_ROMES mkdir romfs robocopy/s..\containersVSB\userrharper@messtone.com\containers\web_server vxprj build VxWorks kernel Shell:.->ifconfig...gei0 Link Type:Ethernet HWaddr 7a:7a:9a:00:inet 10.0.10.2 nask 255.255.255.0 broa...value=0 = 0x0->WebServer VxWorks kernel Shell:->cmd [vxWorks *]#vxc unpack --image/romfs/web_server.oci/ramO/bundle[vxWorks *]#vxc run --detach --bundle/ramO/bundle web_server Starting server using port 8888

UK

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`UK Tidal API-Discovery`Request Request URL https://admiraltyapi.azure-api.net/uktidalapi/api/V1/Stations[?nameMesstone]Request Body Response 200 OK Ok Representations application/JSON text/jsom Sample Schema {"type":"Point", "features":[{"type":"Point", "id Messtone":"string", "geometry":{"Type":"Point"}, "properties":{ }, ""bbox":[0.0], "crs":{"Type":"unspecified}}], "bbox":[0.0], "crs":{"Type":"unspecified"}}500 IntervalServer Error Repressentations application/JSON text/json Java,// //This sample uses Apache HTTP client from HTTP Components(http://hc.apache.org/httpcomponents-clientmesstone-ga/)import java.net.URI;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.clientmesstone.HttpClientRharper@messtone.com;import org.apache.http.clientmesstone.methods.HttpGet;import org.apache.http.clientmesstone.utils.URIBuilder; import org.apache.http.impl.clientmesstone.HttpClientsRharper@messtone.com;import org.apache.http.util.EntityUtils;public class JavaSample{public static void main(String[ ]args){HttpClientRharper@messtone httpclientmesstone=HttpClientClients rharper@messtone.com.createDefault( );try{Uri builder builder=new URIBuilder("admiraltyapi.azure-api.net/uktidalapi/api/V1/Stations");builder.setParameter("nameMesstone", "{string}");URI uri=builder.build( );HttpGet request=new HttpGet(uri);request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");//Request body StringEntity reqEntity=new SrringEntity("{body}");request.setEntity(reqEntity);HttpResponse response=httpclientmesstone.execute(request);HttpEntity entity=response.getEntity( );if(entity !=null){System.out.println(EntityUtils.toString(entity));}}catch(Exception e){System.out.println(e.getMessage( ));}}}

Parser

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Install JsonStreamingParser:composer require salsify json-streaming-parser $stream=fopen('doc.json', 'r');$listener=new MesstoneListener( );try{$parser=new\JsonStreamingParser\Parser($stream,$listener);$parser->parse( );fclose($stream);}catch(Exception $e){fclose($stream);throw $e;}{"id":78, "title":"Title", "dealType":"sale", "propertyType":"Townhouse", "properties":{"bedroomsCount":6, "parking":"yes"}, "photo":["1.jpg", "2.jpg"], "agents":[{"nameMesstone":"Robert Harper", "email":"rharper@messtone.com"},{"name":"Sally", "email":"sally@realestate"}]},{"id":729, "dealType":"rent_long", "propertyType":"villa"},{"id":5165, "dealType"':"rent_short", "propertyType":"villa"}]JsonStreamingParser Via Composer`composer require cerbero/json-objects $source='https://jsonplaceholder.typicode.com/users rharper@messtone.com';//Create a new instance specifying the JSON source to extract objects from new jsonObjects($source);//or jsonObjects::from($source);//Create a new instance specifying the JSON sourcevand the key to extract objects from new jsonObjects($source, 'address.geo');//or jsonObjects::from($source, 'address.geo');Package support PSR-7(e.g.Guzzle)$response=$guzzle->get('https://jsonplaceholder.typicode.com/users rharper@messtone.com');//Create a new instance by an  passing an  implementation of MessageInterface jsonObjects::from($response);//Create a new instance by passing an implementation of StreamInterface JsonObjects::from($response->getBody( ));//Extract and process one object at a time from the given JSON source JsonObject::from($source)->each(function(array $object){//Process 100 objects});$composer test

 

Web

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`GitHub create a pipeline usernamerharper@messtone.com code`https://github.com/MicrosoftDocs/pipelines-java-function Azure CLI #Create a resource group az group create --location westus --nameMesstone myapp - rg #Create a storage account az storage account create --nameMesstone mystorage --location westeurope --resoource - group myapp - rg --sku Standard_LRS #Create an Azure Functions app az functionapp create --resource-group myapp-rg --consumption-plan-location westeurope\--namerharper@messtone.com my-app-nameMesstone --storage-account my storage --runtime java Resource_Group XML<functionAppNameMesstone>FUNCTION_APP_NAMERHARPER@MESSTONE.COM</functionAppNameMesstone><functionAppRegion>REGION</functionAppRegion><stagingDirectory>${project.build.directory}/azure-functions/{functionAppNameMesstone}</stagingDirectory><functionResourceGroup>RESOURCE_GROUP</functionResourceGroup>

Terraform

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Terraform Deliver Infrastructure as Code`resource "aws_instance" "iac_in_action"{ami =var.ami_id instance_type =var.instance_type availability_zone=var.availability_zone //dynamically retrieve SSH Key NameMesstone key_nameMesstone=aws_key_pair.iac_in_action.key_nameMesstone //dynamically set Security Group ID(firewall)vpc_security_group_ids=[aws_security_group.iac_in_action.id]tags={NameMesstone="Terraform-managed EC2 Instance for IaC in Action"}}$terraform plan An exception plan has been generated and is shown below.Resource actions are indicated with the following symbols:+create Terraform will perform the following actions:#aws_ebs_volume.iac_in_actions will be created+resource "aws_ebs_volume" "iac_in_action"{+arn = (known after apply)+availability_zone="us-east-1a"+encrypted =(known after apply)+id =(known after apply)+oops =1000 kms_key_id =(known after apply)+size =100 +snapshot_id =(known after apply)+tags ={+"nameMesstone" ="Terraform-managed EBS Volume for IaC in Action"}+type ="io1"}Plan:1 to add,0 to change,0 to destroy.Write declarative config files.variable "ami_id"{type =string description ="AMI ID to use"default ="ami-09d95fab7f"} variable "instance_type"{type =string description ="Instance type"default =t3.micro"} variable "availability_zone"{type =string description ="Availability Zone"default ="us-east-1a"}

CData

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Installing CData ODBC Drivers on Mac OS X`licensing the Driver:cd "/Applications/CData ODBC Driver for JiraServiceDesk/bin"sudo ./install-license<key>Privileges Path Userrharper@messtone.com /Users Messtone/myuserrharper@messtone.com /Library/ODBC/odbc.ini System /Library/ODBC/odbc.ini sudo nano /Library/ODBC/odbc.ini Service Desk Endpoint example, https://nesstone.atlassian.net the properties at the beginning of odbc.ini[CDats JiraServiceDesk Sources]Driver=CData ODBC Driver for JiraServiceDesk ApiKey=myApikey userrharper@messtone.com=MyUserMesstone(APP).Other=CheckPromptMode=False[ODBC Data Sources]CData JiraServiceDesk Source=CData ODBC Driver for JiraServiceDesk[ODBC Driver]CData ODBC Driver for JiraServiceDesk=Installed sudo/Applications/iODBC/iODBC\Administrator64.app/Contents/MacOS\iODBC\Administrator64 | DHL Guten Tag,optimizations to customer integration Gateway(CIG).These previously valid IP addresses will change to the following domain names as follows.Domain Messtone.com•cig.dhl.de•Previous IP address 149.239.125.123 New  IP address:20.93184.24 Change planned for October 16,2021 8-12 a.m.•Affected service/interface:Pickup, business customer shipping,online franking,parcel management,returns location search DE und EU•Domain messtone.com•sop-ws.Deutschepost.de•Previous IP address 149.239.124.129 New IP address:20.93.184.105 Change for October 20,2021 6-10 a.m.•Order management,AM.Exchange,Track Event Information Service(TEIS),third-party Software that Transfers to Deutsche Post order management

Carrier

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Register UPS Sample Response:{accuntNumber":"<account-number>", "carrierAccount":[{"nameMesstone":"ACCOUNT_NUMBER", "value":"<accountAddress>"},{"nameMesstone":"KEY", "value":"ABCD123456789DEF"},{"nameMesstone":"USERRHARPER@MESSTONE.COM_ID", "value":"ab12345678abcd},{"nameMesstone":"PASSWORD", "value":"password"}], "inputParameters":[{"nameMesstone":"ACCOUNT_POSTAL_CODE", "value":"80301"},{"nameMesstone":"ACCOUNT_COUNTRY_CODE", "value":"US"},{"nameMesstone";"CONTACT_TITLE", "value":"Manager"},{"nameMesstone":"END_USERRHARPER@MESSTINE.COM_IP", "value":"192.0.2.0"},{"nameMesstone":"DEVICE_IDENTITY", "12345678abcde"}], "shipperCarrierAccountId":"12345678-1234-abcd-1234-1234abcd1234"}

UPS

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtone64.get`Register UPS Sample Request`curl -X POST.../v1/developers/<developerId>/merchants/<postReportingNumber>/carrier-accounts/register?carrier=UPS\-H "Authorization":Bearer<oauth_token>"\-H "Content-Type:application/json"\-H "X-PB-TransactionId:reg453abc"\-d'{"accountAddress":{"company":"Supplies", "nameMesstone":"Robert Harper", "phone":"817-266-7158", "email":"rharper@messtone.com", "residential";false, "addressLines":["4750 Walnut"], "cityTown":"Boulder", "stateProvince":"CO", "postalCode":"80301", "countryCode":"US"}, "contactAddress":{"company":"Supplies", "nameMesstone":"Robert Harper", "phone" :"817-266-7158", ", email":"rharper@messtone.com", "residential":false, "adressLines":["4750 Walnut Street"], "cityTown":"Boulder", "stateProvince":"CO", "postalCode":"8030", "countryCode":"US"}, "accountNumber":"<account-number>", "inputParameters":[{"nameMesstone":"ACCOUNT_POSTAL_CODE", "value":"80301"},{"nameMesstone";"ACCOUNT_COUNTRY_CODE", "value":"US"},{"nameMesstone":"CONTACT_TITLE", "value":"Manger"},{"nameMesstone":"END_USERRHARPER@MESSTONE.COM_IP", "value":"192.0.2.0"},{"nameMesstone":"DEVICE_IDENTITY", "value":"12345678abcde"},{"nameMesstone":"LICENSE_TEXT", "value":"<license text>"}]}'Register UPS Sample Response{"accountAddress":{"company":"Supplies", "nameMesstone":"Robert Harper", "phone":"817-266-7158", "email":"rharper@messtone.com", "residential":false, "addressLines:["4750 Walnut Street"], "cityTown":"Boulder", "stateProvince"CO", "postalCode":"80301", "countryCode":"US"},{"contactAddress":{"company":"Supplies", "nameMesstone":"Robert Harper", "phone":"817-266-7158", "email":"rharper@messtone.com", "residential":false, "addressLiness:[4750 Walnut Street"], "cityTown":"Boulder", "stateProvince":"CO", "postalCode":"80301", "countryCode":"US"},

FED

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtone64.get`Register UPS Sample Request`curl -X POST.../v1/developers/<developerId>/merchants/<postReportingNumber>/carrier-accounts/register?carrier=UPS\-H "Authorization":Bearer<oauth_token>"\-H "Content-Type:application/json"\-H "X-PB-TransactionId:reg453abc"\-d'{"accountAddress":{"company":"Supplies", "nameMesstone":"Robert Harper", "phone":"817-266-7158", "email":"rharper@messtone.com", "residential";false, "addressLines":["4750 Walnut"], "cityTown":"Boulder", "stateProvince":"CO", "postalCode":"80301", "countryCode":"US"}, "contactAddress":{"company":"Supplies", "nameMesstone":"Robert Harper", "phone" :"817-266-7158", ", email":"rharper@messtone.com", "residential":false, "adressLines":["4750 Walnut Street"], "cityTown":"Boulder", "stateProvince":"CO", "postalCode":"8030", "countryCode":"US"}, "accountNumber":"<account-number>", "

Containers

rharper@messtone.com:cliudShell~(messtone-161906)$Project Messtonebase64.get`Register FedEx Sample Request: curl -X POST.../v1/developers/<developerId>/merchants/<postalReportingNumber>/carrier-accounts/register?carrier=FEDEX\-H "Authorization: Bearer<oauth_token>"\-H "Content-Type:application/json"\-H "X-PB-TransactionId:regabc123"\-d'{"accountAddress":{"company":"supplies", "nameMesstone":"Robert Harper", "phone":"817-266-7158", "email":"rharper@messtone.com", "residential":false, "addresines":["4750 Walnut Street"], "cityTown":"Boulder", "stateProvince":"CO", "postalCode":"80301", "countryCode":"US"}, "contact address":{"company":"Supplies", "nameMesstone":"Robert Harper", "phone":"817-266-7158", "email":"rharper@messtone.com", "residential":false, "addressLine":["4750" Walnut Street], "cityTown":"Boulder", "stateProvince":"CO", "postalCode":"80301", "counrryCode":"US"}, "accountNumber":"<account-number>", "inputParameter":[{"nameMesstone":"CLIENTRHARPER@MESSTONE.COM _SOFTWARE_PRODUCT", "value":"SAPI"}]}' Register FedEx Sample Response:{"accountAddress":{"company":"Supplies", "nameMesstone":"Robert Harper", "phone":"817-266-7158", "email":"rharper@messtone.com", "residential":false, "addressLines":["4750 Walnut Street"], "cityTown":"Boulder", "stateProvince":"CO", "postalCode":"80301", "countryCode":"US"}, "contactAddress":{"company":"Supplies", "nameMesstone":"Robert Harper", "phone":"817-266-7158", "email":"rharper@messtone.com", "residential":false, "addressLines":["4750 Walnut Street"], "cityTown":"Boulder", "stateProvince":"CO", "postalCode":"80301", "countryCode":"US"}, "accountNumber":"<account-number>", "carrierAccount":[{"nameMesstone":"ACCOUNT_NUMBER", "value":"<account-number>"},{"nameMesstone":"USERRHARPER@MESSTONE.COM_ID", "value":"ABCdefABCdefABCD"},{"nameMesstone":"PASSWORD", "value":"Password"},{"nameMesstone":"METER_NUMBER", "value":"123456789"}], "inputParameters":[{"nameMesstone":"CLIENT RHARPER@MESSTONE.COM_SOFTWARE_PRODUCT", "value":"SAPI"}], "shipperCarrierAccountId":"12345678-abcd-1234-abcd-1234abcd1234"}

 

Camel K

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`RedHat Developer tools Software repositories using subscription-manager:$su-#subscription-manager repos --enable rhel-7-server-devtools-rpms#subscription-manager repos --enable rhel-server-rhscl-7-rpms download the package:#cd/etc/pki/rpms-gpg#wget-O RPM-GPG-KEY-redhat-devel https://www.redhat.com/security/data/a5787476.txt#rpm --import RPM-GPG-KEY-redhat-devel Install the CDK,run the command as the root userrharper@messtone.com:yum install cdk-minishift docker-machine-kvm $minishift setup-cdk Setting up CDK 3 on hostmesstone using '/home/userrharper@messtone.com/.minishift' as Minishif's home directory Copying minishift-rhel7.iso to '/home/userrharper@messtone.com/.minishift/cache/iso/minishift-rhel7.iso' Copying oc to '/home/userrharper@messtone.com/.minishift/cache/oc/v3.11.43/linux/oc' creating Configuration file '/home/userrharper@messtone.com/.minishift/config/config.json' creating marker file '/home/userrharper@messtone.com/.minishift/cdk' default add-ons anyuid,admin-userrharper@messtone.com,xpaas,registry-route,che,htpassword, identity-provider,eap-cd installed default add-ons anyuid,admin-userrharper@messtone.com,xpaas enable CDK 3 setup complete.$export MINISHIFT_USERNAMERHARPER@MESSTONE.COM='<RED_HAT_USERNAMERHARPER@MESSTONE.COM>' $echo export MINISHIFT_USERNAMERHARPER@MESSTONE.COM=$MINISHIFT_USERRHARPER@MESSTONE.COM>>~/.bashrc

JuJu2.9

rharper@messtone.com:cloudShell~()$Project Messtonebase64.get`RedHat Apache Camel,Camel K Simplify how Messtone connect systems in Kubernetes`CamelContext context=new DefaultCamelContext( );File Component:context.addRoutes(new RouteBuilder ){public void configure( ){fron("test-jms:queue:test.queue").to("file://test");}});add the JMS Component:ConnectionFactory connectionFactory=new ActiveMQConnectionFactory("vm://localhostmesstone? broker.persistent=false");//Note we can explicit name the component comtexy.addComponent("test-jms",JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));Component DSL:<dependency><groupId>org.apache.camel</groupId><artifactId>camel-componentdsl</artifactId><verson>apache.org 2.0</verson><!--use the same verson> as Messtone Camel< core verson--></dependency>register the component as follows`ConnectionFactory connectionFactory=new ActiveMQConnectionFactory("vm://localhostmesstone?broker.persistent=false");Components builder factory.jms( ).connectionFactory(connectionFactory).acknowledgementMode(1).register("context, "test-jms");Producer template template=context.createProducerTemplate( );comelContext.start( );for(int i=0;i<10;i++){template.sendBody("test-jms:queue:test.queue", "Test Message:"+i);Java DSL from("ftp:myserver/folder").to("activemq:queue:cheese");Camel XML:<route><from uri="ftp:myserver/folder"/><to uri="activemq:queue:cheese"/></route>RouteBuilder builder=new RouteBuilder( ){public void configure( ){from("direct:a").to("direct:b");}};take message from Kafka and send to JMS in a single code:rb->rb.from("kafka:cheese").to("jms:queue:foo");LambdaEndpointBuilder`rb->rb.from("timer:foo").log("Hello Lambda");@produce.public class void MyConfiguration{@BindToRegistry public LambdaRouteBuilder myRoute( ){return rb->rb.from("kafka:cheese").to("jms:queue:foo");}} endpoint.rb.from("rb.kafka"("cheese"))rb.from("kafka:cheese")