Creating a REST Service Client in WebSphere Commerce v7.0 with Apache Wink

Creating a REST Service Client in WebSphere Commerce v7.0 with Apache Wink

The WebSphere Commerce Information Center has plenty of documentation on how to create a inbound REST service; however, when trying to create an outbound REST service client, you are left to own research and devices as to an implementation strategy. Knowing that WebSphere Commerce v7.0 includes the Apache Wink framework; we can leverage this to create a REST service client that is also based upon Apache Wink, and leverages a framework pattern rather than just pieces of code put together to execute HTTP calls and retrieve the responses.

[ Read More ]

Split Spring Application Context Files by Functionality for Easy Maintenance

Split Spring Application Context Files by Functionality for Easy Maintenance

I work with the Spring framework on a daily basis, and the one thing that always bothers me is when projects and people fail to adequately split and maintain their application context files. I’ve work with projects that put all of their Spring beans into the same file with no actual format or structure. That causes a significant nightmare when attempting to maintain, update, or add functionality on top of those files.

[ Read More ]

Refresh Resource Bundles in WebSphere Commerce

Refresh Resource Bundles in WebSphere Commerce

For those that use WebSphere Commerce, especially if you’re taking advantage of internationalization and localization, you’ve used many a resource bundles. You also understand how challenging it can be when you have to consistently modify your properties, only to have to restart your application server in order to view the updates. Here is a solution that will allow you to change your property files, and refresh them automatically without restarting your application server.

[ Read More ]

GWT EventHandler Removal

GWT EventHandler Removal

In the application I am working on, I’m leveraging the SimpleEventBus to register my EventHandler while the page is active. Once the page went inactive due to being added to a history widget, or was removed from the DOM, I wanted to deregister the EventHandler so that it wasn’t active and responding to fired events unnecessarily. The SimpleEventBus featured an addHandler method that allowed me to register the EventHandler, but it does not have a removeHandler method that allows for the removal of the EventHandler that was registered.

[ Read More ]