Lee Burch, one of our extremely talented architects, gave me a writeup on “Using WPS style Resource Environment Providers with Spring” He wanted to know where to post something like this and of course, my first thought is this blog. His justification for posting this is that while it’s a common use case in the WebSphere Portal world, many developers get it wrong. So thanks to Lee for the post.
Generally a problem most projects face is how to handle configuration information that varies between environments. Many times you can handle this by using one of WAS built in resources such as a SMTP server or a JDBC connection pool. However many times the configuration data won’t fit one of these existing WAS resource types, such as an e-mail address, a server name or a URL. To solve this a lot of approaches are available some use build tools such as Maven to build different EAR files, others use properties files located outside of the EAR. Unfortunately both of these solutions have their issues and can be difficult to manage.
To solve this problem WAS provides and WPS leverages the resource environment providers. These allow you to specify your settings as a part of the WAS console at the Cell, Node or Server level. This provides an easy way to maintain values across many servers while also doing away with the need to have special EARs built for each environment.
Unfortunately it requires deployment to the App Server lib/ext directory, something that is not always so easily done particularly in a shared enterprise environment.
However WPS uses Resource Environment Providers but does so differently than the above article specifies, it uses the “Custom Properties” of the resource environment provider and requires no deployment to the App Server, an ideal solution.
While it is possible to bind your code directly to the fetches to the Resource Environment Provider I find a more flexible and much more modern way of addressing the problem is to use Spring and its facility for PropertyPlaceholderConfigurer.
This allows for a Spring config something like this
This will lookup the custom property “administratorsEmailAddress” under the Resource Environment Provider named “NameOfMyResourceEnvironmentProvider” and do the substitution before initializing the context. Of course it also follows the standard WAS rules allowing for the Node to trump the Cell setting and the Server to trump the Node and Cell settings allowing a lot of flexibility in how the property gets propagated to your configuration.
The code for the WebSphereResourceEnvironmentProviderPlaceHolderConfigurer follows
Social Business Patterns help enterprises engage stakeholders
Wed, Dec 18th 2013 4:10p Brendon Jones IBM has an interesting white paper out discussing Social Business Patterns. Before I highlight the white paper, I would like to briefly explain what a pattern is, and why they are useful. The Cambridge Dictionary defines a pattern as: “a particular way in which something usually happens or is done”, and so a “business pattern” may be defined as a common approach to addressing a recurring business problem.
IBM’s Social Business Patterns aim to represent a “repe [read] Keywords: collaboration
CMO and CIO Need to Work Together
Mon, Dec 9th 2013 11:12a Mark Polly We’ve been reading and commenting about CMOs and CIOs lately (for example, see Is There a Blurring Line Between CIO and CMO?). With the maturing of Customer Experience Platforms (CXP or CXM) and Marketing Automation, the interplay between marketing and technology is rapidly growing.
Virginia Backaitis published today at CMSWire an article titled Hey CMO! Hey CIO! Work Together or Lose Everything. She argues, as we have done here at Perficient, that CMOs and CIOs need to be in lockstep w [read] Keywords:
What is your response to Digital Disruptors?
Fri, Dec 6th 2013 8:11p Brendon Jones James McQuivey, an analyst at Forrester, discusses the concept of Digital Disruption, and has a book out by the same name. It’s also available in the Kindle Lending Library. I’ve not read it yet, but will post a review in the next few weeks. However the gist of the concept is that the traditional corporate view was that only a few very large companies had the budgets to bring a few disruptive offerings to market. Since around 2010, and the dawn of the “Age of the Customer̶ [read] Keywords: exchange
Turns Out Companies Are Investing in Social Media
Wed, Dec 4th 2013 12:14p Michael Porter Google’s Wildfire commissioned a study on the How Brands Staff and Budget With Social. It’s far too long for me to replicate but here’s a couple nuggets:
There’s a lesson here and it’s that social media has become a defacto part of corporate life and interactions with customers. See the whole info graphic here. [read] Keywords: enterprise
Dreamforce: Move Marketing from a Cost Center to a Profit Center
Fri, Nov 22nd 2013 8:15a Mark Polly Well Dreamforce 13 was a whirlwind and I’m glad to be home. The final session I attended was delivered by Sungard’s VP of Marketing, Christine Nurnberger. While the title of the session said something about Marketing Metrics and ROI, it really was about how Ms Nurnberger transformed Sungard’s marketing efforts over the last 18 months. While I was hoping to learn what metrics she used and how she calculated their ROI, I took away more important information than that.
My [read] Keywords: network
Dreamforce: Developing for Google Glass
Thu, Nov 21st 2013 12:15p Michael Porter Maximiliano Firtman, author of the O’Reilly book, “jQuery Mobile” presented on some basics around development. It was less a look at the development tools and more a look at the options for development and the paradigm you take into account. He’s a a “Google Explorer” and has a chance to muck around with the Glasses for a bit.
It’s not the Get Smart phone shoe as a phone. It’s about a variety of tools like Google Glass, Sony [read] Keywords: apple
Dreamforce: ExactTarget Marketing Cloud Social Roadmap
Wed, Nov 20th 2013 6:18p Mark Polly Patrick Stokes, VP for Product Management at Salesforce provided highlights of the social roadmap for their Marketing Cloud. The following are the four areas that are the focus of the roadmap:
The social tools in the Marketing Cloud include Radian 6, Buddy Media and Social.com. These tools are integrated with ExactTarget to provide an overall platform for marketing. As an example, they are tying Social Advertising available through Social.com into the Jour [read] Keywords: facebook