Latest from the blog

How to Override or Add a new protocol to the java.net.URL and changing FTP

If you use java.net.URL to load url and in some cases you want to add a new protocol or if you want to use another API to handle certain protocols it is possible to do it. In this example I'm overriding the FTP protocol so that it is handled by the org.apache.commons.net.ftp.FTPClient API... Read More

Example of Jquery code Example with Autocomplete code Highlighting

With this code snippet you can create an autocomplete Jquery box that highlights the code when there is at least a match among your entries.... Read More

Basic Example of Persistence with Java

Sometimes we may need to save our objects out of the RAM scope. The act of storing  objects outside the RAM is called persistence.... Read More

CommunicationsException with Java and MYSQL

I wrote this post to show I solve this exception. There are a number of reasons why this error may come up and there is not a universal solution for all cases. Perhaps your are not using the same technology as me but you can find some clues here that may help you find a solution.... Read More

Top 5 linux console applications for me

Sometimes working with console applications can be a pain in neck, luckily there are a few console applications that can really come handy.... Read More

Mini Java Socket Server example

This Example shows how to create a small HTTP server using Java Sockets. It can be useful to communicate with Cron jobs, to test whether Java is working, check out HTTP communications with a specific port, see all the headers sent by the web browser, or to verify that the post data is being sent to a specific port.... Read More

Tomcat How to Set a folder in our app outside the WAR deployment

You may need to do this for a number of reasons.... Read More

Tomcat disable session persistence

When Tomcat is shutdown or restarted will always try to save all the serialized session objects to a file. If we are trying to develop an application and we are testing the session or if we want to disable this feature we have to perform a change in the context.xml file... Read More