Posts

Showing posts from April, 2010

Flex Quick Overview

What am I targeting here? 1) What is flex and how to start Flex development? 2) Interesting facts about Flex. 3) Few Resources. What is flex and how to start Flex development? You might have heard about Flex these days, so what is it? And why should one show interest towards it? Long story in short: “Flex was built for making rich client side application behavior. It wasn't built for making web pages, banner ads, or server side logic it was built for creating client-side applications that runs over the Internet talking to remote servers. Flex is being used to build rich applications” Where should I start? • First you need to have Flex SDK, you can download it from http://www.adobe.com/devnet/flex/?view=downloads . Flex SDK is free !!!!! • You need to have and IDE for developing Flex applications; we have two options for this (a) Flex Builder and (b) Eclipse plug-in for Flex Builder. These tools are not free but the trial version can be downloaded from h...

Multiple log files using log4j appender

Log4j is no doubt is "the best" library for logging purpose and it is used by a lot of developers. It provides many appenders ranging from plain text files to HTML appenders to SMTP appender etc... and also, it allows us to write our own appender. In this post I'll discuss how you can create a dedicated appender which can be used to generate the separate/second log file independent of root logger. 1) First thing you need to do is, define a custom logger configuration which we'll be using later (promise, I'll show how?). Below is the sample configuration: (this should go to your log4j.properties file) log4j.logger. myLogger =DEBUG, mylogger log4j.appender. mylogger =org.apache.log4j.RollingFileAppender log4j.appender.mylogger.maxFileSize=5000KB log4j.appender.mylogger.layout=org.apache.log4j.PatternLayout log4j.appender.mylogger.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %c : %m%n log4j.appender.mylogger.File=c:/seconf_file.log Note the first line, we have gi...

The "Maven" way of doing Flex

From last few weeks I was evaluating the power of flex as front end for an enterprise level application and so far it looks very promising. Initially when I started working on Flex I noted that it was missing a very important things and that was capability to share projects/modules when bigger team are working on a single project. I am from Java background and have worked with couple of good frameworks but Maven was common for all of them. For those who have not heard of Maven should explore it. It is nice tool for managing releases of a project and sharing the development versions with other team members on a big project. Already Maven has proved its capabilities for many of us. Ok, let's come back to the new yummy topic (Flex). For flex development and release management there are very few tools. If you want to do Flex in Maven way then it is worth investing sometime in Flexmojos. Flexmojos is basically another maven plugin which allows us to configure a Flex project, its depende...