Is it possible to use ObjectDB with Grails?
Or in other words, do I have to use Hibernate when i developing applications with grails?
Yes it is possible.
I think if you do well formed configuration it works nice
yes it is possible.
simply add library to your grails project and use like in java but in my option hibernate in full stack for all simpl
Related
I have a grails app built on grails 1.3.7.
My app is pretty slow and I'm trying to figure out the hungry blocks in my code.
On the other side I'm thinking whether upgrading to latest grails version will add to the performance of my app. will that do any good for my app?
Will upgrading just the plugins keeping the grails as it is will help?
And if you know any plugins or tweaks I can add to improve its performance, please suggest.
Thank you.
Well in general you need to remember a few things.
Grails app runs over groovy, and groovy returns a java code at the end that runs on the jvm. So it will always be slower than the pure java code.
There is a vast difference between the runtime required for a java code and a groovy code. eg for loop is much efficient than each method of groovy.
Dynamic finders and the meta programming slows down a grails app even more, since all the methods and finders are created at runtime.
Grails vs Java comparision
In order to speed by your app try using #CompileStatic annotation that can speed up your app to a good extent. This will disable your dynamic finders and meta programming. So use it wisely and in classes where you do not require then. You can use it both at method level and class level. BUt to use this you need to upgrade to grails 2.0 version
Other measures you can take is to avoid using groovy functions like each etc and use java counterparts like while, for etc
I have a bunch of utility classes, that have nothing to do with web requests, database etc. Very similar to POJOS, except they are never persisted.
I want to make these classes available to a number of Grails applications and plugins.
At the moment, I putting these classes in their own plugin. It just seems like overkill. In the java world they would just be one package that was jar'ed.
I want to use some of the Groovy annotations such as #immutable etc so I want to stay in Groovy. But, I was wondering do I have any other options because a plugin, because that seems like overkill.
thanks
technically seen, this would be a bit of overkill indeed.
On the other hand, you just need a single repository and build process to deploy your app. I think, a single dependency resolution system which in integrated in Grails is better than 2 or more, unless you have them already.
You could make a plugin, or compile the Groovy into classes and make a jar that you share. Using annotations like #Immutable will work in classes from a jar or as source from a plugin.
How to add custom rule in sonar for delphi language?
Our problem is we are able to add custom rule for all other languages like c#,javascript,java in sonar, but are not able to add for delphi, We can't find new rule option like the one showed in this link for adding custom rules in sonar . Someone please advise.
AFAIK, the Delphi plugin, developed and maintained (?) by guys from Sabre, is not extensible: it does not have a rule extension mechanism, nor does it provide an XPath rule that could be used to achieve this purpose.
You might want to take a look at the (early) work we are doing to do humane assessment with Delphi, using Moose.
He must be able to use all features of the plugin, without accessing to source. Any solution?
You mean a binary plugin
These are possible since Grails 2
there doesn't seem to be a simple way to use Tiles 2.1 or 2.2 with Struts2 with the existing struts2-tiles plugin. I need to use the tiles wildcards functionality in my project where the tiles.xml became unmaintainable.
Is there any way at all to set up tiles 2.1 or 2.2 with struts2? How?
Thank you,
Bozo
I suggest you to use Sitmesh decoration framework for strut2
As far as I'm aware current struts2 major release ships with tiles 2.0.6. Wildcard support has been added since tiles 2.1 so I'm afraid you can not use wildcards with current version of plugin.
If you want to setup the tiles 2.1+ with struts2 anyway you have to tweak the plugin yourself or wait for the next release.
You also might wanna consider using a preparer in case you want to set some dynamic values to you definition. Hope this helps.
you can check this issue for tiles plugin which is unresolved yet.