Author Archives: Singaram Subramanian
The point of having style guidelines is to have a common vocabulary of coding so people can concentrate on what is said rather than on how it’s said. If code added to a file looks drastically different from the existing code around it, it throws readers out of their rhythm when they go to read it. […]
Let’s assume that we want to make a SOAP call to a service at http://localhost:8080/samplewebservices/echoserviceinterface, and it requires that we add an API / Access token as a HTTP header, we can do it this way: Assumptions Endpoint: http://localhost:8080/samplewebservices/echoserviceinterface Service Interface: singz.ws.test.interface.EchoService ACCESS_TOKEN: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 (HTTP Header) Spring Application Context Configuration Custom Interceptor to add HTTP […]
SOAP uses XML to marshal data that is transported to a software application. Since SOAP’s introduction, three SOAP encoding styles have become popular and are reliably implemented across software vendors and technology providers: SOAP Remote Procedure Call (RPC) encoding, also known as Section 5 encoding, which is defined by the SOAP 1.1 specification SOAP Remote Procedure Call Literal […]
Related articles Creating OSGi projects using Eclipse IDE and Maven (singztechmusings.wordpress.com) Working with OSGi and Maven in Eclipse IDE (singztechmusings.wordpress.com) Java download file from URL with unknown filename (stackoverflow.com) OSGi adoption by Large Scale Java-based Enterprise Software Platforms – LinkedIn Case Study (singztechmusings.wordpress.com) How to create/generate OSGi bundles from existing third-party jars? (singztechmusings.wordpress.com)
NoSQL at Twitter: Why / How they use Scribe, Hadoop/Pig, HBase, Cassandra, and FlockDB for data analytics?
Here’s some interesting NoSQL stuff guys. It’s a presentation about how Twitter uses NoSQL for analytics by Kevin Weil (@kevinweil), Analytics Lead, Twitter. About the presentation Collecting data (Scribe) Storing and Analyzing data (Hadoop) Rapid Learning over Big Data (Pig) .. and Cassandra, HBase, FlockDB. For those who are not aware of the said technologies… […]
If you get to work with OSGi, you often have to generate OSGi bundles. Any third party jar can’t be included straightaway in your application – you need to create an OSGi bundle of the jar you want to include. Quoting from http://blog.springsource.org/2008/02/18/creating-osgi-bundles/, a bundle is a JAR file that: Contains […] resources Contains a […]
Using .NET v2.0 generated WSDLs with JAX-WS: How to resolve “A class/interface with the same name “XXXX” is already in use. Use a class customization to resolve this conflict”?
I’ve noticed an issue in WSDLs generated by .NET 2.0 apps: some of the element(s) and their corresponding complextype definitions have same name. If you happen to generate JAX-WS portable artifacts (see below) from one such WSDL for your project (during technology migration etc. and you don’t want the consumers who use this WSDL to […]
This Week in Spring, September 20th, 2011 Got another mention in this post by Josh Long in SpringSource News & Announcements Singaram Subramanian has written up a blog on how he was tasked with solving an email integration problem and decided to use Spring Integration. The blog details the code and approach and even talks […]
Linux/Unix: How to manipulate or change the last modified/accessed time of a file using touch command?
Assume there’s a file @ /home/user/testmsg.txt If you want to change the file timestamp to 09/20/2011 08:30 using touch command, here’s how you can do it: From Wikipedia, touch is a standard Unix program used to change a file‘s access and modification timestamps. It is also used to create a new empty file. Related articles […]