Tomcat Log4j Dynamic Logging

Tomcat Log4j Dynamic Logging


Tomcat Log4j Dynamic Logging Using log4j with DailyRollingFileAppender in Tomcat? Well, if you run Tomcat as a windows service, you might have noticed that your logs do not rotate daily.  The logs rotate only when the server is restarted. Although it works perfectly for a server on linux machine. But, tomcat when run as a windows service fail to rotate logs. It seems to be a common problem. I googled a lot for a solution, but didn’t find a solution, ...
Admiring and Understanding LinkedBlockingQueue take Method

Admiring and Understanding LinkedBlockingQueue take Method


In order to admire the code of the implementation of the BlockingQueue, lets have a look at the LinkedBlockingQueue take method. Lets go through the code line by line, understanding the role of each line of code. Line 4: final AtomicInteger count = this. count; In case you already know, AtomicInteger is used for atomic modifications to integers. It offers operations like increment and decrement in a thread safe way. Line 5: final ReentrantLock takeLock = this. takeLock; This lock is used as a monitor for ...
Maven, Jenkins, Parameterized Builds - Basic Facts

Maven, Jenkins, Parameterized Builds – Basic Facts


Using maven and still struggling with the build process? Or wish it was better? What to expect out of the article? Building all the modules of a project at once Parameterized builds with jenkins Making your life easy Stating some facts about maven which you might already know. Maven is a very smart build tool ‘Head of the Family’ POM To make life easier with build processes with maven. Follow what I call ‘Head of the Family’ POM. This pom ...
Special-Names in COBOL :: A Fancy thing in Vintage Language ?

Special-Names in COBOL :: A Fancy thing in Vintage Language ?


It bring you out of the dull zone when you come across things like Special-Names  in cobol, otherwise English like programming language which may bore some of us. Of course we are talking about COBOL here. Let’s create a scenario first. Let’s assume in some requirement we need to validate an Email Address i.e. we need to make sure that the Email Address contains only the allowed characters like a-z, Numeric 0-9, Special Symbols like “@”, “_” and “.” etc. ...

Static & Dynamic SQL in COBOL :: A Walk-Through


COBOL allows SQL queries to be executed both Statically and dynamically. However it’s often confusing that when Static SQL is to be used and when  Dynamic SQL. This will be quite clear once you know the exact difference between the two. Difference Between Static & Dynamic SQL: Static SQL SQL is static when we know the SQL Statements in advance i.e. we know what query to perform on which table under what conditions. For e.g. consider a table name “STUDENT” which ...