DataServices Java Client – HelloWorld Remoting

DataServices is not just limited to Flash and JavaScript/HTML clients. It can talk to Java, Android, and iOS clients as well. In this video, I walk through a Java remoting sample similar to the previous Flash & HTML/JS remoting sample I talked about.

If you want to run the application yourself, here’s the zip file with the Java classes I mentioned in the video.

Advertisements

DataServices JavaScript Client – HelloWorld Messaging

Let’s continue exploring the new DataServices JavaScript Client. This time, we write a simple HTML/JavaScript chat application that talk to other Flex/Flash based chat applications using DataServices.

If you want to run the HTML/JavaScript chat sample, put Chat.html next to Chat.swf along with dataservices-client.js that’s under resources/client-sdk/javascript folder of DataServices installation.

DataServices JavaScript Client – HelloWorld Remoting

In this video, I talk about how you can convert a simple Flex remoting application talking to DataServices into a JavaScript/HTML application.

If you want to run the sample yourself, here is the productRO.html file that I talked about in the video. Copy it where productRO.swf is along with dataservices-samples.js provided in resouces/client-sdks/javascript folder of DataServices installation.

DataServices 4.6 – Samples Application

As I mentioned in my previous post, DataServices 4.6 Preview is out on Adobe Labs. DataServices comes with an application called “dataservices-samples” and as the name suggests, this is a nice collection of sample applications that you can explore on your own. Once DataServices is installed, here are some quick steps to start up dataservices-samples:

1. Start the bundled Tomcat: From the terminal, go to “tomcat/bin” directory under where DataServices is installed and type “catalina.sh run” or “catalina.bat run” on Windows. After a few seconds, you should see something like this on console:

[Data Services] [WARN]  ******* Data Services Beta Expires on Dec 15, 2011 *******
Nov 3, 2011 9:07:54 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 37026 ms

2. Start the bundled HSQLDB: Go to “sampledb” folder and type “startdb.sh” or “startdb.bat” on Windows. After a few seconds, you should see something like this:

[Server@9d04653]: 2011-11-04 06:10:15.000 HSQLDB server 1.8.0 is online
[Server@9d04653]: To close normally, connect and execute SHUTDOWN SQL
[Server@9d04653]: From command line, use [Ctrl]+[C] to abort abruptly

3. Hit the landing page at http://localhost:8400/dataservices-samples/ and you should see the landing page:

That’s it! There are bunch of new and old samples. I encourage you to play with the “HTML5/JS, iOS, Android Client SDKs” samples, they are pretty cool!

In the next post, I’ll walk you through a Flex Remoting sample and then we will convert that sample to HTML/JavaScript utilizing our new JavaScript Client SDK.

Data Services 4.6 Pre-Release

As DataServices team, we’ve been working hard on a number of cool features, so much so that I forgot to mention the latest and greatest version of DataServices has been pre-released on Adobe Labs. There are a lot of cool and useful features in this release. You can see the full list on the pre-release site but I’m especially excited about all the new client SDKs we’ll be providing to connect a number of different desktop and mobile clients to DataServices. With these native client SDKs, we’re transforming DataServices from a Flash-only server to a multi-client server. I personally worked on Java, Android, JavaScript/HTML5 client SDKs and I’d love to hear what you think. Send us comments in the pre-release forum.