Told you, we love sharing!
Luckily, I got some time outside my usual obligations in the project, to learn something new and I devoted the time to getting up and running with cassandra . Getting starting up with it was a bit bumpy, as the case almost always is when you start with something entirely new. Lets get Started.. 1) First step of course is to get the...
Hi All, I was facing a lot of problems with creating pdf reports using jasper plugin 1.1.6 in grails, Though I had earlier worked with 0.9.5 and 0.9.7 versions of the plugin with a lot of ease but some how 1.1.6 version of plugin was not generating reports it always ended up throwing MalformedByteSequenceException: Invalid byte 1 of...
In my recent Project, I wanted to create a domain class in which records could only be added and read and no update was to be allowed on any of the records and I found a very nice way of doing it. Adding [java] static mapping = { cache usage: 'read-only' version false } [/java] in the domain class did the trick for me...
In a use case, I needed to import excel spreadsheet and save the data in the database, that was when I came across grails' excel import plugin. All I had to do was install the plugin and start using it. No Fuss. I created a class in my src/groovy folder [groovy] import org.grails.plugins.excelimport.* class StudentImportXLS extends...
Hi Guys, In one of my projects, While working with jasper reports, one of the requirement I faced was of passing optional parameter to the sql query in jasper report. For eg. I had to write a query to find all new customers which were added between two given dates and if an optional status value of the customer is passed the report...
In one of my projects, I was working on rest calls, and one of the requirement was such that I had to pass the XML to service and then parse it and bind the relevant details to an instance of a domain object. In essence I had to call bindData in service after creating a Map from the XML. I soon realised we could not call bindData in...
Since working with SOAP calls in XML is very tiresome, we have libraries like axis and wsdl2java to generate stubs to make web-service client calls. I generated the stubs using IntelliJ IDEA to make SOAP calls in grails using the steps below. 1. Adding Framework Support If the IntelliJ project does not already have the framework...
Hey, SOAP is one of the popular ways of working with web-services another being REST (another of my blog)), while working with any of the SOAP based API, you will get a WSDL (web services description/definition language) describing what all methods are supported by the web service. Its a rather complicated XML document. A few days...
Recently I got an opportunity to work on making some parts of an application RESTful with secured access. It has been a good learning experience so far and encouraged me to write a blog on it. What I have done is nothing new but I never got things at one place in clear terms. So here is my effort to shed some clarity on it and hope that...