Update: A newer version of this post has been published to the IBM Bluemix blog.
For example, if you push an application to Bluemix, the name you provide will be prepended to .mybluemix.net resulting in an address such as:
To illustrate the problem and the solution, consider the simple Ajax application here:
However, if you click the blue box, you’ll initiate a call to a different servlet on that host:
This time the Ajax call will successfully consume data from the service, because the HTTP headers allow services from a different domain to access the servlet.
"POST, GET, DELETE, PUT"
If you need to allow access to all client hostnames, replace the whitelist with a wildcard:
I used Java in this example, but the same HTTP headers apply whether you’re using Ruby, Node.js, PHP, Python or any other runtime.
Next Tuesday, June 26th, I’ll be speaking at the New York PHP user group about the project I led to bring the Zend Application Fabric onto IBM’s on-premise private cloud rack, PureSystems, and onto IBM’s public cloud, SmartCloud Enterprise.
I’ll describe the Zend Application Fabric for highly available PHP clusters, and show how its topology is supported by scaling and failover policies built into the IBM platform. I’ll also show how it integrates with the DB2 based Database-as-a-Service.
At the core of the Zend/IBM system is an IBM virtual application pattern (based on the TOSCA standard) that specifies how virtual machines are layed out, which other VMs they should link (or react) to based on life cycle events, and when they should scale up or down.
You will learn how to activate the Zend pattern, customize the topology, set a scaling policy, monitor the infrastructure, tweak the Zend configuration, view IBM elasticity and fault tolerance in action, and perform repeatable deployments using a template.
Soon, you’ll also be able to deploy your production-ready applications to the IBM SmartCloud.
RSVP now for Tuesday night’s meeting at IBM in midtown Manhattan.
Or, if you can’t make it in person, watch online with Cal Evans.
IBM developerWorks has just published the final part in our series on migrating a PHP application from MySQL to DB2.
Learn why to move a PHP application to DB2, how to plan the migration, how to execute it, how to support it, and how to handle potential risks based on the experience of an IBM intranet application case study. This four-part series shares lessons from a successful MySQL-to-DB2 migration for a mission-critical PHP intranet application used by 4,000 global users within IBM to support content production for ibm.com.
- Part 1: Prepare for your migration
- Part 2: Migrate your data
- Part 3: Convert your PHP code
- Part 4: Deploy your application
In addition to sharing our own experience, the series highlights the number of resources available to you to carry out your own migration.
This month we have a double feature at New York PHP.
Well, it took just under two years and quite a bit of marketshare loss, but I found some time to release my long promised native BlackBerry application for Metro-North commuter train schedules.
You can download NYC North Trains for free, over-the-air. I’ve tested it on OS 5 and 6 devices such as the Curve, Style, Storm 2, Bold, Tour and Torch.
Like the simple Web interface I’ve provided for nearly five years, the native app offers an interface to the MTA schedule data optimized for mobile devices.
However, it also offers some features that make the experience quite a bit more convenient for BlackBerry users.
- Simple schedule selection using BlackBerry dropdowns and date picker
- The ability to save your preferred origin and destination (and toggle them depending on which way you’re going)
- Ability to email the schedule results from the device
- Ability to save a particular departure to your calendar to block your travel time
Of course, this application comes with the standard disclaimer.
Not affiliated with the MTA or the States of New York and Connecticut. This tool uses live information directly from mta.info, so schedules are always based on the latest available information. This tool retains no copies of schedule information from the MTA.
IBM developerWorks just published an article I wrote about using the Development and Test Cloud to create PHP applications.
If the content looks familiar, you may have seen an earlier version in a print copy I handed out at New York PHP (PDF) late last year.
Speaking of the cloud and NYPHP, don’t forget to join us next week to look at an alternative way to use the cloud to develop PHP applications using Amazon and RightScale.