Archive for the ‘Network’ 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...   |  

Creating a BlackBerry HTTP Connection – Tutorial

Posted October 12th, 2009 by
Summary

This tutorial will show you the various ways to create an HTTP networking connection from your BlackBerry device to an HTTP server (web service, servlet, etc). The complicated part about doing this on a BlackBerry is deciding which transport you would like to use, and which transport you can use.

Click here to read this tutorial...   |  

Android – How to build a service-enabled Android App – Part 2/3 Networking

Posted June 4th, 2008 by
Summary

I’ve written 3 tutorials to show you how to create a service enabled Android application that performs all of it’s network I/O in a background thread (not the UI thread). These tutorials are split into three parts. This one shows you how to use Apache HTTP Client to connect to services over HTTP or HTTPS and exchange serialized Java objects with services.

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...   |  

XML SQL gateway (socket based)

Posted November 27th, 2007 by
Summary

The XML SQL database gateway is an engine that accepts an SQL command and returns the ResultSet as an XML document. The gateway uses JDBC in order to connect to the actual database. The gateway also comes with a socket connector. This allows the gateways services to be accessed over a simple socket. Only the socket implementation is provided in this tutorial, the Servlet connector is not provided.

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...   |  

JVM, URLs and Firewalls

Posted December 30th, 1998 by
Summary

How to provide a JVM with proxy server settings to tunnel through a firewall (when a proxy server is present)

Click here to read this tutorial...   |