On Java Development

All things related to Java development, from the perspective of a caveman.

Archive for the ‘Tomcat’ Category

JPA Entity Manager Factory, Transaction Manager, Datasource and JNDI Configuration

without comments

Introduction

This post describes the contents of the file “jpaDataSourceContext” found in baseproject. This file contains datasource and JNDI definitions using Spring’s JPA support for Entity Manager Factory, Transaction Manager and Hibernate Adapters. The file is read during the initial phase of the application’s startup processing which occurs when the server is started. This means all data source/JNDI references, used or not, must be present and valid.
Read the rest of this entry »

Written by admin

February 19th, 2015 at 10:52 am

Using ${catalina.home}

without comments

Introduction

This post shows how ${catalina.home}, which is set by the application server, can be leveraged to prevent hard-coding of paths. In the event that the application is moved to another server, which is the case when servers are upgraded, the application does not have to be modified and moved as-is.
Read the rest of this entry »

Written by admin

April 1st, 2014 at 12:20 pm

Web App Deploy Check List

without comments

Introduction

This short post presents the items to check before creating that .war-file and deploying to the server. If your project is based upon baseproject or is a Maven-based project and using JSF then these steps will ensure surprises are kept to a minimum.
Read the rest of this entry »

Written by admin

January 30th, 2014 at 2:56 pm

Anatomy of a Web Application

without comments

Introduction

This post is for the reader who is curious about the architecture, components and technologies that make up a web application.
Read the rest of this entry »

Startup Servlet

without comments

Introduction

This post is about using a servlet to perform the initialization of a web application. In an RPG program this would be performed using *INZSR but for web applications a servlet is used. This approach allows tasks to be performed only when the server starts. Since the servlet is part of the application the tasks performed are tailored for it alone.
Read the rest of this entry »

Written by admin

January 18th, 2014 at 6:47 pm

Configuring Tomcat

without comments

Introduction

This post talks about a few configuration parameters that are added to Tomcat’s JVM. Technically known as arguments, they give the ability to connect to test or production databases and direct Log4j’s log files to the proper directory. Also, when Tomcat is running on the iSeries machine, there is another configuration parameter (“java.awt.headless”) that must be added to the JVM argument list.
Read the rest of this entry »

Written by admin

January 7th, 2014 at 7:23 pm

Posted in iSeries,Tomcat

Tagged with ,