Skip to main content

Posts

Showing posts from March, 2015

WSO2: Simple Pass through proxy (REST to REST with HTML Reply)

Today I set out on trying to set up a simple passthrough proxy that would allow for a GET request to be made to REST style backend services that replies with HTML content. The proxy services was being set up on WS02 ESB v4.8.0.  I thought this was really going to be as simple as walking though their wizard and setting up a new proxy endpoint that just handed off to the behinds the scene service. It was straight forward to set up the proxy, but then unfortunately when called it just didn't respond. It took quite awhile to figure out what the issues was.  At first I was using the ESB admin console and review the System and Application Logs.  The Application Logs were certainly more useful, but they still truncated stack traces which made it hard to clue in on the real issue. It wasn't until I went and review the logs on the server that I was able to detect the cause.   <wso2_esb_root>/repository/logs/wso2-esb-errors.log 2015-03-19 16:09:43,001 [-] [Pass

Getting Rolling with Cloud Foundry PAAS

Getting familiar with a PAAS environment for even an experience Java developer can be pretty daunting.  First you need to select a PAAS and then you need to navigate through all of the documentation and try to figure out how to get rolling.  The next couple of posts will detail the steps I took to get rolling with Pivotal's http://pivotal.io  Cloud Foundry (Community Edition) http://www.cloudfoundry.org/index.html  PAAS.  You are familiar with what a PAAS actually is, you may want to spend a little bit of time reading up on PAAS before proceeding. Part 1: Connecting To Your Cloud Foundry Instance The first thing I did was install the Spring Tool Suite (STS) v3.6.3-SR1 https://spring.io/tools/sts/all  on my MAC running Yosemite OS X 10.10.  Make sure you download and install the right version for your development system. Note: Also a system requirement for STS 3.6.x was to have at least JDK7 running on your system.  I am currently running Java 8 update 40 on my MAC.  If you do