Calling a static method from EL

This post shows how to call any static method from EL. You can also pass arguments to the method.

How to pass parameters in EL methods

How to pass multiple parameters in an EL function, in 3 simple steps.

How to automatically recover Tomcat from crashes

A script which automatically detects that tomcat has crashed and restarts it.

Getting started with Nexus Maven Repo Manager

This tutorial outlines steps required to install Nexus (Maven Repository Manager) under Tomcat, or another webapp container. It shows you practical configuration and includes code snippets that go in your pom.xml and settings.xml in order to read and publish artifacts to Nexus server.

2 ways to convert Java Map to String

This article shows 2 ways to convert Java Map to String. Approach 1: simple, lightweight – produces query string like output, but restrictive. Approach 2: uses Java XML bean serialization, more robust but produces overly verbose output. Approach 1: Map to query string format Approach 1 converts a map to a query-string like output. Here’s [...]

How to configure multiple page.xml files in Seam 2.2

Seam lets you specify navigation rules in the pages.xml file which can become very large for apps with many pages and transitions. Seam allows you to break this file into multiple small files. This allows you to easily manage large applications by creating multiple pages.xml files, typically one per page. This article describes how to create multiple pages.xml files in Seam 2.2.

Spring classpath scan breaks when migrating from JBoss4 to JBoss5

Spring 2.5 classpath scan does not work on JBoss5 due to internal architecture changes in JBoss5. You may face this issue when migrating from JBoss4 to JBoss5. This article walks you through a simple fix, with code snippets.

EJB3 JPA error when migrating from JBoss version 4 to 5

When I tried migrating my JBoss 4.2 application which uses Spring to manage transactions, to JBoss 5.1, I got the following error message.

Specification violation [EJB3 JPA 6.2.1.2] – You have not defined a jta-data-source for a JTA enabled persistence context

This is a known issue and there are two known workarounds for this problem. See article for details.

How to rotate Tomcat catalina.out

If catalina.out becomes 2GB in size, tomcat crashes and fails to start without any error message. To avoid this scenario you should rotate the catalina.out frequently. This article describes how to setup auto rotation of catalina.out on a linux/unix machine.

Cache Java webapps with Squid Reverse Proxy

This article shows you step by step how to cache your entire tomcat web application using Squid reverse Proxy without writing any java code. Cache your entire website as static HTML files stored in memory or disk. This technique is useful to when dynamically generated pages in Java are time and CPU intensive. Ideal scenario is when there are high number of reads and few writes. Caution: do not use this approach to cache secure pages. Read article for full details.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes