GrailsTechnology

Intercept Grails Service class method calls

I was trying to intercept method calls of a Grails Service class for a little while. Adding interceptors to Controllers is really easy and I wanted to intercept calls to one of the methods in a Service class in a similar fashion. But adding interceptors to Grails Service Classes is not as straightforward as for […]

AWSGrails

Enable Grails application to serve resources through CDN

In a recent project we were required to move our static content files to some CDN because servers were getting millions of hits every hour and many of the resources on the main page were static (like JS/CSS/etc). I hope most of the people understand CDN already. So, I’m not covering any information on CDN […]

Salil Kumar
Salil Kumar
Read

GrailsTechnology

Running GRAILS application on JETTY

Jetty is one of the many open source HTTP servers and servlet containers available today. The key features that help us decide to use Jetty are: Performance: Jetty focuses on multi-HTTP connections to reduce page load time significantly Smaller Memory Footprint: It also takes up a very small amount of the sever’s available memory so […]

Prakashul
Prakashul
Read

Technology

Write Criteria with has many String Types

Taking further this scenario, what if we need to query for partial matches of String, like just ‘rai’ not ‘grails’. We face many issues while creating criteria with has many relationship on String types as normal way of querying doesn’t work with has many relationship for String  types. One way of getting this done is […]

Kirti Nandwani
Kirti Nandwani
Read

AngularJSGrailsTechnology

Testing promises with Jasmine

We have been using Jasmine to test our angular code. Recently I came across a piece of code in Javascript which included a REST API call and returned a promise. The promise then had a success callback and all the rest of the play. So in this blog, I have tried to illustrate how to […]

Komal Jain
Komal Jain
Read

AWSGrailsTechnology

Delete file from Amazon s3 using Javascript sdk

Now a days AWS S3 is commonly used as data storage. So there is one common requirement to delete a file or directory from S3. There are plenty of options avaibale to do the same, so we using javascript implementation for this. There are basic two steps by which you can delete a file from […]

Sanchit
Sanchit
Read

GrailsiOSJava/JVM

Push Notification in IOS Using Grails

Hi All, In my previous blog . I have explained how to send the push notification to Android Device. Now, it’s time to see how we can send push notification to iOS devices. For sending Push Notification in iOS I have used JavaPNS_2.2.jar . So before, directly jumping on example we should know that what […]

AndroidGrailsTechnology

Push Notification in Android Using Grails

Hi All, I had a use case where I need to send the push notification to Android Device using Grails Application. For sending push notification I have used the Android GCM plugin. So, before going further we should know what is push notification and how it works. Push Notification : It is a message or […]

Technology

Perform any DB operation in an isolated transaction

Hi Friends, Sometimes we need to perform any DB operation in between a transaction, but due to transaction’s property, it’s getting committed only once the parent transaction will be finished. If you need to perform any operation that need to be committed immediately, irrespective of parent transaction (Example : for a dependent queuing operation etc.) […]