Archive for category Java

Spring Batch – My latest fascination

Just before i left Accenture, i remembered i was surfing all the internal sites for java resources and there were lots of them. Amongst them, I found Spring Batch. At that time, i had just rolled off from an batch integration project and i was very interested in mass processing and automation. Before that, my knowledge of mass processing was simply bash scripts and i enjoyed doing processing of multiple csv files to produce a final output file.

Before i start to go off topic, the reason why Accenture had a relationship with Spring Batch is due to the fact that they had a vast experience in batch implementation for various industries. Combined with the SpringSource team, i feel Spring Batch has the potential to be a defacto for batch implementation for as many reasons why Spring is a highly recommended application framework.

Spring Batch is a lightweight, comprehensive batch framework designed to enable the development of robust batch applications vital for the daily operations of enterprise systems. Spring Batch builds upon the productivity, POJO-based development approach, and general ease of use capabilities people have come to know from the Spring Framework, while making it easy for developers to access and leverage more advance enterprise services when necessary.

Spring Batch (Introduction)

An advantage it will definitely bring to enterprise is reusability. That is also why we love Spring. You code once and reuse it however you want by using Spring’s IoC. With reusability, the eventual advantage is a shorter build lifespan. You probably can do more with less. I’ll blog how to go about using Spring Batch next. In the meantime, go visit the Spring Batch home page here.

Stay tuned for more..

Bookmark and Share

Tags: , , , , ,

“Flex is strong because of Java”, i believe so too

Today, there is only one API for creating production grade front end for RIA talking to Java. It’s called Adobe Flex. In 2010, JavaFX may become another alternative. But meanwhile, please stop bashing Java. Do not forget that many of these new popular programming languages exist because there is a J2EE application they need to connect to. Do not forget that Java puts bread on the tables of many people (including mine) around the world. Do not spit in the well you drink from.

Yakov Fain from Farata Systems » Flex is strong because of Java.

I can feel so much from what Yakov has written. I totally agree with him. Coming from an enterprise world, it is really where the big money pot is. No offense to the other languages, you can laugh all you want about Java but you are missing out on the potential Java can give to a Flex application. I am still a little skeptical about JavaFX. Let’s see what Sun can do with JavaFX.

Bookmark and Share

Tags: , , ,

BlazeDS on Apache Fronting Tomcat – mod_jk

I am observing pretty bad performance when my BlazeDS services are configured with Apache and Tomcat on mod_jk. Not too sure whether it is because i used Cairngorm as my main application framework. Setting requestTimeouts on my remoteObjects didn’t help. It was until i tried hitting my BlazeDS endpoint directly with my browser that i realised it was Apache that had refused/restricted requests to my Tomcat.

Error message from Apache

Error message from Apache

What i see on the Apache Error log

Tue Jul 22 18:51:59 2008] [error] [client <ip address>] client denied by server configuration: amfsecure, referer: <url to my flex app>

but i do not see any request with the same timestamp on the Tomcat logs.

Performing tuning is the only way to go. However, my sys admin did hardened and tuned the mod_jk connector settings in the server.xml files. Still waiting for him to try to worker.properties file. Sys Administration is not my kind of work. =p

My guess is that unless you are expecting very low traffic, you should not use the mod_jk setup. I hope my sys admin ain’t gonna get hell from me to ask for a public-facing Tomcat. I sent a message onto the BlazeDS jira below to see if there is any advice on my situation.

References:

Bookmark and Share

Tags: , , , , , , , ,

Merapi – AIR-to-Java Bridge

Merapi is a bridge between applications written in Java and those running in and created for Adobe AIR™ (Adobe Integrated Runtime™).

Merapi has been designed to run on a user’s machine, along with an Adobe AIR™application and providea direct bridge between the Adobe AIR™ framework and Java, exposing the power and overall calabilities of the user’s operating system, including 3rd party hardware devices.

Introduction to Merapi

Got this from insideRIA.com and the moment i saw Java and AIr, it got me excited. First thing that comes to mind is “No more jfc/swing interfaces”. But visiting their sites, i see more potential in this. Adam Flater has created a demo which shows the interaction between the mac accelerometer and AIR. Check out the demos here!

I signed up for the alpha and hope to play with it asap.

Bookmark and Share

Tags: , , , , , , ,

Switching to Flex From Java, not exactly a switch?

Time to talk about my experience on switching to Flex. It has been a month that i have been working with Flex. Being a Java developer, it has been really smooth. This article pretty much sums it all up.

Something about Flex that is worth mentioning is the amount of essential examples out there. Whenever i see examples on a website or blog, they are good examples.

Sometimes, i make the mistake of mixing syntax when i switch over to work on some Java coding.

i:int = 0 instead of int i = 0

Bookmark and Share