Logback is not writing specific log file Solution Logback Configuration: <property name=”DEV_HOME” value=”/root/apps/logs” /> <appender name=”FILE-AUDIT” class=”ch.qos.logback.core.rolling.RollingFileAppender”> <file>${DEV_HOME}/myapp.log</file> <rollingPolicy class=”ch.qos.logback.core.rolling.TimeBasedRollingPolicy”> <!– rollover daily –> <fileNamePattern>${DEV_HOME}/archived/myapp.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern> <timeBasedFileNamingAndTriggeringPolicy class=”ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP”> <!– or whenever the file size reaches the max –> <maxFileSize>${rolling.file.max.size}</maxFileSize> </timeBasedFileNamingAndTriggeringPolicy> <maxHistory>${rolling.file.max.history}</maxHistory> </rollingPolicy> <encoder> <pattern>${rolling.file.encoder.pattern}</pattern> </encoder> </appender> Issue is related to conflict between log4j and Logback, whenContinue reading “Logback is not writing specific log file Solution”
Category Archives: Emerging Technologies
Crawl and Index….. Nutch / elasticSearch – Partners in the making
Hi In the internet era, there is an old tech saying – “Content is King”  (inspired by old Jungle saying from Phantom.. 🙂 ) One of the common challenges in content management system is to extract the latest information.  In the WWW world, it is commonly known as crawling.  The king of the crawler worldContinue reading “Crawl and Index….. Nutch / elasticSearch – Partners in the making”
Java Code Quality
Hi Most tech leads will readily admit that in large development projects, a major chunk of their effort goes towards ensuring good code quality. Â With the increase in number of developers, there is greater need for standardization the code which is enforced in the form of adherence to certain code quality. Â As a programming language,Continue reading “Java Code Quality”
Apache Common Pool – Object pool example
Advantage of using object pool is to improve performance of the application by saving time to create new object from other source for the same purpose. Object pool creates once and reuse for other subsequent operations on the same object. You can customize other configuration settings. Please visit this URL for more info: http://commons.apache.org/proper/commons-pool/api-1.6/index.html Step:1 Add this MavenContinue reading “Apache Common Pool – Object pool example”
2014 in review
The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog. Here’s an excerpt: A New York City subway train holds 1,200 people. This blog was viewed about 6,100 times in 2014. If it were a NYC subway train, it would take about 5 trips to carry that many people. Click here toContinue reading “2014 in review”
Cassandra DataStax – Developer Guide with Spring Data Cassandra
We will discus Cassandra implementation : Important Points: http://www.datastax.com/documentation/cassandra/2.0/cassandra/gettingStartedCassandraIntro.html Recommended stable production version – DataStax Enterprise 4.5. (When this article as written) Compound Partition  and Clustered keys- http://www.datastax.com/documentation/cql/3.0/cql/ddl/ddl_compound_keys_c.html Spring-Data-Cassandra API and reference docs- http://projects.spring.io/spring-data-cassandra/ (Current release- 1.1.0.RELEASE) Download and Installation:  1. Tarball Installation DataStax DB You need to register yourself with DataStax for download. DataStax Enterprise – http://www.datastax.com/download#dl-enterprise.Continue reading “Cassandra DataStax – Developer Guide with Spring Data Cassandra”
MongoDB + Java + Maven Sample Application
Prerequisite: Download and Install MongoDB (http://docs.mongodb.org/manual/installation/) on your local machine and run two instances in two separate terminal/command prompt. This sample app is developed on Mac OS/Linux env. 1. Start MongoDB server using : ./mongod 2. Start MongoDB client : ./mongo Add MongoDB Jar dependency in your project: Sample MONGODB CRUD code:
Designing Modern Enterprise Search Solution –Part 1
This article would be a two part series. Part 1 – 5 requirements that will force you to adopt an enterprise search engine. Part 2– Addressing Enterprise search requirements with open source search platforms.  Part 1 – 5 requirements that will force you to adopt an enterprise search engine. Search over diverse content sources- An enterpriseContinue reading “Designing Modern Enterprise Search Solution –Part 1”
Implement Google Signer to implement Google Map Search
Main class – How to call this above method:
Git vs SVN – Advantages of GIT
Integration– Git has very flexible integration with Stash(GIt UI), Bamboo (Build tool) , JIRA (Agile). We can associate feature (a separate branch of code for a given story) branch with any JIRA story ( part of a sprint) by creating branch from Stash. So that all code changes/commits can be easily audit/trackable. Bamboo create buildContinue reading “Git vs SVN – Advantages of GIT”