Interoperability @ Microsoft on July 28 announced Windows Azure AppFabric Service Bus samples for all the PHP and Java developers. "Since the AppFabric Service Bus REST API can be used from almost all programming languages and operating systems, it makes it very easy for applications written on any platform to interoperate with each another through Windows Azure," wrote Alessandro Catorcini.
"To illustrate the point, we took the chat application that is already available as part of the Silverlight samples and made sample clients in PHP and Java that can all work seamlessly together."
"The Java application is implemented as a stand-alone client app and these're the steps you need to follow to build it:
- Edit the src\config\appfabric.properties file and add your Service Namespace, Issuer Name and Issuer Secret Key (obtained here).
- Compile source using Apache Ant: navigate to application directory in a command prompt and run "ant".
- Once the build is complete, cd to new "dist" directory and run the jar file: "java -jar AppFabricChat.jar".
To use PHP app, you need to:
- Add your Service Namespace, Issuer Name and Issuer Secret Key to application\configs\appfabric.ini (obtained here).
- Then point your webserver at the "public" directory and browse to the site.
To set up a new site in IIS:
- Open "Internet Information Services (IIS) Manager"
- Click "View Sites", then "Add Web Site…"
- Give the site a name such as AppFabricChat and point "Physical path" to the "public" directory of the PHP application.
- Pick port and hostname information, and click OK.
- Click the link under "Browse Web Site" to see the application," explains Catorcini.
Note: If PHP isn't enabled on your web server, use WebPI to install it.
You can download the new PHP and Java samples, as well as all others for all other supported environments, from CodePlex.
[Source: Interoperability @ Microsoft]