Categories Java

Jersey 2 Client and Server Example with Enunciate and Validation

This example uses Jersey 2.25 and Maven.... Read More

Java How to Convert Image to ZPL Zebra printer format Example

This example shows how to convert an image to a ZPL code file with Java.... Read More

Simple proxy serlvet example for slow requests

In java if you are dealing with slow requests to a server but you need a fast response but you can't modify the code that produces that response, one solution is to create a proxy that will call that final URL for you and tell you when it's finished.... Read More

Install Svn server on ubuntu and Test it with Tortoise

In this tutorial Ubuntu 14.04 and Apache/2.4.7 are used. The client used is Tortoise for Windows.... Read More

Struts2 Create Custom not found page

To achieve this you must implement an Unknown Handler (they are available from Struts 2.1 on)... Read More

Proxy Balancer Session for Apache in Ubuntu Example

This example shows how to make a simple balancing for multiple instances using Apache balancer. Three tomcats in session configuration will be used. The Apache Balancer will always send all requests to the same server as long as it has the same session cookie. If one of the tomcats is shut down it will redirect to another cluster member server without sending any error messages to the client.... Read More

Struts 2 Download File Annotations Examples

Examples on how to download a file from Struts2 with annotations only.... Read More

Java Simple Proxy Server with Sockets Examples

In these examples you can find different ways of creating simple proxy socket servers. This can be useful to you for a number of reasons:... Read More

Struts2 with Annotations Json and Datatables Example

This example uses Struts2 with annotations to provide a Datatable with JSON.... Read More

How to Create a Task(or Cron Job) in Tomcat Example

To do this you can take advantage of schedulers such us quartz, but it you don't need anything as powerful as that you can create a new thread that starts when the server starts.... Read More