Archive for the ‘SOA’ Category

Creating asynchronous servlets with Tomcat 7 (Servlet 3.0 API)

Posted April 13th, 2011 by
Summary

Overall, the API is pretty straightforward to use, assuming that you are familiar with asynchronous processing in the first place. However, if you are not familiar with asynchronous processing, then this business of callbacks can be quite confusing and daunting. Additionally Tomcat 7 and Servlet API 3.0 make it easier to configure servlets using annotations. There are other cool features in 3.0 that I haven’t covered in this tutorial, like loading servlets programmatically.

Click here to read this tutorial...   |  

Twitter API integration

Posted August 4th, 2009 by
Summary

I’ve been building web, mobile, desktop apps that are powered by the ScreamingToaster ONE Platform for the last 3 years. I’ve had to integrate with a lot of services, like weather, credit card payment processing gateways, GeoIP lookups, CellID lookups, etc. One of the easiest integrations I’ve had to perform is with Twitter :) . Twitter has a simple to use API that can be accessed using Java or just about any other language. There are some really good Java wrappers for this API, and I’m going to highlight a really good one in this tutorial. I’m also going to show you how to integrate with Twitpic using Java.

Click here to read this tutorial...   |  

Connecting to the LinkPoint staging server for payments integration

Posted August 4th, 2009 by
Summary

I’ve build payments and licensing infrastructure for my ScreamingToaster ONE Platform, that allows mobile, web, and desktop software to share the same payments and licensing services. For payments, I integrated with FirstData Global Gateway, using the LinkPoint API. The LinkPoint API is good and FirstData provides lots of documentation that shows you how to get started. However, there is one huge flaw in their API and support docs – they don’t show you how to connect to the LinkPoint TEST gateway. All the code and examples are geared to connect to the PRODUCTION/LIVE gateway. If you’re like me, you want to test your stuff before hooking up to the LIVE gateway :) . So this tutorial is dedicated to simply connecting to their TEST gateway, so that you can test your code before going live.

Click here to read this tutorial...   |  

Geocoding tutorial – Accessing Google Static Maps from Java

Posted April 21st, 2008 by
Summary

Given an IP address, this tutorial will show you how to get a Google Static Map from it. This is the third part of a 3 part series of tutorials on geocoding.

Click here to read this tutorial...   |  

Geocoding Tutorial – Getting physical address from IP address (using MaxMind)

Posted April 21st, 2008 by
Summary

Given an IP address, this tutorial will show you how to get geographic location information from it. You can then use this location information for many different things, like looking up weather there, or perhaps displaying a pushpin on google maps, etc. This is the second part of a 3 part series of tutorials on geocoding.

Click here to read this tutorial...   |  

Geocoding Tutorial – Getting physical address from IP address (using ippages)

Posted December 18th, 2007 by
Summary

Given an IP address, this tutorial will show you how to get geographic location information from it. You can then use this location information for many different things, like looking up weather there, or perhaps displaying a pushpin on google maps, etc. This is the first part of a 3 part series of tutorials on geocoding.

Click here to read this tutorial...   |  

Lightweight Remote Object Access – RESTful Java

Posted November 27th, 2007 by
Summary

With web services, SOAP and XML RPC and sessionless RESTful protocols becoming popular over the last few years, this tutorial will take you through the steps of crafting a very lightweight RPC mechanism that uses Java’s object serialization and HTTP (URLConnection and Servlets).

Click here to read this tutorial...   |  

What is SOA?

Posted November 6th, 2007 by
Summary

“What is SOA?” This is a white paper on the definition of SOA (Service Oriented Architecture) and what ecosystem it fits in, and issues that are relevant to people at various stages of adopting this paradigm.

Click here to read this tutorial...   |  

Creating multi-threaded Swing apps that consume web services

Posted January 8th, 2007 by
Summary

If you’ve ever want to incorporate web services into your graphical applications/applets/widgets written in Java, then there are some threading issues that you have to be mindful of, and design around. This tutorial will guide you though some of the important threading issues you have to keep in mind when building such applications. The strategies outlined in this tutorial apply to accessing more than just web services from Swing apps; it also applies to loading information from databases, and performing any other kind of time consuming process that has to happen in the desktop app and interact with it, but can’t make the user interface unresponsive.

Click here to read this tutorial...   |  

Source code for accessing weather.com XML data feed from Java

Posted January 2nd, 2007 by
Summary

If you’ve ever wanted to access weather reports from your desktop applications, widgets, or web applications, I’ve got some source code that will make it easier than ever to access this weather data from a Java API.

Click here to read this tutorial...   |