Tag Archives: Java

Creating a Java WebStart (JNLP) application

Java WebStart, also called Java Network Launching Protocol (JNLP), allows you to launch Java applications directly from the internet using a webbrowser. In this article we will create a simple application and all configuration files necessary to launch it through … Continue reading

Posted in programming | Tagged , , | Leave a comment

Model View Controller (MVC) with JSP and JSTL

In this article we will create a small web application that uses the Model View Controller (MVC) pattern with Java Server Pages (JSP) and JSP Standard Template Library (JSTL). A container like Tomcat is needed to run this combination. Thanks … Continue reading

Posted in programming | Tagged , , , | 3 Comments

Changing CPU and memory settings on XenServer VMs

You can change the CPU and memory settings of XenServer virtual machines using the API. XenServer allows you to set the priority of the virtual machine CPU (called weight), set a limit on the amount of CPU the virtual machine … Continue reading

Posted in Cloud computing, programming | Tagged , | 7 Comments

Installing Sun JDK 6 on Ubuntu 10.04

The Sun JDK can be installed on Ubuntu by adding a repository and installing with apt-get. The following works with the latest versions of both at the time of writing: Sun JDK 6 update 20 Ubuntu 10.04 sudo add-apt-repository “deb … Continue reading

Posted in programming | Tagged | 8 Comments

Getting CPU, memory, disk and network metrics from XenServer

In a previous article we looked at getting CPU and memory metrics from XenServer. As noted in that article, as of version 5.5 of XenServer, the preferred way of getting virtual machine metrics is through HTTP calls to get RRD … Continue reading

Posted in Cloud computing, programming | Tagged , | 1 Comment

Getting XenServer VM metrics in Java

XenServer is a product of Citrix that can run virtual machines on a set of physical hosts called a pool. There is an API that allows you to create programs that interact with the XenServer pool. There are some function … Continue reading

Posted in Cloud computing, programming | Tagged , | 3 Comments

Using OpenJMS within Eclipse

OpenJMS allows you to use the Java Message Service (JMS) without a full-fledged Java Enterprise Edition container. It is an open source implementation of the JMS 1.1 specification. We start by installing and starting OpenJMS. On Windows this is done … Continue reading

Posted in programming | Tagged , , , | Leave a comment

Sample Tomcat application

Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed by Sun under the Java Community Process. We want to … Continue reading

Posted in programming | Tagged , | Leave a comment

Sockets in Java

TCP provides a reliable, point-to-point communication channel that client-server applications on the Internet use to communicate with each other. To communicate over TCP, a client program and a server program establish a connection to one another. Each program binds a … Continue reading

Posted in programming | Tagged , | Leave a comment