Archives

Apex callout PATCH to Heroku Controller workaround

Setup a method to send Aync call to Heroku, add ‘?_HttpMethod=PATCH’ to the path to notify Heroku it’s a patch request Spring controller checks the RequestParam _HttpMethod to see if it’s a POST or PATCH request

Rate this:

Read More

Heroku deploy local jar to Maven Dependencies

Sometime a jar is not available via Maven Central Repository and you need to load a jar from your local filesystem. Copy the jar file to a lib directory in your project. Execute the following command via command line Add the following to maven pom.xml

Rate this:

Read More

Create a Salesforce EventBus

Create a new Planform Event Object and give it a name App Metadata (App_Metadata__e) which will also be the name of the topic. Create some fields you that you would like to listen to. In Apex add the following event Build event payload Publish Event to eventBus Now let’s create our event listen to subscript […]

Rate this:

Read More

Run Spring Boot Scheduler as Heroku Worker

1. Setup Application 2. Setup Scheduler 3. Add Spring Boot dependency 4. Add Procfile 5. Scale Heroku worker 1. Setup Application 2. Setup Scheduler 3. Add Spring Boot dependency 4. Add Procfile 5. Scale Heroku worker

Rate this:

Read More

Heroku OAuth 2.0 Scribe Spring MVC Example

ApplicationContext.xml defines herokuServiceConfig and herokuServiceProvider Bean Spring MVC Heroku OAuth Controller HerokuOauthApi extends DefaultApi20

Rate this:

Read More

Setup Custom Domain on Heroku from GoDaddy

Add new custom domain to Heroku Add both with www. and no www. domain names. It will look like the following Login to Godaddy and add/edit host:www to your heroku app, it will looks like follows: Add a forwarding rule to that http://example.com will be directed to http://www.example.com

Rate this:

Read More

New-Relic Add-on for Java Application on Heroku Setup

Add New Relic Agent Dependency pom.xml build tag Create newrelic.yml and save to project route (same level as pom.xml) Add the following flag to your JAVA_OPTS config var on Heroku:

Rate this:

Read More

Heroku Elastic Search Example

Elastic search configuration Elastic search service

Rate this:

Read More

Heroku MemCached Junit Test

Heroku Memcached Cloud Junit Test

Rate this:

Read More

Setup Memcached on Heroku

Add memcachedcloud to your project: heroku addons:add memcachedcloud 1. Setup Memcached Configuration 2. Setup Memcached Service 1. Setup Memcached Configuration 2. Setup Memcached Service

Rate this:

Read More