- Green Beans: Getting Started with Enterprise Messaging and Spring | SpringSource Team Blog – In this post, we've explored the two options available to developers that want to incorporate enterprise messaging in their application today with the Spring framework. We introduced both the Java Message Service (JMS) API and the Advanced Message Queueing Protocol (AMQP) for dealing with enterprise messages
- Elastic Beanstalk solves the real issue of cloud platforms: Resource scaling | Cloud Computing – InfoWorld – Enterprises love free, and most companies will appreciate the idea of cloud providers giving away the development services at no cost, charging for only the resources used, and presenting a big bill only when the application goes into production.
- The Future Of Java | Forrester Blogs – I disagree with Forrester's research note on the Future of Java. They make some good points about how Java's future will be constrained by the bounds of Oracle's business model.
- Apache HttpClient 4.1 (GA) released – TheServerSide.com – The Apache HttpComponents project is pleased to announce 4.1 release of Apache HttpClient. HttpClient 4.1 builds upon the stable foundation laid by HttpClient 4.0 and adds several functional improvements and popular features
- Hg Init: a Mercurial tutorial by Joel Spolsky – Mercurial is a modern, open source, distributed version control system, and a compelling upgrade from older systems like Subversion. In this user-friendly, six-part tutorial, Joel Spolsky teaches you the key concepts.
- TIBCO’s tibbr May Be the Enterprise 2.0 Solution You’ve Been Waiting For – It can aggregate social media, business intelligence, ERP and more into a single interface. It works with major enterprise software out of the box. In short, this is an enterprise-ready product from a serious vendor that's ready a universal inbox
- Vaadin 6.5.0 Released – Blog – vaadin.com – The next stable version of Vaadin Framework – code named "St. Petersburg" is released today at the first Russian Vaadin Meetup – in St. Petersburg.
- Spring && NOSQL: Introducing the new Spring Data project – a session at Øredev 2010 – In this talk you'll learn about the new Spring Data project — the goal of which is to add AMAZING support for NOSQL databases to the most popular Java middleware on the planet
- Visualising Garbage Collection in the JVM | RedStack – Recently, I have been working with a number of customers on JVM tuning exercises. It seems that there is not widespread knowledge amongst developers and administrators about how garbage collection works, and how the JVM uses memory.
- Keep My Opt-Outs – Chrome Web Store – Keep My Opt-Outs is an extension for users who aren’t comfortable with personalization of the ads they see on the web. It’s a one-step, persistent opt-out of personalized advertising and related data tracking performed by companies adopting the industry privacy standards for online advertising
- SaveTheDevelopers.org :: Making The Web A Better Place – Say no to IE 6! Our current campaign focuses on assisting users in upgrading their Internet Explorer 6 web browser. This campaign will result in former IE 6 users having a more enjoyable experience on the web while (hopefully) creating a less stressful an
- Save the Developers! Stop Using Internet Explorer 6 – There is a scourge on the Web. It is called Internet Explorer 6. Even though IE7 has been around for more than two years, IE6 still represents 31% of all browsers out there (versus only 22 % for IE7 and 36.5 % for Firefox).
- Amazon’s cloud computing service fuels startup’s launch | InfoWorld | News | 2008-03-25 | By Jon Brodkin, Network World – A startup called Elastra is launching Tuesday with software that helps customers build database management systems and other applications that can be deployed on top of Amazon's EC2 cloud computing service.
- Gartner Says Worldwide PC Shipments to Grow 11 Percent in 2008, Market Could Fall Victim to Weaker Global Economy – Worldwide PC shipments are forecast to total 293 million units in 2008, up 10.9 percent from 2007 shipments of 264 million units, according to Gartner, Inc. However, analysts warned that growth could fall into single digits if global economic headwinds st
- Microsoft partners with open source Jaspersoft, Sourcesense | Open Source | ZDNet.com – Microsoft and Jaspersoft are working together to ensure that Jasper’s business intelligence software suite runs well on the latest editions of Windows and SQL Server.
- The ’80s Video That Pops Up, Online and Off – New York Times – For rickrolling, the duck was replaced with the 20-year-old Astley video, and in the last year it has become a hugely successful “meme,” the Internet’s word for an idea repeated across the Web. The video from yougotrickrolled.com has been viewed mor
- Roundtable: The state of open source | InfoWorld | News | March 24, 2008 | By Jason Snyder – Any endeavor rooted in community is bound to spark passionate debate. After all, without contention, how else to determine the best way forward? Since its emergence, open source has embodied this spirit. Part defiant, part self-reliant, and often outspoke
- ETL for Free-Form Data – SQL Server Central – Would you like to learn a handy little process for extracting, transforming and loading data fields from a free-form source like a web page or word processing document into something structured like a staging table?
- Asynchronous HTTP and Comet architectures – Java World – In this article, Gregor Roth takes a wider view of asynchronous HTTP, explaining its role in developing high-performance HTTP proxies and non-blocking HTTP clients, as well as the long-lived HTTP connections associated with Comet.
- Ext.ux.grid.RowActions – RowActions Plugin for Ext 2.x – Beta1 by Saki – RowActions plugin allows you to add icons in a grid that you want to bind actions to: delete row, edit row, whatever. It displays an icon and fires two events: beforeaction (return false to cancel) and action (here you put the action you want to execute)
- Coding Horror: Paul Graham’s Participatory Narcissism – Loved this comment 🙂 – I hadn't realized how unhappy I was until I watched Office Space and my wife said, "That seems like your job". I soon switched jobs
XML creation, parsing and processing with Java has gotten so much easier with tools like XMLBeans, XStream and many other such tools. I personally love XMLBeans and XStream and I try to use them for all of my XML processing needs. While they both consume XML, they solve different problems. XMLBeans allows you to process XML by binding it to Java types using XML schema that has been compiled to generate Java types that represent schema types. XStream on the other hand allows you to serialize objects to XML and back again using special reflective secret sauce.
I’ve been using these tools for many years now and so you tend to forget just how useful and powerful they are and how productive they make you. Case in point – A friend of mine came to me for help. He was building an application that would allow him to resale items from Amazon on his site and he wanted to use the Amazon eCommerce Web Services to search for products programmatically and update a local database that housed his content. Having played with Amazon E-Commerce Service (ECS) before, I offered to write up a simple application that would make the Web Services call, process the results and present them back to you.
Amazon’s ECS is an API that allows you to access Amazon data and functionality through a Web site or Web-enabled application. ECS follows the standard Web services model: users of the service request data through XML over HTTP (REST) or SOAP and data is returned by the service as an XML-formatted stream of text. In addition to the WSDL, ECS also provides XML schemas for validating the XML output of REST requests. So I decide to use XMLBeans to create my type system using the XML Schema provided by Amazon. XMLBeans provides you with a utility (scomp) to compile your schema into Java XMLBeans classes and metadata. To generate the Java code, use the following command:
scomp –jar amznws.jar AWSECommerceService.xsd
This generates a jar file named amznws.jar, which will contain all of the code needed to bind an XML instance to the Java types representing your schema. In my application, I use HttpClient to make my REST request and then use the XMLBeans generated jar file to process the result. Here’s a snippet of code from my sample class:
As you can tell, HttpClient makes the REST call a snap and XMLBeans makes processing the results easy as well. In total, I spent 3-4 hours getting the application working and a lot of the time was spent figuring out the data set returned from Amazon and trying to come up with a meaningful example. Here is a zip file with the IDEA project that has all the stuff needed to make this work including a simple JSP and a JUnit test class.
Links of Interest: